autodetect presence of libdb - this allows bsddbmodule to be built
automatically if dbopen is found in libc or libdb. This closes patch #101420
This commit is contained in:
parent
6c8affe590
commit
ed33c9af97
|
@ -15,5 +15,5 @@
|
|||
#*shared*
|
||||
|
||||
# bsddb module enabled by --with-libdb or presence of db.h
|
||||
@USE_BSDDB_MODULE@bsddb bsddbmodule.c -ldb
|
||||
@USE_BSDDB_MODULE@bsddb bsddbmodule.c @HAVE_LIBDB@
|
||||
|
||||
|
|
|
@ -836,6 +836,13 @@ else
|
|||
fi
|
||||
AC_MSG_RESULT($with_libdb)
|
||||
|
||||
if test "$with_libdb" = "yes"
|
||||
then
|
||||
# check for libdb; BSD systems have the DB routines in libc --tg
|
||||
AC_SUBST(HAVE_LIBDB)
|
||||
AC_CHECK_FUNC(dbopen, [HAVE_LIBDB=], AC_CHECK_LIB(db, dbopen, [HAVE_LIBDB=-ldb]))
|
||||
fi
|
||||
|
||||
# Check for --with-wctype-functions
|
||||
AC_MSG_CHECKING(for --with-wctype-functions)
|
||||
AC_ARG_WITH(wctype-functions,
|
||||
|
|
Loading…
Reference in New Issue