autoconf: Only _GNU_SOURCE feature test macro needed on gnu systems

According to feature_test_macros(7), _GNU_SOURCE encompasses all the
other feature macros we were setting, so we can just dispose of them.
This commit is contained in:
Dan Nicholson 2009-01-12 11:10:31 -08:00
parent 7f7fc3e3af
commit 29f603a270
1 changed files with 1 additions and 4 deletions

View File

@ -84,10 +84,7 @@ DEFINES=""
AC_SUBST([DEFINES])
case "$host_os" in
*-gnu*)
if test "x$GCC" = xyes; then
DEFINES="$DEFINES -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
fi
DEFINES="$DEFINES -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS"
DEFINES="$DEFINES -D_GNU_SOURCE -DPTHREADS"
;;
solaris*)
DEFINES="$DEFINES -DPTHREADS -DSVR4"