home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 April / PCO0499.ISO / filesbbs / os2 / apach134.arj / APACH134.ZIP / src / modules / standard / mod_auth_db.module < prev    next >
Encoding:
Text File  |  1998-09-19  |  1.2 KB  |  37 lines

  1. Name: db_auth_module
  2. ConfigStart
  3.     DB_VERSION=''
  4.     DB_LIB=''
  5.     if ./helpers/TestCompile func db_open; then
  6.         DB_VERSION='Berkeley-DB/2.x'
  7.     else
  8.         if ./helpers/TestCompile lib db db_open; then
  9.             DB_VERSION='Berkeley-DB/2.x'
  10.             DB_LIB='-ldb'
  11.         else
  12.             if ./helpers/TestCompile func dbopen; then
  13.                 DB_VERSION='Berkeley-DB/1.x'
  14.             else
  15.                 if ./helpers/TestCompile lib db dbopen; then
  16.                     DB_VERSION='Berkeley-DB/1.x'
  17.                     DB_LIB='-ldb'
  18.                 fi
  19.             fi 
  20.         fi
  21.     fi
  22.     if [ ".$DB_VERSION" != . ]; then
  23.         if [ ".$DB_LIB" != . ]; then
  24.             LIBS="$LIBS $DB_LIB"
  25.             echo "      using $DB_VERSION for mod_auth_db ($DB_LIB)"
  26.         else
  27.             echo "      using $DB_VERSION for mod_auth_db (-lc)"
  28.         fi
  29.     else
  30.         echo "Error: Neither Berkeley-DB/1.x nor Berkeley-DB/2.x library found."
  31.         echo "       Either disable mod_auth_db or provide us with the paths"
  32.         echo "       to the Berkeley-DB include and library files."
  33.         echo "       (Hint: INCLUDES, LDFLAGS, LIBS)"
  34.         exit 1
  35.     fi
  36. ConfigEnd
  37.