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:
Skip Montanaro 2000-09-08 02:17:15 +00:00
parent 6c8affe590
commit ed33c9af97
3 changed files with 248 additions and 145 deletions

View File

@ -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@

384
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -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,