pkgsrc/www/c-icap/patches/patch-configure
adam 905591a4cb Changes 0.2.5:
This is released only to fix an important bug of the 0.2.4 release which caused the c-icap to not respond to requests.
2013-09-03 13:37:19 +00:00

30 lines
1.2 KiB
Text

$NetBSD: patch-configure,v 1.3 2013/09/03 13:37:19 adam Exp $
Detect Berkeley DB.
--- configure.orig 2013-01-04 08:36:02.000000000 +0000
+++ configure
@@ -12525,12 +12525,11 @@ rm -f core conftest.err conftest.$ac_obj
OLDCFLAGS=$CFLAGS
OLDLDFLAGS=$LDFLAGS
OLDLIBS=$LIBS
- LIBS="-ldb $OLDLIBS"
- for DBVER in 54 53 52 51 50 49 48 47 46 45 44 43 42; do
+ for DBVER in 4 5 6; do
if test -d $libdbpath/include/db$DBVER; then
echo -n "checking for Berleley DB under $libdbpath/include/db$DBVER and $libdbpath/lib/db$DBVER... "
CFLAGS="-I$libdbpath/include/db$DBVER $OLDCFLAGS"
- LDFLAGS="-L$libdbpath/lib/db$DBVER $OLDLDFLAGS"
+ LDFLAGS="-L$libdbpath/lib -ldb$DBVER $OLDLDFLAGS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -12544,7 +12543,7 @@ rm -f core conftest.err conftest.$ac_obj
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- echo yes;BDB_ADD_LDADD="-L$libdbpath/lib/db$DBVER -ldb"; BDB_ADD_FLAG="-I$libdbpath/include/db$DBVER";libdb="yes";
+ echo yes;BDB_ADD_LDADD="-L$libdbpath/lib -ldb$DBVER"; BDB_ADD_FLAG="-I$libdbpath/include/db$DBVER";libdb="yes";
else
libdb="no"; echo "no";