summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xConfigure8
-rw-r--r--Porting/Glossary4
-rw-r--r--config_h.SH30
-rw-r--r--handy.h2
4 files changed, 30 insertions, 14 deletions
diff --git a/Configure b/Configure
index e445bdb946..b282a16a10 100755
--- a/Configure
+++ b/Configure
@@ -26,7 +26,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Mon Oct 10 16:08:59 CEST 2005 [metaconfig 3.0 PL70]
+# Generated on Tue Oct 18 16:11:43 CEST 2005 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -362,6 +362,7 @@ d_chown=''
d_chroot=''
d_chsize=''
d_class=''
+d_clearenv=''
d_closedir=''
d_void_closedir=''
d_cmsghdr_s=''
@@ -10504,6 +10505,10 @@ eval $inlibc
set class d_class
eval $inlibc
+: see if clearenv exists
+set clearenv d_clearenv
+eval $inlibc
+
hasstruct='varname=$1; struct=$2; shift; shift;
while $test $# -ge 2; do
case "$1" in
@@ -20978,6 +20983,7 @@ d_chown='$d_chown'
d_chroot='$d_chroot'
d_chsize='$d_chsize'
d_class='$d_class'
+d_clearenv='$d_clearenv'
d_closedir='$d_closedir'
d_cmsghdr_s='$d_cmsghdr_s'
d_const='$d_const'
diff --git a/Porting/Glossary b/Porting/Glossary
index 95427e2836..12c720725d 100644
--- a/Porting/Glossary
+++ b/Porting/Glossary
@@ -498,6 +498,10 @@ d_class (d_class.U):
This variable conditionally defines the HAS_CLASS symbol, which
indicates to the C program that the class() routine is available.
+d_clearenv (d_clearenv.U):
+ This variable conditionally defines the HAS_CLEARENV symbol, which
+ indicates to the C program that the clearenv () routine is available.
+
d_closedir (d_closedir.U):
This variable conditionally defines HAS_CLOSEDIR if closedir() is
available.
diff --git a/config_h.SH b/config_h.SH
index 5ff37c567e..15d8b43749 100644
--- a/config_h.SH
+++ b/config_h.SH
@@ -1948,18 +1948,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_madvise HAS_MADVISE /**/
-/* HAS_MALLOC_SIZE:
- * This symbol, if defined, indicates that the malloc_size
- * routine is available for use.
- */
-#$d_malloc_size HAS_MALLOC_SIZE /**/
-
-/* HAS_MALLOC_GOOD_SIZE:
- * This symbol, if defined, indicates that the malloc_good_size
- * routine is available for use.
- */
-#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
-
/* HAS_MEMCHR:
* This symbol, if defined, indicates that the memchr routine is available
* to locate characters within a C string.
@@ -3843,6 +3831,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_aintl HAS_AINTL /**/
+/* HAS_CLEARENV:
+ * This symbol, if defined, indicates that the clearenv () routine is
+ * available for use.
+ */
+#$d_clearenv HAS_CLEARENV /**/
+
/* HAS_COPYSIGNL:
* This symbol, if defined, indicates that the copysignl routine is
* available. If aintl is also present we can emulate modfl.
@@ -3907,6 +3901,18 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_libm_lib_version LIBM_LIB_VERSION /**/
+/* HAS_MALLOC_SIZE:
+ * This symbol, if defined, indicates that the malloc_size
+ * routine is available for use.
+ */
+#$d_malloc_size HAS_MALLOC_SIZE /**/
+
+/* HAS_MALLOC_GOOD_SIZE:
+ * This symbol, if defined, indicates that the malloc_good_size
+ * routine is available for use.
+ */
+#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
+
/* HAS_NL_LANGINFO:
* This symbol, if defined, indicates that the nl_langinfo routine is
* available to return local data. You will also need <langinfo.h>
diff --git a/handy.h b/handy.h
index 69ee8d34ab..bb4c3422c4 100644
--- a/handy.h
+++ b/handy.h
@@ -175,7 +175,7 @@ typedef U64TYPE U64;
#endif
/* HMB H.Merijn Brand - a placeholder for preparing Configure patches */
-#if defined(HAS_MALLOC_SIZE) && defined(HAS_MALLOC_GOOD_SIZE)
+#if defined(HAS_MALLOC_SIZE) && defined(HAS_MALLOC_GOOD_SIZE) && defined(HAS_CLEARENV)
/* Not (yet) used at top level, but mention them for metaconfig */
#endif