Add an option to disable ndbm, from Stefan Metzmacher <metze@samba.org>

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15362 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-10 23:58:37 +00:00
parent a36c1df4bd
commit 0a9f66241a

View File

@@ -8,6 +8,11 @@ AC_ARG_ENABLE(berkeley-db,
[if you don't want berkeley db]),[
])
AC_ARG_ENABLE(ndbm-db,
AS_HELP_STRING([--disable-ndbm-db],
[if you don't want ndbm db]),[
])
have_ndbm=no
db_type=unknown
@@ -95,6 +100,8 @@ dnl test for ndbm compatability
fi # berkeley db
if test "$enable_ndbm_db" != "no"; then
if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
AC_CHECK_HEADERS([ \
@@ -153,7 +160,7 @@ if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
fi
fi
fi
fi #enable_ndbm_db
fi # unknown
if test "$have_ndbm" = "yes"; then