From: Toby D. Young Date: Fri, 27 Aug 2010 15:31:03 +0000 (+0000) Subject: Make sure BLAS and LAPACK are there if we want to link in ARPACK X-Git-Tag: v8.0.0~5645 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5af7f77dd7d4a6e7c5cc2a8f889f9f029013e78;p=dealii.git Make sure BLAS and LAPACK are there if we want to link in ARPACK git-svn-id: https://svn.dealii.org/trunk@21753 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/configure.in b/deal.II/configure.in index b7fc57ad3e..82c82ada55 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -447,9 +447,7 @@ AC_SUBST(DEAL_II_BLACS_ARCH) AC_SUBST(DEAL_II_DEFINE_DEAL_II_USE_MUMPS) dnl Make sure we configure for libraries used by other libraries. For -dnl example, UMFPACK needs blas, and so does LAPACK - - +dnl example, UMFPACK needs blas, and so does LAPACK. if test "x$with_umfpack" != "x" -a "x$with_umfpack" != "xno" ; then if test "x$with_blas" = "x" -o "x$with_blas" = "xno"; then with_blas="yes" @@ -462,6 +460,15 @@ if test "x$with_lapack" != "x" -a "x$with_lapack" != "xno" ; then fi fi +dnl ARPACK wants to see BLAS nd LAPACK too. +if test "x$with_arpack" != "x" -a "x$with_arpack" != "xno" ; then + if test "x$with_blas" = "x" -o "x$with_blas" = "xno"; then + with_blas="yes" + fi + if test "x$with_lapack" = "x" -o "x$with_lapack" = "xno"; then + with_lapack="yes" + fi +fi dnl Likewise, if we use PETSc and link statically, we have to add blas to the dnl linker line (if we use shared libs, then the PETSc libs already carry this