some logical problems in configure for lapack and blas

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6063 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
marsamos 2009-10-21 07:15:47 +00:00
parent 81d2b3fb9b
commit 40cb97cd29
2 changed files with 28 additions and 8 deletions

18
install/configure vendored
View File

@ -1835,6 +1835,9 @@ fi
# packages
#
echo "use-internal-lapack" $use_internal_lapack
# Check whether --with-scalapack was given.
if test "${with_scalapack+set}" = set; then
withval=$with_scalapack; if test "$withval" = "yes" ; then
@ -6225,8 +6228,11 @@ lapack_libs_switch=external ; fi
# SUNperf on sparc
# atlas is used over blas if available
# internal version is used if none is found
if test "$blas_libs" = "" -o "$use_internal_blas" -eq 0
if test "$use_internal_blas" -eq 0
then
if test "$blas_libs" = ""
then
echo "passo anche di qui"
# check directories in LD_LIBRARY_PATH too
# (maybe they are already searched by default, but I'm not sure)
ld_library_path=`echo $LD_LIBRARY_PATH | sed 's/:/ /g'`
@ -7347,11 +7353,14 @@ fi
done
fi
fi
fi
# check for lapack
# same supported vendor replacements as for blas
# internal version is used if none is found
if test "$lapack_libs" = "" -o "$use_internal_lapack" -eq 0
if test "$use_internal_lapack" -eq 0
then
if test "$lapack_libs" = ""
then
# check directories in LD_LIBRARY_PATH too
# (maybe they are already searched by default, but I'm not sure)
@ -7807,6 +7816,7 @@ fi
fi
fi
fi
fi
# no blas library found: use the built-in blas
# (blas_libs is used in the above tests so it is safe to set it here)
@ -7824,8 +7834,8 @@ elif test "$have_blas" -eq 0 -a "$blas_libs" = ""; then
blas_libs_switch="internal";
fi
if test "$lapack_libs_switch" = "internal" -o "$use_internal_lapack" -eq 1 ; then
lapack_libs= $lapack_libs "$topdir/lapack-3.2/lapack.a"
if test "$lapack_libs" = "" -o "$use_internal_lapack" -eq 1 ; then
lapack_libs="$topdir/lapack-3.2/lapack.a"
lapack_libs_switch="internal"
fi

View File

@ -69,6 +69,9 @@ AC_ARG_WITH(internal-lapack,
# -----------------------------
# packages
#
echo "use-internal-lapack" $use_internal_lapack
AC_ARG_WITH(scalapack,
[AS_HELP_STRING([--with-scalapack],
[use scalapack if available (default: yes)])],
@ -769,8 +772,11 @@ lapack_libs_switch=external ; fi
# SUNperf on sparc
# atlas is used over blas if available
# internal version is used if none is found
if test "$blas_libs" = "" -o "$use_internal_blas" -eq 0
if test "$use_internal_blas" -eq 0
then
if test "$blas_libs" = ""
then
echo "passo anche di qui"
# check directories in LD_LIBRARY_PATH too
# (maybe they are already searched by default, but I'm not sure)
ld_library_path=`echo $LD_LIBRARY_PATH | sed 's/:/ /g'`
@ -1046,11 +1052,14 @@ then
done
fi
fi
fi
# check for lapack
# same supported vendor replacements as for blas
# internal version is used if none is found
if test "$lapack_libs" = "" -o "$use_internal_lapack" -eq 0
if test "$use_internal_lapack" -eq 0
then
if test "$lapack_libs" = ""
then
# check directories in LD_LIBRARY_PATH too
# (maybe they are already searched by default, but I'm not sure)
@ -1181,6 +1190,7 @@ then
fi
fi
fi
fi
# no blas library found: use the built-in blas
# (blas_libs is used in the above tests so it is safe to set it here)
@ -1198,8 +1208,8 @@ elif test "$have_blas" -eq 0 -a "$blas_libs" = ""; then
blas_libs_switch="internal";
fi
if test "$lapack_libs_switch" = "internal" -o "$use_internal_lapack" -eq 1 ; then
lapack_libs= $lapack_libs "$topdir/lapack-3.2/lapack.a"
if test "$lapack_libs" = "" -o "$use_internal_lapack" -eq 1 ; then
lapack_libs="$topdir/lapack-3.2/lapack.a"
lapack_libs_switch="internal"
fi