From 4f361be0305348ee1c196a32734398aad434ed80 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 29 Aug 2007 13:26:49 +0000 Subject: [PATCH] Always link with blas and lapack if using PETSc on Mac OS X. git-svn-id: https://svn.dealii.org/trunk@15082 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/configure | 11 +++++++++++ deal.II/configure.in | 14 ++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/deal.II/configure b/deal.II/configure index c90c584155..0a78a1ae2f 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -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 diff --git a/deal.II/configure.in b/deal.II/configure.in index 1608754c55..e1284349db 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -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 ------------------------------------------------------------- -- 2.39.5