|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-10 11:48 UTC] list at firehawksystems dot com
Here is a patch that adds searching for db3 files like it currently does for db2.
Brian
+++ php-4.2.3/ext/dba/config.m4 Tue Sep 10 08:47:31 2002
--- php-4.2.3.org/ext/dba/config.m4 Mon Sep 9 14:33:18 2002
@@ -152,19 +152,7 @@
[ --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/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/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" ; then
- if test -f "$i/include/db.h" ; then
THIS_PREFIX=$i
DB3_EXTRA=db.h
fi
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
I think that was a bad patch, try this one: --- php-4.2.3.org/ext/dba/config.m4 Thu Apr 18 05:31:19 2002 +++ php-4.2.3/ext/dba/config.m4 Tue Sep 10 08:43:20 2002 @@ -152,7 +152,19 @@ [ --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/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/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" ; then THIS_PREFIX=$i DB3_EXTRA=db.h fi