Check for sys/inotify.h first. This will become standard and wont be found

if the test is the other way around.


SVN revision: 29325
This commit is contained in:
Sebastian Dransfeld 2007-04-03 19:20:04 +00:00
parent 82bf357ecc
commit 479f628f89
1 changed files with 5 additions and 5 deletions

View File

@ -499,21 +499,21 @@ if test "x$have_ecore_file" = "xyes"; then
AC_CHECK_LIB(c, inotify_init, [
AC_TRY_COMPILE(
[
#include <asm/unistd.h>
#include <linux/inotify.h>
#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 <sys/inotify.h>
#include <asm/unistd.h>
#include <linux/inotify.h>
],
[ int a = IN_MOVE_SELF; void *f = inotify_nit(); ],
[ 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 ])
], [
use_inotify="no"
]