Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore
Modified Files:
configure.in
Log Message:
Fix and enable inotify monitoring. You need a fairly recent inotify for
it to work.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/configure.in,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -3 -r1.101 -r1.102
--- configure.in 13 Aug 2005 22:14:40 -0000 1.101
+++ configure.in 27 Aug 2005 11:50:49 -0000 1.102
@@ -849,23 +849,26 @@
]
)
-#AC_MSG_CHECKING(whether inotify is to be used for filemonitoring)
-#AC_ARG_ENABLE(inotify,
-#[ --disable-inotify disable inotify in the ecore_file module], [
-# if test "$enableval" = "yes"; then
-# AC_MSG_RESULT(yes)
-# use_inotify="yes"
-# else
-# AC_MSG_RESULT(no)
-# fi
-#], [
-# AC_MSG_RESULT(yes)
-# use_inotify="yes"
-#]
-#)
+dnl We need to check if the right inotify version is accessible
+AC_MSG_CHECKING(whether inotify is to be used for filemonitoring)
+AC_ARG_ENABLE(inotify,
+[ --disable-inotify disable inotify in the ecore_file module], [
+ if test "$enableval" = "yes"; then
+ AC_MSG_RESULT(yes)
+ use_inotify="yes"
+ else
+ AC_MSG_RESULT(no)
+ fi
+], [
+ AC_MSG_RESULT(yes)
+ use_inotify="yes"
+]
+)
if test "x$use_inotify" = "xyes"; then
- AC_CHECK_HEADER(linux/inotify.h,
+ AC_TRY_COMPILE(
+ [#include <linux/inotify.h>],
+ [struct inotify_watch_request request;request.fd = 0; request.mask = 0;],
[
AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ])
use_inotify="yes"
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs