make it possible to run this twice
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10984 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
35
cf/db.m4
35
cf/db.m4
@@ -71,24 +71,26 @@ dnl dbopen is used by db1/db2
|
|||||||
|
|
||||||
dnl test for ndbm compatability
|
dnl test for ndbm compatability
|
||||||
|
|
||||||
AC_FIND_FUNC_NO_LIBS2(dbm_firstkey, $ac_cv_funclib_dbopen $ac_cv_funclib_db_create, [
|
if test "$ac_cv_func_dbm_firstkey" != yes; then
|
||||||
#include <stdio.h>
|
AC_FIND_FUNC_NO_LIBS2(dbm_firstkey, $ac_cv_funclib_dbopen $ac_cv_funclib_db_create, [
|
||||||
#define DB_DBM_HSEARCH 1
|
#include <stdio.h>
|
||||||
#include <db.h>
|
#define DB_DBM_HSEARCH 1
|
||||||
DBM *dbm;
|
#include <db.h>
|
||||||
],[NULL])
|
DBM *dbm;
|
||||||
|
],[NULL])
|
||||||
if test "$ac_cv_func_dbm_firstkey" = "yes"; then
|
|
||||||
if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
|
if test "$ac_cv_func_dbm_firstkey" = "yes"; then
|
||||||
LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
|
if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
|
||||||
|
LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
|
||||||
|
else
|
||||||
|
LIB_NDBM=""
|
||||||
|
fi
|
||||||
|
AC_DEFINE(HAVE_DB_NDBM, 1, [define if you have ndbm compat in db])
|
||||||
|
AC_DEFINE(HAVE_NEW_DB, 1, [Define if NDBM really is DB (creates files *.db)])
|
||||||
else
|
else
|
||||||
LIB_NDBM=""
|
$as_unset ac_cv_func_dbm_firstkey
|
||||||
|
$as_unset ac_cv_funclib_dbm_firstkey
|
||||||
fi
|
fi
|
||||||
AC_DEFINE(HAVE_DB_NDBM, 1, [define if you have ndbm compat in db])
|
|
||||||
AC_DEFINE(HAVE_NEW_DB, 1, [Define if NDBM really is DB (creates files *.db)])
|
|
||||||
else
|
|
||||||
$as_unset ac_cv_func_dbm_firstkey
|
|
||||||
$as_unset ac_cv_funclib_dbm_firstkey
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi # berkeley db
|
fi # berkeley db
|
||||||
@@ -188,6 +190,7 @@ AM_CONDITIONAL(HAVE_DB1, test "$db_type" = db1)dnl
|
|||||||
AM_CONDITIONAL(HAVE_DB3, test "$db_type" = db3)dnl
|
AM_CONDITIONAL(HAVE_DB3, test "$db_type" = db3)dnl
|
||||||
AM_CONDITIONAL(HAVE_NDBM, test "$db_type" = ndbm)dnl
|
AM_CONDITIONAL(HAVE_NDBM, test "$db_type" = ndbm)dnl
|
||||||
|
|
||||||
|
DBLIB="$LDFLAGS $DBLIB"
|
||||||
AC_SUBST(DBLIB)dnl
|
AC_SUBST(DBLIB)dnl
|
||||||
AC_SUBST(LIB_NDBM)dnl
|
AC_SUBST(LIB_NDBM)dnl
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user