summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-17 09:55:53 +0000
committerJim Meyering <jim@meyering.net>2000-04-17 09:55:53 +0000
commiteddd7f971f748712bb68ab7b0b0e157be70c7e65 (patch)
tree797e710469b098e6e70b34fd095b15ebfc482483 /m4
parentdf85b33ee38e47c985ba5ede371eb9afeedb9e5a (diff)
downloadcoreutils-eddd7f971f748712bb68ab7b0b0e157be70c7e65.tar.xz
Get it right :-)
(jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the actual #define via AH_VERBATIM. Don't need separate AC_DEFINE. Suggestion from Akim Demaille.
Diffstat (limited to 'm4')
-rw-r--r--m4/jm-macros.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index 625a92657..ebc1946ca 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -1,4 +1,4 @@
-#serial 15
+#serial 16
dnl Misc type-related macros for fileutils, sh-utils, textutils.
@@ -198,12 +198,9 @@ AC_DEFUN(jm_CHECK_ALL_TYPES,
# Emit this code into config.h.in.
# The ifndef is to avoid redefinition warnings.
AH_VERBATIM([_GNU_SOURCE], [#ifndef _GNU_SOURCE
-# undef _GNU_SOURCE
+# define _GNU_SOURCE
#endif])
- # Enable GNU extensions.
- AC_DEFINE([_GNU_SOURCE])
-
dnl This test must come as early as possible after the compiler configuration
dnl tests, because the choice of the file model can (in principle) affect
dnl whether functions and headers are available, whether they work, etc.