From fcf65e3118f29e15dee6ef97a4ccfe82529e78b1 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 4 Nov 2011 17:30:15 +0100 Subject: [PATCH] Ensure that configure runs even if neither fam nor inotify are available --- src/configure | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/configure b/src/configure index 1c507fd9..046e8705 100755 --- a/src/configure +++ b/src/configure @@ -4233,8 +4233,8 @@ $as_echo "#define RCL_MONITOR 1" >>confdefs.h $as_echo "#define RCL_USE_INOTIFY 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: inotify monitoring disabled" >&5 -$as_echo "$as_me: inotify monitoring disabled" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: inotify not found, inotify monitoring disabled" >&5 +$as_echo "$as_me: inotify not found, inotify monitoring disabled" >&6;} fi # Real time monitoring with FAM @@ -4253,12 +4253,18 @@ $as_echo "$as_me: FAM support enabled but inotify support also enabled. Disablin withFam=no fi +famLib="" case $withFam in no);; yes) for dir in /usr/local/lib ${libdir};do if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi done + if test X$famLib = X ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: FAM library not found, disabling FAM and real time indexing support" >&5 +$as_echo "$as_me: FAM library not found, disabling FAM and real time indexing support" >&6;} + withFam=no + fi ;; *) # The argument should be the path to the fam library famLib=$withFam