Commit 246cd5ff authored by Martin Kraemer's avatar Martin Kraemer
Browse files

On modern systems (e.g., FreeBSD), the db* functions reside in libc

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
parent 96e12ca4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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, [