From 78a7fbf264d351ca28c4c78be64413efd99725e6 Mon Sep 17 00:00:00 2001 From: young Date: Fri, 27 Aug 2010 15:31:03 +0000 Subject: [PATCH] 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 --- deal.II/configure.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 -- 2.39.5