--- configure.orig Tue Oct 24 10:07:29 2006 +++ configure Mon Oct 30 15:50:31 2006 @@ -7523,48 +7523,10 @@ echo "$ac_t""yes" 1>&6 echo $ac_n "checking for BerkeleyDB location""... $ac_c" 1>&6 echo "configure:7526: checking for BerkeleyDB location" >&5 - if test x"$BERKELEY_DB_DIR" = xyes ; then - for v in BerkeleyDB BerkeleyDB.3.0 BerkeleyDB.3.1 BerkeleyDB.3.2 \ - BerkeleyDB.3.3 BerkeleyDB.4.0 BerkeleyDB.4.1 BerkeleyDB.4.2 \ - BerkeleyDB.4.3 BerkeleyDB.4.4; do - for d in $prefix /usr/local /opt /usr ; do - if test -d "$d/$v" ; then - BERKELEY_DB_DIR="$d/$v" - break - fi - done - done - fi - if test x"$BERKELEY_DB_DIR" = xyes ; then - for v in db44 db43 db42 db41 db4 db3 db2 ; do - if test -d "/usr/local/include/$v" ; then BERKELEY_DB_LDFLAGS="-L/usr/local/lib" - BERKELEY_DB_CFLAGS="-I/usr/local/include/$v" - BERKELEY_DB_LIB="-l$v" + BERKELEY_DB_CFLAGS="-I/usr/local/include/${DB_VER}" + BERKELEY_DB_LIB="-l${DB_VER}" echo "$ac_t""FreeBSD locations" 1>&6 - break - fi - done - if test x"$BERKELEY_DB_LIB" = x ; then - for v in db44 db43 db42 db41 db4 db3 db2 ; do - if test -d "/usr/include/$v" ; then - BERKELEY_DB_CFLAGS="-I/usr/include/$v" - BERKELEY_DB_LIB="-l$v" - echo "$ac_t""Linux locations" 1>&6 - break - fi - done - if test x"$BERKELEY_DB_LIB" = x ; then - BERKELEY_DB_LIB=-ldb - echo "$ac_t""trying -ldb" 1>&6 - fi - fi - else - BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib" - BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include" - BERKELEY_DB_LIB="-ldb" - echo "$ac_t""$BERKELEY_DB_DIR" 1>&6 - fi cat >> confdefs.h <<\EOF #define USE_BERKELEY_DB 1 EOF