From 6fe296aa69d49cda5e7261745cbe4c1a3a2485e1 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Wed, 11 Sep 2002 15:05:06 +0000 Subject: [PATCH] Patch for Bug #19341 submitted by list@firehawksystems.com --- ext/dba/config.m4 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 index 16991752f1..d2364428ea 100644 --- a/ext/dba/config.m4 +++ b/ext/dba/config.m4 @@ -152,10 +152,19 @@ AC_ARG_WITH(db3, [ --with-db3[=DIR] Include Berkeley DB3 support],[ if test "$withval" != "no"; then for i in /usr/local /usr /usr/local/BerkeleyDB.3.0 $withval; do - if test -f "$i/include/db3/db.h"; then + if test -f "$i/db3/db.h"; then + THIS_PREFIX=$i + DB3_EXTRA=db3 + elif test -f "$i/include/db3/db.h"; then THIS_PREFIX=$i DB3_EXTRA=db3/db.h - elif test -f "$i/include/db.h" ; then + elif test -f "$i/include/db/db3.h"; then + THIS_PREFIX=$i + DB3_EXTRA=db/db3.h + elif test -f "$i/include/db3.h"; then + THIS_PREFIX=$i + DB3_EXTRA=db3.h + elif test -f "$i/include/db.h" ; THIS_PREFIX=$i DB3_EXTRA=db.h fi -- 2.50.1