--- apr-util-1.3.9/build/dbm.m4 2008-11-21 07:32:58.000000000 +0100 +++ apr-util-1.3.9/build/dbm.m4-db48 2009-10-26 13:06:14.000000000 +0100 @@ -42,7 +42,8 @@ dnl search is skipped. dnl dnl We cache the results of individual searches under particular -dnl prefixes, not the overall result of whether we found Berkeley +dnl prefixes, not the overall result of whether we found +Berkeley dnl DB. That way, the user can re-run the configure script with dnl different --with-berkeley-db switch values, without interference dnl from the cache. @@ -522,6 +523,25 @@ apu_db_version=4 fi ]) +dnl +dnl APU_CHECK_DB48: is DB4.8 present? +dnl +dnl if present: sets apu_db_header, apu_db_lib, and apu_db_version +dnl +AC_DEFUN([APU_CHECK_DB48], [ + places=$1 + if test -z "$places"; then + places="std /usr/local/BerkeleyDB.4.8 /boot/home/config" + fi + APU_CHECK_BERKELEY_DB("4", "8", "-1", + "$places", + "db48/db.h db4/db.h db.h", + "db-4.8 db4-4.8 db48 db4 db" + ) + if test "$apu_have_db" = "1"; then + apu_db_version=4 + fi +]) AC_DEFUN([APU_CHECK_DB], [ requested=$1