You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@Fujitsu-Siemens.com> on 2001/04/02 15:30:56 UTC

Re: [PATCH-1.3] RedHat, mod_rewrite, and dbm

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, hgomez@slib.fr 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
-- 
<Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <ma...@apache.org>              |   81730  Munich,  Germany

Re: [PATCH-1.3] RedHat, mod_rewrite, and dbm

Posted by "Victor J. Orlikowski" <v....@gte.net>.
This is much better. I felt like the solution I put on was something
of a band-aid, but HGomez's patch didn;t quite satify my desires.

Victor
-- 
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
orlikowski@apache.org
vjo@us.ibm.com