Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore Modified Files: configure.in Log Message: fix inotify stuff.. bad bad bad. =================================================================== RCS file: /cvs/e/e17/libs/ecore/configure.in,v retrieving revision 1.181 retrieving revision 1.182 diff -u -3 -r1.181 -r1.182 --- configure.in 24 Mar 2007 10:41:31 -0000 1.181 +++ configure.in 30 Mar 2007 12:24:19 -0000 1.182 @@ -802,18 +802,33 @@ dnl in asm/unistd.h and IN_MOVE_SELF was added to linux/inotify.h 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 <asm/unistd.h> #include <linux/inotify.h> ], - [ int a = __NR_inotify_init; int b = IN_MOVE_SELF; ], + [ int a = IN_MOVE_SELF; void *f = inotify_init(); ], [ AC_DEFINE(HAVE_INOTIFY, 1, [ File monitoring with Inotify ]) ], [ - use_inotify="no" + AC_TRY_COMPILE( + [ + #include <sys/inotify.h> + ], + [ int a = IN_MOVE_SELF; void *f = inotify_nit(); ], + [ + 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" + ] + ) ] ) + ],[ + use_inotify="no" + ]) fi #AC_MSG_CHECKING(whether FAM is to be used for filemonitoring) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs