You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by or...@apache.org on 2002/01/22 08:39:15 UTC
cvs commit: apache-1.3/src/helpers find-dbm-lib
orlikowski 02/01/21 23:39:15
Modified: src/helpers find-dbm-lib
Log:
Make sure that those systems having gdbm can use it when a db library is
needed.
Submitted by: Thomas Eibner <th...@stderr.net>
Revision Changes Path
1.13 +6 -3 apache-1.3/src/helpers/find-dbm-lib
Index: find-dbm-lib
===================================================================
RCS file: /home/cvs/apache-1.3/src/helpers/find-dbm-lib,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- find-dbm-lib 17 Jan 2002 13:20:51 -0000 1.12
+++ find-dbm-lib 22 Jan 2002 07:39:15 -0000 1.13
@@ -13,9 +13,7 @@
*-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 @@
# 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"