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

@@ -35,9 +35,13 @@
#if HAVE_DB3
#ifdef HAVE_DB4_DB_H
#ifdef HAVE_DBHEADER
#include <db.h>
#elif HAVE_DB5_DB_H
#include <db5/db.h>
#elif HAVE_DB4_DB_H
#include <db4/db.h>
#elif defined(HAVE_DB3_DB_H)
#elif HAVE_DB3_DB_H
#include <db3/db.h>
#else
#include <db.h>