Use AC_GNU_SOURCE

Use AC_GNU_SOURCE macro instead of setting -D_GNU_SOURCE manually.
The macro will add the _GNU_SOURCE define to config.h for systems that
have the GNU extensions.
This commit is contained in:
Michael Biebl
2009-04-22 01:55:31 +02:00
committed by Dan Williams
parent fb386ceee4
commit f744c39409

View File

@@ -8,6 +8,9 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
dnl Define _GNU_SOURCE for various things like strcasestr()
AC_GNU_SOURCE
dnl
dnl Require programs
dnl
@@ -436,9 +439,6 @@ else
AC_MSG_RESULT(no)
fi
# Define _GNU_SOURCE for various things like strcasestr()
CFLAGS="$CFLAGS -D_GNU_SOURCE"
GTK_DOC_CHECK(1.0)
dnl