From e4438af1c4165d7c0eef3f380aa0f12597c913dd Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Sat, 7 Jul 2012 21:50:22 +0900 Subject: [PATCH 1/1] Support db5 in Fink. --- configure.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index f9b2ce7..608794e 100644 --- a/configure.in +++ b/configure.in @@ -24,10 +24,12 @@ do done CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^ *//'` , -if test -f /sw/include/db3/db.h; then - CFLAGS="-I/sw/include/db3 $CFLAGS" +if test -f /sw/include/db5/db.h; then + CFLAGS="-I/sw/include/db5 $CFLAGS" elif test -f /sw/include/db4/db.h; then CFLAGS="-I/sw/include/db4 $CFLAGS" +elif test -f /sw/include/db3/db.h; then + CFLAGS="-I/sw/include/db3 $CFLAGS" fi ) @@ -41,10 +43,12 @@ done LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^ *//'` LIBS="-ldb $LIBS" , -if test -f /sw/include/db3/db.h; then - LIBS="-L/sw/lib -ldb-3 $LIBS" +if test -f /sw/include/db5/db.h; then + LIBS="-L/sw/lib -ldb-5 $LIBS" elif test -f /sw/include/db4/db.h; then LIBS="-L/sw/lib -ldb-4 $LIBS" +elif test -f /sw/include/db3/db.h; then + LIBS="-L/sw/lib -ldb-3 $LIBS" else LIBS="-ldb $LIBS" fi -- 1.7.10.4