OSDN Git Service

Use AC_GNU_SOURCE.
authoriant <iant>
Wed, 24 Oct 2007 18:11:23 +0000 (18:11 +0000)
committeriant <iant>
Wed, 24 Oct 2007 18:11:23 +0000 (18:11 +0000)
gold/Makefile.am
gold/Makefile.in
gold/config.in
gold/configure
gold/configure.ac
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in

index d05979e..c9cde9c 100644 (file)
@@ -10,7 +10,7 @@ ACLOCAL_AMFLAGS = -I ../bfd -I ../config
 
 AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS)
 
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
        -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
        -DLOCALEDIR="\"$(datadir)/locale\"" \
        -DBINDIR="\"$(bindir)\"" -DTOOLBINDIR="\"$(tooldir)/bin\"" \
index 4b1b9e2..a7e3f73 100644 (file)
@@ -271,7 +271,7 @@ SUBDIRS = po testsuite
 tooldir = $(exec_prefix)/$(target_alias)
 ACLOCAL_AMFLAGS = -I ../bfd -I ../config
 AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS)
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
        -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
        -DLOCALEDIR="\"$(datadir)/locale\"" \
        -DBINDIR="\"$(bindir)\"" -DTOOLBINDIR="\"$(tooldir)/bin\"" \
index f46745d..7550224 100644 (file)
 /* Define to 1 if your processor stores words with the most significant byte
    first (like Motorola and SPARC, unlike Intel and VAX). */
 #undef WORDS_BIGENDIAN
+
+/* Enable GNU extensions on systems that have them.  */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
index 2490e25..7648c2c 100755 (executable)
@@ -3810,6 +3810,14 @@ else
 echo "${ECHO_T}no, using $LN_S" >&6
 fi
 
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _GNU_SOURCE 1
+_ACEOF
+
+
+
 # If we haven't got the data from the intl directory,
 # assume NLS is disabled.
 USE_NLS=no
index d8f71df..e230b5f 100644 (file)
@@ -144,6 +144,9 @@ AC_PROG_YACC
 AC_PROG_RANLIB
 AC_PROG_INSTALL
 AC_PROG_LN_S
+
+AC_GNU_SOURCE
+
 ZW_GNU_GETTEXT_SISTER_DIR
 AM_PO_SUBDIRS
 
index bcbdcc3..5c42b3f 100644 (file)
@@ -11,7 +11,7 @@ AUTOMAKE_OPTIONS =
 # eventually.
 AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS) -fmerge-constants
 
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
        -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../../include \
        -I$(srcdir)/../../elfcpp \
        -DLOCALEDIR="\"$(datadir)/locale\"" \
index b8ab3e5..1cfea39 100644 (file)
@@ -545,7 +545,7 @@ AUTOMAKE_OPTIONS =
 # it on.  This may need to be controlled by a configure option
 # eventually.
 AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS) -fmerge-constants
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
        -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../../include \
        -I$(srcdir)/../../elfcpp \
        -DLOCALEDIR="\"$(datadir)/locale\"" \