Fix building with no BerkeleyDB support

The configure script used to define BDB even if BerkeleyDB has
been disabled.
This commit is contained in:
Michael Schroeder 2019-12-18 17:42:31 +01:00 committed by Igor Gnatenko
parent 3f58fc31f7
commit 4c7323f69b
1 changed files with 1 additions and 1 deletions

View File

@ -544,11 +544,11 @@ AC_ARG_ENABLE([bdb],
[enable_bdb="$enableval"],
[enable_bdb=yes])
have_bdb="no"
AS_IF([test "x$enable_bdb" != "xno"], [
if [ test -x db/dist/configure ]; then
have_bdb="internal"
else
have_bdb="no"
AC_CHECK_HEADERS([db.h],[
AC_PREPROC_IFELSE([
AC_LANG_SOURCE([