configure: Use AC_USE_SYSTEM_EXTENSIONS

...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
This commit is contained in:
Colin Walters 2013-07-26 12:39:51 +01:00
parent 3b01cbe8a8
commit d2bb019533

View 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@:>@],