X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fconcord.git;a=blobdiff_plain;f=configure.in;h=5452e882c6891c7d9702939cab6a05a5badb2300;hp=f9b2ce7dc4330623e2c3249135d50c8bee25cffe;hb=b6aac1bd870245ed92193dae35e439c2ed214039;hpb=09bc9b8ec7d8817406b4f37998132692b79c639d diff --git a/configure.in b/configure.in index f9b2ce7..5452e88 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 @@ -58,6 +62,11 @@ fi AC_C_CONST AC_C_INLINE +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(long) +AC_CHECK_SIZEOF(long long) +AC_CHECK_SIZEOF(void *) + # Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_STRNLEN