summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-19 23:30:17 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-19 23:30:17 +0000
commit3796119dd7ac86c940aaad416c431e5dbdcafef7 (patch)
tree95792d19c225f22b92277e6ad5f616cbc25ef513
parentb6c042659c3c5d6e09d7c781033723135c4183ae (diff)
downloadxine-lib-3796119dd7ac86c940aaad416c431e5dbdcafef7.tar.gz
xine-lib-3796119dd7ac86c940aaad416c431e5dbdcafef7.tar.bz2
Instead of unconditionally defining _GNU_SOURCE in three different places, let AC_GNU_SOURCE decide what it's best to do.
CVS patchset: 8720 CVS date: 2007/03/19 23:30:17
-rw-r--r--configure.ac4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index e07761d40..1b1763eb2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -117,6 +117,7 @@ dnl ---------------------------------------------
dnl Check for programs.
dnl ---------------------------------------------
+AC_GNU_SOURCE
dnl Save CFLAGS, AC_ISC_POSIX set some unwanted default CFLAGS
saved_CFLAGS="$CFLAGS"
AC_ISC_POSIX
@@ -270,7 +271,6 @@ AC_MSG_CHECKING(for recursive mutex support in pthread)
ac_save_LIBS="$LIBS"
LIBS="$LIBS $THREAD_LIBS"
-AC_DEFINE(_GNU_SOURCE)
have_recursive_mutex=no
AC_COMPILE_IFELSE(AC_LANG_SOURCE([#include <pthread.h>
@@ -1770,7 +1770,6 @@ if test "x$enable_vcd" = "xyes"; then
AC_DEFINE_UNQUOTED(HOST_ARCH, "$host_os/$host_cpu", [host os/cpu identifier])
AC_DEFINE(_DEVELOPMENT_, [], enable warnings about being development release)
- AC_DEFINE(_GNU_SOURCE, [], enable GNU libc extension)
AC_STDC_HEADERS
AC_CHECK_HEADERS(sys/stat.h stdint.h glob.h inttypes.h stdbool.h)
@@ -2169,7 +2168,6 @@ if test "x$some_snprintf" != "xyes" -o \
AC_MSG_ERROR([required function not found])
fi
AC_FUNC_FSEEKO
-AC_DEFINE(_GNU_SOURCE)
AC_CHECK_HEADERS(assert.h byteswap.h malloc.h execinfo.h ucontext.h sys/mman.h sys/mixer.h libgen.h netdb.h dirent.h sys/times.h sys/ioctl.h sys/param.h alloca.h)
AC_REPLACE_FUNCS(asprintf basename gettimeofday setenv strndup strpbrk strsep strtok_r timegm unsetenv)