From dec8fbc52bab9cc19ac97c422e79e40fa70c2b13 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Jul 2003 14:13:42 +0000 Subject: [PATCH] * Check for the pthread library (db4 needs it on some platforms). --- configure.ac | 2 ++ externals/Makefile.am | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e60895ff7..57861063d 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 543c93f6d..01ef93455 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