Björn Martensen wrote:
> replaced the ones at
> http://stud.fh-wedel.de/~mi2112/config.h
> http://stud.fh-wedel.de/~mi2112/config.log

Ok, next try. ;-)

> Björn

Benedikt
Index: configure.in.in
===================================================================
--- configure.in.in	(revision 22545)
+++ configure.in.in	(working copy)
@@ -121,39 +121,18 @@
 dnl ******************************************
 dnl *** Linux/glibc specified work-arounds ***
 dnl ******************************************
-m4_define([glibc_workaround_test],
-[
-posix_madvise (0, 0, POSIX_MADV_NORMAL);
-posix_madvise (0, 0, POSIX_MADV_SEQUENTIAL);
-posix_madvise (0, 0, POSIX_MADV_RANDOM);
-posix_madvise (0, 0, POSIX_MADV_WILLNEED);
-posix_madvise (0, 0, POSIX_MADV_DONTNEED);
-strptime (0, 0, 0);
-dirfd (0);
-])
 AC_MSG_CHECKING([whether we need _BSD_SOURCE and _XOPEN_SOURCE])
-AC_TRY_LINK([#include <sys/types.h>
-#include <sys/mman.h>
-#include <dirent.h>
-#include <time.h>], glibc_workaround_test(),
+AC_TRY_LINK([#include <features.h>],
 [
-  AC_MSG_RESULT([no])
+  if (__GLIBC_PREREQ (2, 0));
 ],
 [
-  AC_TRY_LINK([#define _XOPEN_SOURCE 600
-#define _BSD_SOURCE
-#include <sys/types.h>
-#include <sys/mman.h>
-#include <dirent.h>
-#include <time.h>], glibc_workaround_test(),
-  [
-    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])
-  ])
+  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 ******************************
_______________________________________________
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev

Reply via email to