dgaudet 97/08/17 23:05:37
Modified: src Configure
src/modules/standard mod_auth_db.module mod_auth_dbm.c
Log:
Moved dbm/db specific code from Configure into the appropriate module
definition section.
Revision Changes Path
1.136 +0 -12 apachen/src/Configure
Index: Configure
===================================================================
RCS file: /export/home/cvs/apachen/src/Configure,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -r1.135 -r1.136
--- Configure 1997/08/17 11:14:32 1.135
+++ Configure 1997/08/18 06:05:34 1.136
@@ -618,18 +618,6 @@
if ./helpers/TestCompile lib crypt; then
LIBS="$LIBS -lcrypt"
fi
- # many systems have -ldb installed
- DB_LIB=""
- if ./helpers/TestCompile lib db; then
- DB_LIB="-ldb"
- fi;
- # many systems don't have -ldbm
- DBM_LIB=""
- if ./helpers/TestCompile lib dbm; then
- DBM_LIB="-ldbm"
- elif ./helpers/TestCompile lib ndbm; then
- DBM_LIB="-lndbm"
- fi
;;
*-dg-dgux*)
1.2 +13 -4 apachen/src/modules/standard/mod_auth_db.module
Index: mod_auth_db.module
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_auth_db.module,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mod_auth_db.module 1997/08/10 13:31:17 1.1
+++ mod_auth_db.module 1997/08/18 06:05:36 1.2
@@ -1,7 +1,16 @@
Name: db_auth_module
ConfigStart
- LIBS="$LIBS $DB_LIB"
- if [ "X$DB_LIB" != "X" ]; then
- echo " + using $DB_LIB for mod_auth_db"
- fi
+ case "$PLAT" in
+ *-linux*)
+ # many systems have -ldb installed
+ DB_LIB=""
+ if ./helpers/TestCompile lib db; then
+ DB_LIB="-ldb"
+ fi
+ ;;
+ esac
+ LIBS="$LIBS $DB_LIB"
+ if [ "X$DB_LIB" != "X" ]; then
+ echo " + using $DB_LIB for mod_auth_db"
+ fi
ConfigEnd
1.23 +11 -0 apachen/src/modules/standard/mod_auth_dbm.c
Index: mod_auth_dbm.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_auth_dbm.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- mod_auth_dbm.c 1997/08/10 13:31:59 1.22
+++ mod_auth_dbm.c 1997/08/18 06:05:36 1.23
@@ -79,6 +79,17 @@
* MODULE-DEFINITION-START
* Name: dbm_auth_module
* ConfigStart
+ case "$PLAT" in
+ *-linux*)
+ # many systems don't have -ldbm
+ DBM_LIB=""
+ if ./helpers/TestCompile lib dbm; then
+ DBM_LIB="-ldbm"
+ elif ./helpers/TestCompile lib ndbm; then
+ DBM_LIB="-lndbm"
+ fi
+ ;;
+ esac
LIBS="$LIBS $DBM_LIB"
if [ "X$DBM_LIB" != "X" ]; then
echo " + using $DBM_LIB for mod_auth_dbm"