From bbf4faae1a0b20a13ef34de3c77c0050c42aee40 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Tue, 5 Mar 2002 04:48:29 +0000 Subject: [PATCH] Alwayus define _GNU_SOURCE. Since this is always defined in config.h, the various autoconf tests should be tested with it enabled. This also works around a compiler warning caused by a minor header bug in glibc 2.1 that causes fseeko to be defined when building gpg, but not when tested for in configure --- ChangeLog | 8 ++++++++ configure.ac | 10 +--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 12a8d8213..7c854e9d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-03-04 David Shaw + + * Add a AC_DEFINE(_GNU_SOURCE). Since this is always defined in + config.h, the various autoconf tests should be tested with it + enabled. This also works around a compiler warning caused by a + minor header bug in glibc 2.1 that causes fseeko to be defined + when building gpg, but not when tested for in configure. + 2002-03-03 Werner Koch Release 1.0.6d snapshot. diff --git a/configure.ac b/configure.ac index 3f31fee82..1d7a7b752 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,7 @@ AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version of this package]) +AC_DEFINE(_GNU_SOURCE,1,[Some tests rely on this (stpcpy) and it should be used for new programs anyway]) AC_PROG_AWK @@ -145,13 +146,6 @@ AC_ARG_WITH(capabilities, AC_MSG_RESULT($use_capabilities) - -AH_TOP([ -/* need this, because some autoconf tests rely on this (e.g. stpcpy) - * and it should be used for new programs */ -#define _GNU_SOURCE 1 -]) - AH_BOTTOM([ #if !(defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_WAITPID)) #define EXEC_TEMPFILE_ONLY @@ -161,8 +155,6 @@ AH_BOTTOM([ ]) - - AM_MAINTAINER_MODE dnl Checks for programs.