From f744c3940955d904ac6f91c9c77391e839b705da Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 22 Apr 2009 01:55:31 +0200 Subject: [PATCH] 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. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index c47a7bc452..07daaeb901 100644 --- a/configure.ac +++ b/configure.ac @@ -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