cf: Add --with-mitdb=PATH option
OS X builds started thinking they have the mitdb backend and started failing the tests/kdc/check-mitdb test. This commit fixes that by requiring explicit enablement of the mitdb HDB backend.
This commit is contained in:
@@ -84,6 +84,11 @@ if versionscript
|
||||
libhdb_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
|
||||
endif
|
||||
|
||||
if HAVE_MITDB
|
||||
libhdb_la_LDFLAGS += -L$(MITDB)/lib -Wl,-rpath,$(MITDB)/lib -ldb
|
||||
AM_CPPFLAGS += -I$(MITDB)/include
|
||||
endif
|
||||
|
||||
# test_hdbkeys and test_mkey are not tests -- they are manual test utils
|
||||
noinst_PROGRAMS = test_dbinfo test_hdbkeys test_mkey test_namespace test_concurrency
|
||||
TESTS = test_dbinfo test_namespace test_concurrency
|
||||
|
@@ -118,7 +118,7 @@ attr_to_flags(unsigned attr, HDBFlags *flags)
|
||||
|
||||
#define CHECK(x) do { if ((x)) goto out; } while(0)
|
||||
|
||||
#ifdef HAVE_DB1
|
||||
#ifdef HAVE_MITDB
|
||||
static krb5_error_code
|
||||
mdb_principal2key(krb5_context context,
|
||||
krb5_const_principal principal,
|
||||
@@ -134,7 +134,7 @@ mdb_principal2key(krb5_context context,
|
||||
key->length = strlen(str) + 1;
|
||||
return 0;
|
||||
}
|
||||
#endif /* HAVE_DB1 */
|
||||
#endif /* HAVE_MITDB */
|
||||
|
||||
#define KRB5_KDB_SALTTYPE_NORMAL 0
|
||||
#define KRB5_KDB_SALTTYPE_V4 1
|
||||
@@ -675,11 +675,11 @@ mdb_entry2value(krb5_context context, hdb_entry *entry, krb5_data *data)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAVE_DB1
|
||||
#ifdef HAVE_MITDB
|
||||
|
||||
#if defined(HAVE_DB_185_H)
|
||||
#include <db_185.h>
|
||||
#elif defined(HAVE_DB_H)
|
||||
#else
|
||||
#include <db.h>
|
||||
#endif
|
||||
|
||||
@@ -1154,7 +1154,7 @@ hdb_mitdb_create(krb5_context context, HDB **db,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* HAVE_DB1 */
|
||||
#endif /* HAVE_MITDB */
|
||||
|
||||
/*
|
||||
can have any number of princ stanzas.
|
||||
|
@@ -77,7 +77,7 @@ static struct hdb_method methods[] = {
|
||||
#if HAVE_DB3
|
||||
{ HDB_INTERFACE_VERSION, NULL, NULL, 1, 1, "db3:", hdb_db3_create},
|
||||
#endif
|
||||
#if HAVE_DB1
|
||||
#if HAVE_MITDB
|
||||
{ HDB_INTERFACE_VERSION, NULL, NULL, 1, 1, "mit-db:", hdb_mitdb_create},
|
||||
#endif
|
||||
#if HAVE_LMDB
|
||||
|
Reference in New Issue
Block a user