summaryrefslogtreecommitdiff
blob: bef730abbe4c84aadba360984884fd153bc0276c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -urN libghemical-2.00.orig/configure.ac libghemical-2.00/configure.ac
--- libghemical-2.00.orig/configure.ac	2006-05-12 23:31:06.000000000 -0700
+++ libghemical-2.00/configure.ac	2006-05-12 23:54:20.000000000 -0700
@@ -69,8 +69,18 @@
 AC_CHECK_LIB([m], [acos])
 
 if test $WITH_MPQC = yes; then
-	AC_CHECK_LIB([blas], [main], , AC_MSG_ERROR([Cannot find blas library needed for MPQC support]))
-	AC_CHECK_LIB([lapack], [main], , AC_MSG_ERROR([Cannot find lapack library needed for MPQC support]))
+	AC_CHECK_LIB([blas], [dgemm_], HAVE_BLAS="yes", , -lpthread)
+	AC_CHECK_LIB([blas], [dgemm], HAVE_BLAS="yes", , -lpthread)
+	AC_CHECK_LIB([blas], [dgemm__], HAVE_BLAS="yes", , -lpthread)
+	if test "x${HAVE_BLAS}" = "x"; then
+		AC_MSG_ERROR([Cannot find blas library needed for MPQC support])
+	fi
+	AC_CHECK_LIB([lapack], [cheev_], HAVE_LAPACK="yes", , -lpthread)
+	AC_CHECK_LIB([lapack], [cheev], HAVE_LAPACK="yes", , -lpthread)
+	AC_CHECK_LIB([lapack], [cheev__], HAVE_LAPACK="yes", , -lpthread)
+	if test "x${HAVE_LAPACK}" = "x"; then
+		AC_MSG_ERROR([Cannot find lapack library needed for MPQC support])
+	fi
 	AM_PATH_SC(1.2.5, HAVE_MPQC="yes", HAVE_MPQC="no")
 	if test "${HAVE_MPQC}" = "yes"; then
 		AC_DEFINE([ENABLE_MPQC], [], [Define if you are building a version that interfaces directly with MPQC])