diff --git a/configure.ac b/configure.ac index d59176b87..c00c25f03 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,8 @@ if test "X$with_sqlite3" != Xyes ; then fi AM_CONDITIONAL(SQLITE3, test "X$with_sqlite3" = Xyes) +AC_DEFINE(HAVE_SQLITE3, 1, [Define if you want support for sqlite in Heimdal.]) + AC_ARG_ENABLE(sqlite-cache, AS_HELP_STRING([--disable-sqlite-cache],[if you want support for cache in sqlite])) if test "$enable_sqlite_cache" != no; then diff --git a/lib/hdb/hdb.c b/lib/hdb/hdb.c index 2c1de8b3d..045f2e2cc 100644 --- a/lib/hdb/hdb.c +++ b/lib/hdb/hdb.c @@ -78,7 +78,9 @@ static struct hdb_method methods[] = { { HDB_INTERFACE_VERSION, "ldap:", hdb_ldap_create}, { HDB_INTERFACE_VERSION, "ldapi:", hdb_ldapi_create}, #endif +#ifdef HAVE_SQLITE3 { HDB_INTERFACE_VERSION, "sqlite:", hdb_sqlite_create}, +#endif {0, NULL, NULL} };