Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e72ca6a46e155bba1ebb445f9515567c > files > 2

libghemical-2.99.1-16.fc14.src.rpm

--- configure.ac.old	2010-04-08 10:22:02.000000000 -0700
+++ configure.ac	2010-04-08 10:34:40.000000000 -0700
@@ -13,6 +13,7 @@
 
 AC_DEFINE([LIBVERSION], ["2.99.1"], [This is the version of libghemical to be built--it is set in the configure.ac])
 AC_SUBST([LIBVERSION], ["2.99.1"])
+AC_CONFIG_MACRO_DIR([m4])
 
 ##################################################################
 ## also see src/Makefile.am when you change the version number!!!
@@ -121,7 +122,12 @@
 AC_CHECK_LIB([m], [acos],, AC_MSG_ERROR([math library missing]))
 
 if test $enable_mpqc = yes; then
-	AC_CHECK_LIB([blas], [main],, AC_MSG_ERROR([Cannot find blas library needed for MPQC support]))
+	AC_CHECK_LIB([blas], [main],,
+        [
+        LDFLAGS="$LDFLAGS $ATLASLIBDIR"
+        AC_CHECK_LIB([f77blas], [main],LIBS="-latlas $LIBS",
+            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]))
 	AM_PATH_SC(1.2.5, HAVE_MPQC="yes", HAVE_MPQC="no")
 	if test "${HAVE_MPQC}" = "yes"; then
@@ -130,21 +136,21 @@
 		AC_DEFINE_UNQUOTED([SC_MINOR_VERSION], [$SC_MINOR_VERSION], [This is the minor version of SC (MPQC's underlying library) found by configure])
 		AC_DEFINE_UNQUOTED([SC_MICRO_VERSION], [$SC_MICRO_VERSION], [This is the micro version of SC (MPQC's underlying library) found by configure])
 		CPPFLAGS="$CPPFLAGS $SC_CPPFLAGS"
-		LIBS="$LIBS $SC_LIBS"
+		LIBS="$LIBS $SC_LIBS -lmpqc -lSCbasis -lSCcints -lSCclass -lSCcontainer -lSCdft -lSCgroup -lSCintv3 -lSCisosurf -lSCkeyval -lSCmbpt -lSCmbptr12 -lSCmisc -lSCmolecule -lSCoint3 -lSCoptimize -lSCoptions -lSCpsi -lSCref -lSCrender -lSCscf -lSCscmat -lSCsolvent -lSCstate -lSCsymmetry -lSCwfn"
 	else AC_MSG_ERROR([Cannot find proper SC version])
 	fi
 fi
 
 if test $enable_mopac7 = yes; then
 	AC_DEFINE([ENABLE_MOPAC7],, [Define if you are building a version that interfaces directly with MOPAC7])
-	
+
 	PKG_CHECK_MODULES([MOPAC7], [libmopac7 >= 1.13])
 	##alt	MOPAC7_CFLAGS=`$PKG_CONFIG --cflags libmopac7`
 	##alt	MOPAC7_LIBS=`$PKG_CONFIG --libs libmopac7`
-	
+
 	CPPFLAGS="$CPPFLAGS $MOPAC7_CFLAGS"
 	LIBS="$LIBS $MOPAC7_LIBS"
-	
+
 	REQUISITIONS="$REQUISITIONS libmopac7"
 fi