* Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.

* configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
	* configure, config.in, Makefile.in: Regenerate.
	* sysdep.h (stpcpy): Revert last change.
This commit is contained in:
Hans-Peter Nilsson 2005-05-05 03:42:02 +00:00
parent 5cfd5a0c98
commit 4a2a268674
7 changed files with 22 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2005-05-05 Hans-Peter Nilsson <hp@axis.com>
* Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
* configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
* configure, config.in, Makefile.in: Regenerate.
* sysdep.h (stpcpy): Revert last change.
2005-05-05 Hans-Peter Nilsson <hp@axis.com>
* sysdep.h (stpcpy): Wrap declaration in parentheses.

View file

@ -598,7 +598,7 @@ BFD_LIBS = @bfd_libs@
BFD_MACHINES = @bfd_machines@
TDEFAULTS = @tdefaults@
INCLUDES = -D_GNU_SOURCE @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl
INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl
# C source files that correspond to .o's.
SOURCE_CFILES = \

View file

@ -839,7 +839,7 @@ BFD_BACKENDS = @bfd_backends@
BFD_LIBS = @bfd_libs@
BFD_MACHINES = @bfd_machines@
TDEFAULTS = @tdefaults@
INCLUDES = -D_GNU_SOURCE @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl
INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl
# C source files that correspond to .o's.
SOURCE_CFILES = \

View file

@ -337,6 +337,11 @@
/* Version number of package */
#undef VERSION
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Define to empty if `const' does not conform to ANSI C. */
#undef const

6
bfd/configure vendored
View file

@ -5138,6 +5138,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.

View file

@ -70,6 +70,7 @@ bfd_default_target_size=32
# host stuff:
AC_PROG_CC
AC_GNU_SOURCE
ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
CY_GNU_GETTEXT

View file

@ -126,9 +126,7 @@ extern PTR realloc ();
#endif
#if !HAVE_DECL_STPCPY
/* With glibc, not exposed without -D__USE_GNU, but some old versions
(2.2.5-34 on RH 7.3) still expose the macro. */
extern char *(stpcpy) (char *__dest, const char *__src);
extern char *stpcpy (char *__dest, const char *__src);
#endif
#if !HAVE_DECL_STRSTR