summaryrefslogtreecommitdiff
path: root/m4/gnu-source.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-10 08:26:36 +0000
committerJim Meyering <jim@meyering.net>2000-07-10 08:26:36 +0000
commitbbb585d782d45f0ec21221d97cd4d9e8326f6f1d (patch)
tree814bfd0a1ae5a1a80e707e0b2096394a201e4d7b /m4/gnu-source.m4
parenta3f96e6b8002525de06c192ac334e2d7f4e5f279 (diff)
downloadcoreutils-bbb585d782d45f0ec21221d97cd4d9e8326f6f1d.tar.xz
Output to confdefs.h directly.
Diffstat (limited to 'm4/gnu-source.m4')
-rw-r--r--m4/gnu-source.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/gnu-source.m4 b/m4/gnu-source.m4
index ad410d1f9..4eab53448 100644
--- a/m4/gnu-source.m4
+++ b/m4/gnu-source.m4
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
# Make sure _GNU_SOURCE is defined where necessary: as early as possible
# for configure-time tests, as well as for every source file that includes
# config.h.
@@ -11,11 +11,11 @@ AC_DEFUN(AC__GNU_SOURCE,
# configure-time compile tests.
# This definition must be emitted (into confdefs.h) before any
# test that involves compilation.
- AC_DEFINE(_GNU_SOURCE_KLUDGE, [1
+ cat >>confdefs.h <<\EOF
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
-#endif], [This definition has a four-line value, the last three of which
-ensure that _GNU_SOURCE is defined in confdefs.h.])
+#endif
+EOF
# Emit this code into config.h.in.
# The ifndef is to avoid redefinition warnings.