diff options
Diffstat (limited to 'APACHE_1_3_42/src/modules/standard/mod_auth_db.module')
-rw-r--r-- | APACHE_1_3_42/src/modules/standard/mod_auth_db.module | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/APACHE_1_3_42/src/modules/standard/mod_auth_db.module b/APACHE_1_3_42/src/modules/standard/mod_auth_db.module new file mode 100644 index 0000000000..d982f021b1 --- /dev/null +++ b/APACHE_1_3_42/src/modules/standard/mod_auth_db.module @@ -0,0 +1,47 @@ +Name: db_auth_module +ConfigStart + DB_VERSION='' + DB_LIB='' + if ./helpers/TestCompile func db_create; then + DB_VERSION='Berkeley-DB/3.x' + elif ./helpers/TestCompile lib db db_create; then + DB_VERSION='Berkeley-DB/3.x' + DB_LIB='-ldb' + elif ./helpers/TestCompile func db_open; then + DB_VERSION='Berkeley-DB/2.x' + elif ./helpers/TestCompile lib db db_open; then + DB_VERSION='Berkeley-DB/2.x' + DB_LIB='-ldb' + elif ./helpers/TestCompile lib db2 db_open; then + DB_VERSION='Berkeley-DB/2.x' + DB_LIB='-ldb2' + elif ./helpers/TestCompile func dbopen; then + DB_VERSION='Berkeley-DB/1.x' + elif ./helpers/TestCompile lib db dbopen; then + DB_VERSION='Berkeley-DB/1.x' + DB_LIB='-ldb' + elif ./helpers/TestCompile lib db1 dbopen; then + DB_VERSION='Berkeley-DB/1.x' + DB_LIB='-ldb1' + elif TCADDINCL='#include <db.h>' INCLUDES1="$INCLUDES1 -I/usr/include/db1" TLIB="-ldb1" \ + helpers/TestCompile func dbm_open; then + # For Red Hat 7 + DB_VERSION='Berkeley-DB/1.x' + DB_LIB='-ldb1' + CFLAGS="$CFLAGS -I/usr/include/db1" + fi + if [ ".$DB_VERSION" != . ]; then + if [ ".$DB_LIB" != . ]; then + LIBS="$LIBS $DB_LIB" + echo " using $DB_VERSION for mod_auth_db ($DB_LIB)" + else + echo " using $DB_VERSION for mod_auth_db (-lc)" + fi + else + echo "Error: None of Berkeley-DB 1.x, 2.x or 3.x libraries found." + echo " Either disable mod_auth_db or provide us with the paths" + echo " to the Berkeley-DB include and library files." + echo " (Hint: INCLUDES, LDFLAGS, LIBS)" + exit 1 + fi +ConfigEnd |