I was thinking of a solution similar to this one. The idea is that we
better document what header we are looking for, and which library we
link against.

The patch is based on HGomez' patch.

   Martin

Index: modules/standard/mod_auth_db.module
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_auth_db.module,v
retrieving revision 1.7
diff -u -r1.7 mod_auth_db.module
--- modules/standard/mod_auth_db.module 1999/11/28 14:01:05     1.7
+++ modules/standard/mod_auth_db.module 2001/04/02 13:27:41
@@ -17,6 +17,12 @@
     elif ./helpers/TestCompile lib db dbopen; then
         DB_VERSION='Berkeley-DB/1.x'
         DB_LIB='-ldb'
+    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

On Mon, Mar 12, 2001 at 11:44:19AM +0100, [EMAIL PROTECTED] wrote:
> I submitted some time ago a patch for the db1 location :
> 
> --- ./src/modules/standard/mod_auth_db.module.orig Tue Jan 30 19:48:20 2001
> +++ ./src/modules/standard/mod_auth_db.module Tue Jan 30 19:53:18 2001
> @@ -17,6 +17,11 @@
>      elif ./helpers/TestCompile lib db dbopen; then
>          DB_VERSION='Berkeley-DB/1.x'
>          DB_LIB='-ldb'
> +    elif ./helpers/TestCompile lib db1 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
-- 
<[EMAIL PROTECTED]>    |       Fujitsu Siemens
       <[EMAIL PROTECTED]>              |   81730  Munich,  Germany

Reply via email to