From 3e89c8373f0c62d5769748cd2b84705f00a3c142 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 10 Jul 2000 08:26:36 +0000 Subject: [PATCH] Output to confdefs.h directly. --- m4/gnu-source.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/m4/gnu-source.m4 b/m4/gnu-source.m4 index ad410d1f93..4eab53448c 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. -- 2.30.2