configure: Use AC_USE_SYSTEM_EXTENSIONS
authorColin Walters <walters@verbum.org>
Fri, 26 Jul 2013 11:39:51 +0000 (12:39 +0100)
committerColin Walters <walters@verbum.org>
Fri, 26 Jul 2013 18:46:21 +0000 (19:46 +0100)
...instead of detecting glibc and using _GNU_SOURCE manually.  This
should fix the build when using glibc-emulating libraries; we can
defer portability work to autoconf.

https://bugzilla.gnome.org/show_bug.cgi?id=684123

configure.ac

index d309f28..9443709 100644 (file)
@@ -111,6 +111,7 @@ AC_SUBST(LT_CURRENT_MINUS_AGE)
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
+AC_USE_SYSTEM_EXTENSIONS
 
 AM_CONDITIONAL(HAVE_GCC, [test "$GCC" = "yes"])
 
@@ -231,11 +232,6 @@ if test "x$glib_have_cocoa" = "xyes"; then
   LDFLAGS="$LDFLAGS -Wl,-framework,Foundation"
 fi
 
-gl_GLIBC21
-AS_IF([test "x$GLIBC21" = "xyes"], [
-  AC_DEFINE([_GNU_SOURCE], 1, [Make all glibc extensions visible])
-])
-
 dnl declare --enable-* args and collect ac_help strings
 AC_ARG_ENABLE(debug,
               AS_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],