Commit 05a65d67 authored by Martin v. Löwis's avatar Martin v. Löwis

If dbopen is not in libc, checking whether it is in libdb will fail if

db_185.h has renamed that function to __db185_open, which it does in DB 3.1.
So don't check whether the function is in -ldb.
parent 716efea1
This diff is collapsed.
......@@ -855,7 +855,11 @@ 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]))
# If dbopen is not in libc, then checking whether it is in libdb
# is difficult: db_185.h may #define it as __db185_open
# Instead, we just trust it is in libdb; linking will fail if it
# is not.
AC_CHECK_FUNC(dbopen, [HAVE_LIBDB=], [HAVE_LIBDB=-ldb])
fi
# Check for --with-wctype-functions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment