about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 e60895ff7e2e..57861063de43 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 543c93f6db2a..01ef93455169 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