From f13fc0022f330641710829db83d3668441df0ad1 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 11 Jun 2001 19:21:04 +0000 Subject: Update db3 configure checks for RedHat. /me beats a sleep cat to death 2001-06-11 JP Rosevear * configure.in: Update db3 configure checks for RedHat. /me beats a sleep cat to death svn path=/trunk/; revision=10188 --- ChangeLog | 5 +++++ configure.in | 39 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a331db492c..fb8d1daa36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-06-11 JP Rosevear + + * configure.in: Update configure checks for RedHat. /me beats a + sleep cat to death + 2001-06-09 Christopher James Lahey * configure.in: Bumped required version of gal to 0.8.99.2. diff --git a/configure.in b/configure.in index 34339e3bf4..8fce4794a8 100644 --- a/configure.in +++ b/configure.in @@ -349,9 +349,44 @@ main (void) LIBS="$LIBS_save" CPPFLAGS="$CPPFLAGS_save" ]) +fi + +if test $ac_cv_db3_lib_check = yes; then + DB3_LDADD="$with_db3_libs/libdb3.a" +else + AC_CACHE_CHECK([for -ldb-3.1 3.1.17], ac_cv_db3_lib_db31_check, + [ + LIBS_save="$LIBS" + LIBS="$with_db3_libs/libdb-3.1.a $LIBS" + CPPFLAGS_save="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $DB3_CFLAGS" + + AC_TRY_RUN([ +#if $HAVE_DB3_DB_H_INTERNAL +#include +#else +#include +#endif +int +main (void) +{ + int major, minor, patch; + db_version (&major, &minor, &patch); + if (major == 3 && + minor == 1 && + patch == 17) + return 0; + else + return 1; +} +], ac_cv_db3_lib_db31_check=yes, ac_cv_db3_lib_db31_check=no) + + LIBS="$LIBS_save" + CPPFLAGS="$CPPFLAGS_save" + ]) - if test $ac_cv_db3_lib_db3_check = yes; then - DB3_LDADD="$with_db3_libs/libdb3.a" + if test $ac_cv_db3_lib_db31_check = yes; then + DB3_LDADD="$with_db3_libs/libdb-3.1.a" else AC_ERROR(Didn't find libdb 3.1.17 libraries. You must have libdb version 3.1.17 installed to compile evolution) fi -- cgit