From: Victor J. Orlikowski Date: Tue, 22 Jan 2002 07:39:15 +0000 (+0000) Subject: Make sure that those systems having gdbm can use it when a db library is X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9324b9d66ffd7595a9d7dfe95aa1508778c5cb37;p=thirdparty%2Fapache%2Fhttpd.git Make sure that those systems having gdbm can use it when a db library is needed. Submitted by: Thomas Eibner git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@92969 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/helpers/find-dbm-lib b/src/helpers/find-dbm-lib index 5f66b4aba32..69dd884eb03 100644 --- a/src/helpers/find-dbm-lib +++ b/src/helpers/find-dbm-lib @@ -13,9 +13,7 @@ if [ "x$found_dbm" = "x" ]; then *-linux*) # many systems don't have -ldbm DBM_LIB="" - if ./helpers/TestCompile lib dbm dbm_open; then - DBM_LIB="-ldbm" - elif ./helpers/TestCompile lib ndbm dbm_open; then + if ./helpers/TestCompile lib ndbm dbm_open; then DBM_LIB="-lndbm" if ./helpers/TestCompile lib db1 dbm_open; then # Red Hat needs this; ndbm.h lives in db1 @@ -25,6 +23,11 @@ if [ "x$found_dbm" = "x" ]; then # For Red Hat 7, if not handled by the ndbm case above DBM_LIB="-ldb1" CFLAGS="$CFLAGS -I/usr/include/db1" + elif ./helpers/TestCompile lib gdbm dbm_open; then + DBM_LIB="-lgdbm" + CFLAGS="$CFLAGS -I/usr/include/gdbm" + elif ./helpers/TestCompile lib dbm dbm_open; then + DBM_LIB="-ldbm" fi if [ "x$DBM_LIB" != "x" ]; then LIBS="$LIBS $DBM_LIB"