Date: Wednesday, March 21, 2007 @ 20:46:19
Author: marc
Path: /cvsroot/carob/libmysequoia
Modified: configure.ac (1.40 -> 1.41)
Added missing AC_SEARCH_LIBS(iconv). Safer quoting.
--------------+
configure.ac | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
Index: libmysequoia/configure.ac
diff -u libmysequoia/configure.ac:1.40 libmysequoia/configure.ac:1.41
--- libmysequoia/configure.ac:1.40 Wed Mar 21 20:15:13 2007
+++ libmysequoia/configure.ac Wed Mar 21 20:46:19 2007
@@ -103,8 +103,12 @@
AC_SUBST(DOXYGEN)
+# search for iconv and link to libiconv if needed
+AC_SEARCH_LIBS([iconv], [iconv], , AC_MSG_ERROR([[iconv() function not
found]]))
+
+
# link ourselves to libgmp so we can use libcarob.a
-AC_CHECK_LIB(gmp, main, ,
+AC_CHECK_LIB([gmp], [main], ,
[AC_MSG_ERROR([[libgmp not found. Install it or fix LDFLAGS.]])])
@@ -114,10 +118,10 @@
./configure CPPFLAGS="... -I/usr/local/include"]])])
# AC_CHECK_LIB does not support namespaces
-AC_CHECK_LIB(log4cxx, main, ,
+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])
# -pthread works only with gcc.
# Should probably use http://autoconf-archive.cryp.to/acx_pthread.html
@@ -129,11 +133,11 @@
or ./configure CPPFLAGS="... -I/usr/local/include"]])])
# AC_CHECK_LIB does not support namespaces
-AC_CHECK_LIB(carob, main, ,
+AC_CHECK_LIB([carob], [main], ,
[AC_MSG_ERROR([[libcarob not found. Try to fix LDFLAGS, for instance:
./configure LDFLAGS="... -L`pwd`/../carob"
or ./configure LDFLAGS="... -L/usr/local/lib"]])]
- , -pthread)
+ , [-pthread])
# -pthread works only with gcc.
# Should probably use http://autoconf-archive.cryp.to/acx_pthread.html
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits