Move _GNU_SOURCE into config_h.SH awaay from Configure
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 18 Jan 2000 21:11:03 +0000 (21:11 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 18 Jan 2000 21:11:03 +0000 (21:11 +0000)
as suggested by Andy.

p4raw-id: //depot/cfgperl@4815

Configure
config_h.SH

index 6618d9e..759e201 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Tue Jan 18 21:42:31 EET 2000 [metaconfig 3.0 PL70]
+# Generated on Tue Jan 18 23:09:49 EET 2000 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.com)
 
 cat >/tmp/c1$$ <<EOF
@@ -3100,8 +3100,6 @@ if $cc -o gccvers gccvers.c; then
        case "$gccversion" in
        '') echo "You are not using GNU cc." ;;
        *)  echo "You are using GNU cc $gccversion."
-           echo "Adding -D_GNU_SOURCE to ccflags."
-           ccflags="$ccflags -D_GNU_SOURCE" # expose glibc interfaces
            ;;
        esac
 else
index 712b38e..f5f4bc9 100644 (file)
@@ -1547,6 +1547,9 @@ sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-
  *     the GNU C library is being used.
  */
 #$d_gnulibc HAS_GNULIBC        /**/
+#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
+#   define _GNU_SOURCE
+#endif
 /* HAS_HASMNTOPT:
  *     This symbol, if defined, indicates that the hasmntopt routine is
  *     available to query the mount options of file systems.