Make inotify work without inotify in glibc.

SVN revision: 29342
This commit is contained in:
Sebastian Dransfeld 2007-04-04 11:37:10 +00:00
parent c13ec0ad48
commit 37865c6d90
1 changed files with 3 additions and 11 deletions

View File

@ -497,15 +497,10 @@ if test "x$have_ecore_file" = "xyes"; then
dnl so with this check you need a very new kernel and kernel-headers!
if test "x$use_inotify" = "xyes"; then
AC_CHECK_LIB(c, inotify_init, [
AC_TRY_COMPILE(
[
#include <sys/inotify.h>
],
[ int a = IN_MOVE_SELF; void *f = inotify_init(); ],
[
AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
AC_DEFINE(HAVE_SYS_INOTIFY, 1, [ File monitoring with Inotify - sys/inotify.h ])
], [
],
[
AC_TRY_COMPILE(
[
#include <asm/unistd.h>
@ -517,12 +512,9 @@ if test "x$have_ecore_file" = "xyes"; then
], [
use_inotify="no"
]
)
)
]
)
],[
use_inotify="no"
])
fi
#AC_MSG_CHECKING(whether FAM is to be used for filemonitoring)