04a09edf10
ensure db/v3 is used also fixes build on NO_SHARED_ARCHS with conceptual help from brad@
24 lines
808 B
Plaintext
24 lines
808 B
Plaintext
$OpenBSD: patch-configure,v 1.4 2004/01/10 08:33:11 sturm Exp $
|
|
--- configure.orig 2002-01-29 03:37:38.000000000 +0100
|
|
+++ configure 2004-01-10 00:42:16.000000000 +0100
|
|
@@ -1017,8 +1017,8 @@ EOF
|
|
|
|
DBINC="-I$withval/dist"
|
|
DBLIB="-L$withval/dist -ldb"
|
|
- elif test -f $withval/include/db_185.h -a \
|
|
- -f $withval/lib/libdb.a; then
|
|
+ elif test -f $withval/include/db/db_185.h -a \
|
|
+ -f $withval/lib/db/libdb.a; then
|
|
owd=`pwd`
|
|
if cd $withval; then withval=`pwd`; cd $owd; fi
|
|
cat >> confdefs.h <<\EOF
|
|
@@ -1026,7 +1026,7 @@ EOF
|
|
EOF
|
|
|
|
DBINC="-I$withval/include"
|
|
- DBLIB="-L$withval/lib -ldb"
|
|
+ DBLIB="-L$withval/lib/db -ldb"
|
|
else
|
|
{ echo "configure: error: db_185.h or libdb.a not found in $withval or not configured with --enable-compat185" 1>&2; exit 1; }
|
|
fi
|