dgaudet 98/03/07 13:37:27
Modified: src/helpers find-dbm-lib
Log:
and make it work for linux too
Revision Changes Path
1.3 +4 -2 apache-1.3/src/helpers/find-dbm-lib
Index: find-dbm-lib
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/helpers/find-dbm-lib,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- find-dbm-lib 1998/03/07 21:29:57 1.2
+++ find-dbm-lib 1998/03/07 21:37:25 1.3
@@ -1,4 +1,4 @@
-# Our config tool sucks... if this script decides to modify the
+
# LIBS variable it won't be used by any of the other TestCompiles.
# So unless we protect ourselves with the found_dbm variable
# we'd end up having to do the work twice... and we'd end up putting
@@ -15,9 +15,11 @@
DBM_LIB=""
if ./helpers/TestCompile lib dbm dbm_open; then
DBM_LIB="-ldbm"
- found_dbm=1
elif ./helpers/TestCompile lib ndbm dbm_open; then
DBM_LIB="-lndbm"
+ fi
+ if [ "X$DBM_LIB" != "X" ]; then
+ LIBS="$LIBS $DBM_LIB"
found_dbm=1
fi
;;