From: Hallvard Furuseth Date: Thu, 14 Jun 2007 23:19:42 +0000 (+0000) Subject: Removed ldbm and its underlying databases gdbm, mdbm and ndbm X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~385 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=99d6b5cc18a3c47f170e3bf2cd67d175583bbe73;p=openldap Removed ldbm and its underlying databases gdbm, mdbm and ndbm --- diff --git a/build/openldap.m4 b/build/openldap.m4 index 5fa82a24e7..18013cc9a7 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -736,152 +736,6 @@ fi ]) dnl dnl ==================================================================== -dnl Check if GDBM library exists -dnl Check for gdbm_open in standard libraries or -lgdbm -dnl -dnl defines ol_cv_lib_gdbm to 'yes' or '-lgdbm' or 'no' -dnl 'yes' implies gdbm_open is in $LIBS -dnl -dnl uses: -dnl AC_CHECK_FUNC(gdbm_open) -dnl AC_CHECK_LIB(gdbm,gdbm_open) -dnl -AC_DEFUN([OL_LIB_GDBM], -[AC_CACHE_CHECK(for GDBM library, [ol_cv_lib_gdbm], -[ ol_LIBS="$LIBS" - AC_CHECK_FUNC(gdbm_open,[ol_cv_lib_gdbm=yes], [ - AC_CHECK_LIB(gdbm,gdbm_open,[ol_cv_lib_gdbm=-lgdbm],[ol_cv_lib_gdbm=no]) - ]) - LIBS="$ol_LIBS" -]) -])dnl -dnl -dnl -------------------------------------------------------------------- -dnl Check if GDBM exists -dnl -dnl defines ol_cv_gdbm to 'yes' or 'no' -dnl -dnl uses: -dnl OL_LIB_GDBM -dnl AC_CHECK_HEADERS(gdbm.h) -dnl -AC_DEFUN([OL_GDBM], -[AC_REQUIRE([OL_LIB_GDBM]) - AC_CHECK_HEADERS(gdbm.h) - AC_CACHE_CHECK(for db, [ol_cv_gdbm], [ - if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then - ol_cv_gdbm=no - else - ol_cv_gdbm=yes - fi -]) - if test $ol_cv_gdbm = yes ; then - AC_DEFINE(HAVE_GDBM,1, [define if GNU DBM is available]) - fi -])dnl -dnl -dnl ==================================================================== -dnl Check if MDBM library exists -dnl Check for mdbm_open in standard libraries or -lmdbm -dnl -dnl defines ol_cv_lib_mdbm to 'yes' or '-lmdbm' or 'no' -dnl 'yes' implies mdbm_open is in $LIBS -dnl -dnl uses: -dnl AC_CHECK_FUNC(mdbm_set_chain) -dnl AC_CHECK_LIB(mdbm,mdbm_set_chain) -dnl -AC_DEFUN([OL_LIB_MDBM], -[AC_CACHE_CHECK(for MDBM library, [ol_cv_lib_mdbm], -[ ol_LIBS="$LIBS" - AC_CHECK_FUNC(mdbm_set_chain,[ol_cv_lib_mdbm=yes], [ - AC_CHECK_LIB(mdbm,mdbm_set_chain,[ol_cv_lib_mdbm=-lmdbm],[ol_cv_lib_mdbm=no]) - ]) - LIBS="$ol_LIBS" -]) -])dnl -dnl -dnl -------------------------------------------------------------------- -dnl Check if MDBM exists -dnl -dnl defines ol_cv_mdbm to 'yes' or 'no' -dnl -dnl uses: -dnl OL_LIB_MDBM -dnl AC_CHECK_HEADERS(mdbm.h) -dnl -AC_DEFUN([OL_MDBM], -[AC_REQUIRE([OL_LIB_MDBM]) - AC_CHECK_HEADERS(mdbm.h) - AC_CACHE_CHECK(for db, [ol_cv_mdbm], [ - if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then - ol_cv_mdbm=no - else - ol_cv_mdbm=yes - fi -]) - if test $ol_cv_mdbm = yes ; then - AC_DEFINE(HAVE_MDBM,1, [define if MDBM is available]) - fi -])dnl -dnl -dnl ==================================================================== -dnl Check if NDBM library exists -dnl Check for dbm_open in standard libraries or -lndbm or -ldbm -dnl -dnl defines ol_cv_lib_ndbm to 'yes' or '-lndbm' or -ldbm or 'no' -dnl 'yes' implies ndbm_open is in $LIBS -dnl -dnl uses: -dnl AC_CHECK_FUNC(dbm_open) -dnl AC_CHECK_LIB(ndbm,dbm_open) -dnl AC_CHECK_LIB(dbm,dbm_open) -dnl -dnl restrictions: -dnl should also check SVR4 case: dbm_open() in -lucb but that -dnl would requiring dealing with -L/usr/ucblib -dnl -AC_DEFUN([OL_LIB_NDBM], -[AC_CACHE_CHECK(for NDBM library, [ol_cv_lib_ndbm], -[ ol_LIBS="$LIBS" - AC_CHECK_FUNC(dbm_open,[ol_cv_lib_ndbm=yes], [ - AC_CHECK_LIB(ndbm,dbm_open,[ol_cv_lib_ndbm=-lndbm], [ - AC_CHECK_LIB(dbm,dbm_open,[ol_cv_lib_ndbm=-ldbm], - [ol_cv_lib_ndbm=no])dnl - ]) - ]) - LIBS="$ol_LIBS" -]) -])dnl -dnl -dnl -------------------------------------------------------------------- -dnl Check if NDBM exists -dnl -dnl defines ol_cv_ndbm to 'yes' or 'no' -dnl -dnl uses: -dnl OL_LIB_NDBM -dnl AC_CHECK_HEADERS(ndbm.h) -dnl -dnl restrictions: -dnl Doesn't handle SVR4 case (see above) -dnl -AC_DEFUN([OL_NDBM], -[AC_REQUIRE([OL_LIB_NDBM]) - AC_CHECK_HEADERS(ndbm.h) - AC_CACHE_CHECK(for db, [ol_cv_ndbm], [ - if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then - ol_cv_ndbm=no - else - ol_cv_ndbm=yes - fi -]) - if test $ol_cv_ndbm = yes ; then - AC_DEFINE(HAVE_NDBM,1, [define if NDBM is available]) - fi -])dnl -dnl -dnl ==================================================================== dnl Check POSIX Thread version dnl dnl defines ol_cv_pthread_version to 4, 5, 6, 7, 8, 10, depending on the