Date: Wednesday, March 21, 2007 @ 20:15:13
Author: marc
Path: /cvsroot/carob/libmysequoia
Modified: configure.ac (1.39 -> 1.40)
Same gcc-dependent -pthread quick fix for log4cxx/FreeBSD
--------------+
configure.ac | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
Index: libmysequoia/configure.ac
diff -u libmysequoia/configure.ac:1.39 libmysequoia/configure.ac:1.40
--- libmysequoia/configure.ac:1.39 Wed Mar 21 20:04:01 2007
+++ libmysequoia/configure.ac Wed Mar 21 20:15:13 2007
@@ -103,6 +103,11 @@
AC_SUBST(DOXYGEN)
+# link ourselves to libgmp so we can use libcarob.a
+AC_CHECK_LIB(gmp, main, ,
+ [AC_MSG_ERROR([[libgmp not found. Install it or fix LDFLAGS.]])])
+
+
# Check for log4cxx headers and library
AC_CHECK_HEADER([log4cxx/logger.h], ,
[AC_MSG_ERROR([[log4cxx/logger.h not found. Try to fix
CPPFLAGS, for instance:
@@ -112,7 +117,9 @@
AC_CHECK_LIB(log4cxx, main, ,
[AC_MSG_ERROR([[liblog4cxx not found. Try to fix LDFLAGS, for instance:
./configure LDFLAGS="... -L/usr/local/lib"]])]
- )
+ , -pthread)
+# -pthread works only with gcc.
+# Should probably use http://autoconf-archive.cryp.to/acx_pthread.html
# Check for Carob headers and library
@@ -121,10 +128,6 @@
./configure CPPFLAGS="... -I\`pwd\`/../carob/include"
or ./configure CPPFLAGS="... -I/usr/local/include"]])])
-# link ourselves to libgmp so we can use libcarob.a
-AC_CHECK_LIB(gmp, main, ,
- [AC_MSG_ERROR([[libgmp not found. Install it or fix LDFLAGS.]])])
-
# AC_CHECK_LIB does not support namespaces
AC_CHECK_LIB(carob, main, ,
[AC_MSG_ERROR([[libcarob not found. Try to fix LDFLAGS, for instance:
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits