1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-21 15:01:41 +02:00

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
This commit is contained in:
David Shaw 2002-03-05 04:48:29 +00:00
parent 975e934a4c
commit bbf4faae1a
2 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,11 @@
2002-03-04 David Shaw <dshaw@jabberwocky.com>
* 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 <wk@gnupg.org>
Release 1.0.6d snapshot.

View File

@ -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.