]> granicus.if.org Git - apache/commitdiff
On modern systems (e.g., FreeBSD), the db* functions reside in libc
authorMartin Kraemer <martin@apache.org>
Mon, 20 Aug 2001 07:00:23 +0000 (07:00 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 20 Aug 2001 07:00:23 +0000 (07:00 +0000)
rather than in libdb. Also, be more precise in telling what is actually
checked for (we are NOT testing for main(), but we are testing for dbopen(),
right?).
Without the first fix, configuration would fail completely for FreeBSD

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90391 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/config.m4

index 2126f4110e7c26fc8744a8920ccf3a7d7dcfe13b..a1f92aa754bb47ef969f8d09494c133af37d98c0 100644 (file)
@@ -11,7 +11,10 @@ APACHE_MODULE(auth_dbm, DBM-based access databases, , , most)
 
 APACHE_MODULE(auth_db, DB-based access databases, , , , [
   AC_CHECK_HEADERS(db.h,,enable_auth_db=no)
-  AC_CHECK_LIB(db,main,,enable_auth_db=no)
+  AC_CHECK_LIB(c,dbopen,,enable_auth_db=yes)
+  if test x"$enable_auth_db" = x"no"; then
+    AC_CHECK_LIB(db,dbopen,,enable_auth_db=no)
+  fi
 ]) 
 
 APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most, [