Add --with-berkeley-db-include option
Adds --with-berkeley-db-include=dir option to configure to use berkeley db headers in dir. Default is to let configure check. Also adds support for checking for and using db5/db.h Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
ce438f343c
commit
a1c14b2319
@@ -16,6 +16,9 @@ libroken_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
|
||||
endif
|
||||
|
||||
AM_CPPFLAGS += $(libroken_la_CPPFLAGS)
|
||||
if HAVE_DBHEADER
|
||||
AM_CPPFLAGS += -I$(DBHEADER)
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = snprintf-test resolve-test rkpty
|
||||
|
||||
|
@@ -34,7 +34,11 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "ndbm_wrap.h"
|
||||
#if defined(HAVE_DB4_DB_H)
|
||||
#if defined(HAVE_DBHEADER)
|
||||
#include <db.h>
|
||||
#elif defined(HAVE_DB5_DB_H)
|
||||
#include <db5/db.h>
|
||||
#elif defined(HAVE_DB4_DB_H)
|
||||
#include <db4/db.h>
|
||||
#elif defined(HAVE_DB3_DB_H)
|
||||
#include <db3/db.h>
|
||||
|
Reference in New Issue
Block a user