Skip to content
Snippets Groups Projects
Commit 2d1ec70b authored by Benedikt Meurer's avatar Benedikt Meurer
Browse files

2006-07-30 Benedikt Meurer <benny@xfce.org>

	* acinclude.m4(BM_THUNAR_PLUGIN_TPA): Display "no" if the tpa plugin
	  should not be build.
	* configure.in.in: Finally fix the glibc detection.




(Old svn revision: 22570)
parent 47fbb685
No related branches found
No related tags found
No related merge requests found
2006-07-30 Benedikt Meurer <benny@xfce.org>
* acinclude.m4(BM_THUNAR_PLUGIN_TPA): Display "no" if the tpa plugin
should not be build.
* configure.in.in: Finally fix the glibc detection.
2006-07-29 Benedikt Meurer <benny@xfce.org>
* thunar/thunar-application.c(thunar_application_collect_and_launch):
......
......@@ -66,6 +66,8 @@ if test x"$ac_bm_thunar_plugin_tpa" = x"yes"; then
dnl # Cannot build thunar-tpa if xfce4-panel is not installed
ac_bm_thunar_plugin_tpa=no
])
else
ac_bm_thunar_plugin_tpa=no
fi
AC_MSG_CHECKING([whether to build the thunar-tpa plugin])
AM_CONDITIONAL([THUNAR_PLUGIN_TPA], [test x"$ac_bm_thunar_plugin_tpa" = x"yes"])
......
......@@ -121,39 +121,18 @@ AC_CHECK_FUNCS([attropen extattr_get_fd fgetxattr lchmod localeconv \
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 ******************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment