Use AC_GNU_SOURCE rather than defining _GNU_SOURCE directly.
authorayin <ayin>
Mon, 10 Dec 2007 23:41:15 +0000 (23:41 +0000)
committerayin <ayin>
Mon, 10 Dec 2007 23:41:15 +0000 (23:41 +0000)
configure.ac

index 381e1edc77cab007a061932aecf0269bd67c9797..e381288cd290ef5f4178512670e446d099c17c62 100644 (file)
@@ -32,6 +32,7 @@ AC_PROG_CPP
 AC_PROG_INSTALL
 
 AC_AIX
+AC_GNU_SOURCE
 AC_ISC_POSIX
 AC_LANG(C++)
 
@@ -70,8 +71,6 @@ if test -z "$orig_CXXFLAGS"; then
   CFLAGS="$CXXFLAGS"
 fi
 
-AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.)
-
 case $host in
    *-*-solaris* )
       AC_DEFINE(_XOPEN_SOURCE, 500, Needed to get declarations for msg_control and msg_controllen on Solaris)