Updating branch refs/heads/master to 932f662654e9f024422e8fd806a8b9b90cc6149a (commit) from 5cd70d2665de061f5c64d6a7a21b5f564eeec813 (commit)
commit 932f662654e9f024422e8fd806a8b9b90cc6149a Author: Nick Schermer <n...@xfce.org> Date: Tue May 1 21:16:15 2007 +0000 * configure.in.in: Don't break on a broken glibc. (Old svn revision: 25664) ChangeLog | 4 ++++ configure.in.in | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5df6ff7..d34ab82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ 2007-05-01 Nick Schermer <n...@xfce.org> + * configure.in.in: Don't break on a broken glibc. + + +2007-05-01 Nick Schermer <n...@xfce.org> * mousepad/mousepad-dbus-infos.xml, mousepad/mousepad-undo.c, mousepad/mousepad-view.c: Fix some typos and replace tabs. diff --git a/configure.in.in b/configure.in.in index 4ae2f42..45f0892 100644 --- a/configure.in.in +++ b/configure.in.in @@ -82,6 +82,23 @@ dnl ************************************ AC_FUNC_MMAP() AC_CHECK_FUNCS([posix_madvise]) +dnl ****************************************** +dnl *** Linux/glibc specified work-arounds *** +dnl ****************************************** +AC_MSG_CHECKING([whether we need _BSD_SOURCE and _XOPEN_SOURCE]) +AC_TRY_LINK([#include <features.h>], +[ + if (__GLIBC_PREREQ (2, 0)); +], +[ + AC_DEFINE([_XOPEN_SOURCE], [600], [Required to unbreak glibc]) + AC_DEFINE([_BSD_SOURCE], [1], [Required to unbreak glibc]) + AC_MSG_RESULT([yes]) +], +[ + AC_MSG_RESULT([no]) +]) + dnl ****************************** dnl *** Check for i18n support *** dnl ****************************** _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits