[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Konstantinos Poulios |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Wed, 16 Oct 2019 11:43:18 -0400 (EDT) |
branch: master
commit 9b03efd9854e865e195005436a7fbacf0e925361
Author: Konstantinos Poulios <address@hidden>
Date: Wed Oct 16 17:43:04 2019 +0200
Allow to detect lapack contained in the available BLAS library
---
configure.ac | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2509644..9789db2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -351,13 +351,18 @@ fi
dnl ------------------------------LAPACK TEST--------------------------------
if test x"$acx_blas_ok" = xyes; then
- if test x"$FC" = "x"; then
- dgetrf=dgetrf_
- else
- AC_FC_FUNC(dgetrf)
- fi;
-
- AC_CHECK_LIB(lapack, dgetrf_, [acx_lapack_ok=yes; LAPACK_LIBS="-llapack "])
+#This name mangling detection is currently not in use
+# if test x"$FC" = "x"; then
+# dgetrf=dgetrf_
+# else
+# AC_FC_FUNC(dgetrf)
+# fi;
+
+ # LAPACK linked to by default? (is sometimes included in BLAS lib)
+ AC_CHECK_FUNC(dgetrf_, [acx_lapack_ok=yes; LAPACK_LIBS=""])
+ if test "x$acx_lapack_ok" != xyes; then
+ AC_CHECK_LIB(lapack, dgetrf_, [acx_lapack_ok=yes; LAPACK_LIBS="-llapack"])
+ fi
if test x"$acx_lapack_ok" = xyes; then
CPPFLAGS="$CPPFLAGS -DGMM_USES_LAPACK"