Change 14225 by jhi@alpha on 2002/01/12 20:28:05
Subject: [PATCH 2] Re: [PATCH Configure ext/NDBM_File/hints/linux.pl] Support
for linux systems with gdbm
From: Jonathan Stowe <[EMAIL PROTECTED]>
Date: Sat, 12 Jan 2002 11:13:02 +0000 (GMT)
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
.... //depot/perl/Configure#387 edit
.... //depot/perl/config_h.SH#238 edit
Differences ...
==== //depot/perl/Configure#387 (xtext) ====
Index: perl/Configure
--- perl/Configure.~1~ Sat Jan 12 13:45:05 2002
+++ perl/Configure Sat Jan 12 13:45:05 2002
@@ -20,7 +20,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Sun Dec 30 19:31:52 EET 2001 [metaconfig 3.0 PL70]
+# Generated on Sat Jan 12 23:16:55 EET 2002 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by [EMAIL PROTECTED])
cat >c1$$ <<EOF
@@ -16051,6 +16051,19 @@
: see if ndbm.h is available
set ndbm.h t_ndbm
eval $inhdr
+
+case "$t_ndbm" in
+$undef)
+ # Some Linux distributions such as RedHat 7.1 put the
+ # ndbm.h header in /usr/include/gdbm/ndbm.h.
+ if $test -f /usr/include/gdbm/ndbm.h; then
+ ccflags="$ccflags -I/usr/include/gdbm"
+ cppflags="$cppflags -I/usr/include/gdbm"
+ t_ndbm=$define
+ fi
+ ;;
+esac
+
case "$t_ndbm" in
$define)
: see if dbm_open exists
==== //depot/perl/config_h.SH#238 (text) ====
Index: perl/config_h.SH
--- perl/config_h.SH.~1~ Sat Jan 12 13:45:05 2002
+++ perl/config_h.SH Sat Jan 12 13:45:05 2002
@@ -757,12 +757,6 @@
*/
#$i_memory I_MEMORY /**/
-/* I_NDBM:
- * This symbol, if defined, indicates that <ndbm.h> exists and should
- * be included.
- */
-#$i_ndbm I_NDBM /**/
-
/* I_NET_ERRNO:
* This symbol, if defined, indicates that <net/errno.h> exists and
* should be included.
@@ -3444,6 +3438,12 @@
#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
#$d_dosuid DOSUID /**/
+/* I_NDBM:
+ * This symbol, if defined, indicates that <ndbm.h> exists and should
+ * be included.
+ */
+#$i_ndbm I_NDBM /**/
+
/* I_STDARG:
* This symbol, if defined, indicates that <stdarg.h> exists and should
* be included.
End of Patch.