From d87b4e5e974e44ab08e829c74e12aac7dea5f616 Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 15 Oct 2003 11:31:03 +0000 Subject: [PATCH] Setup LIBS; check /sw/include/db4/db.h and setup for db4 when the library is found. --- configure.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.in b/configure.in index a8a5d9f..ad7175f 100644 --- a/configure.in +++ b/configure.in @@ -17,6 +17,12 @@ AC_PROG_LIBTOOL # Checks for libraries. if test -f /sw/include/db3/db.h; then CFLAGS="-I/sw/include/db3 $CFLAGS" + LIBS="-L/sw/lib -ldb-3 $LIBS" +elif test -f /sw/include/db4/db.h; then + CFLAGS="-I/sw/include/db4 $CFLAGS" + LIBS="-L/sw/lib -ldb-4 $LIBS" +else + LIBS="-ldb $LIBS" fi # Checks for header files. -- 1.7.10.4