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:
Eray Aslan
2010-09-05 15:01:50 +00:00
committed by Love Hornquist Astrand
parent ce438f343c
commit a1c14b2319
5 changed files with 59 additions and 20 deletions

View File

@@ -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

View File

@@ -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>