about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-28T14·13+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-28T14·13+0000
commitdec8fbc52bab9cc19ac97c422e79e40fa70c2b13 (patch)
tree3d0050bd594df4fe555121b3fd33f9d8c73b49a8
parent949c4fa1a863a804bdf1f985b55d5259f18838ae (diff)
* Check for the pthread library (db4 needs it on some platforms).
-rw-r--r--configure.ac2
-rw-r--r--externals/Makefile.am3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e60895ff7e..57861063de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,8 @@ AC_PROG_CC
 AC_PROG_CXX
 AC_PROG_RANLIB
 
+AC_CHECK_LIB(pthread, pthread_mutex_init)
+
 AM_CONFIG_HEADER([config.h])
 AC_CONFIG_FILES([Makefile externals/Makefile src/Makefile scripts/Makefile
 			  corepkgs/Makefile corepkgs/fetchurl/Makefile
diff --git a/externals/Makefile.am b/externals/Makefile.am
index 543c93f6db..01ef934551 100644
--- a/externals/Makefile.am
+++ b/externals/Makefile.am
@@ -16,7 +16,8 @@ have-db:
 build-db: have-db
 	(pfx=`pwd` && \
 	cd $(DB)/build_unix && \
-	CC=$(CC) CXX=$(CXX) ../dist/configure --prefix=$$pfx/inst --enable-cxx --disable-shared && \
+	CC=$(CC) CXX=$(CXX) ../dist/configure --prefix=$$pfx/inst \
+	 --enable-cxx --disable-shared && \
 	make && \
 	make install)
 	touch build-db