mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
* Check the default location of Berkeley DB 3.0
* Check additionally for libdb-3
This commit is contained in:
parent
a3ac1e5e59
commit
2cb0e69b51
1 changed files with 3 additions and 3 deletions
|
@ -155,18 +155,18 @@ AC_DBA_STD_RESULT
|
||||||
AC_ARG_WITH(db3,
|
AC_ARG_WITH(db3,
|
||||||
[ --with-db3[=DIR] Include Berkeley DB3 support],[
|
[ --with-db3[=DIR] Include Berkeley DB3 support],[
|
||||||
if test "$withval" != "no"; then
|
if test "$withval" != "no"; then
|
||||||
for i in /usr/local /usr $withval; do
|
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/include/db.h" ; then
|
||||||
THIS_PREFIX="$i"
|
THIS_PREFIX="$i"
|
||||||
DB3_EXTRA="db.h"
|
DB3_EXTRA="db.h"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -n "$DB3_EXTRA"; then
|
if test -n "$DB3_EXTRA"; then
|
||||||
AC_DEFINE_UNQUOTED(DB3_INCLUDE_FILE, "$DB3_EXTRA", [ ])
|
AC_DEFINE_UNQUOTED(DB3_INCLUDE_FILE, "$DB3_EXTRA", [ ])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for LIB in db; do
|
for LIB in db db-3; do
|
||||||
AC_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[
|
AC_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[
|
||||||
AC_CHECK_LIB($LIB, db_create, [AC_DEFINE(DBA_DB3,1,[ ]) THIS_LIBS="$LIB"])
|
AC_CHECK_LIB($LIB, db_create, [AC_DEFINE(DBA_DB3,1,[ ]) THIS_LIBS="$LIB"])
|
||||||
])
|
])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue