]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Always link with blas and lapack if using PETSc on Mac OS X.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 29 Aug 2007 13:26:49 +0000 (13:26 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 29 Aug 2007 13:26:49 +0000 (13:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@15082 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure
deal.II/configure.in

index c90c5841551b2dc98c83a12108747c22fc5ebd4b..0a78a1ae2f11b26f02fad387593e342531e5f03b 100755 (executable)
@@ -11094,6 +11094,17 @@ if test "x$with_petsc" != "x" -a "x$with_petsc" != "xno" ; then
       with_blas="yes"
     fi
   fi
+
+  case "$target" in
+    *-apple-darwin* )
+       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
+       ;;
+  esac
 fi
 
 
index 1608754c5509611471844645c699bfc7e5b15c7b..e1284349dbad08fff287c9ca4a831c6c2aac8a92 100644 (file)
@@ -429,12 +429,26 @@ 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
 dnl dependence, but static archives do not have a method to list dependencies)
+dnl
+dnl On Mac OS X, when using PETSc, it appears as if we always need to link with
+dnl blas and lapack, independently of whether we use static or shared libs
 if test "x$with_petsc" != "x" -a "x$with_petsc" != "xno" ; then
   if test "x$enableshared" = "xno" ; then
     if test "x$with_blas" = "x" -o "x$with_blas" = "xno"; then
       with_blas="yes"
     fi
   fi
+
+  case "$target" in
+    *-apple-darwin* )
+       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
+       ;;
+  esac
 fi
 
 dnl -------------------------------------------------------------

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.