From 4a84b6afd2b413e27f4061f52646df6b3e9971af Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 4 Nov 2011 17:30:12 +0100 Subject: [PATCH] Ensure that configure runs even if neither fam nor inotify are available --- src/configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/configure.ac b/src/configure.ac index dbae3f03..fed02539 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -112,7 +112,7 @@ if test X$withInotify != Xno ; then AC_DEFINE(RCL_MONITOR, 1, [Real time monitoring option]) AC_DEFINE(RCL_USE_INOTIFY, 1, [Compile the inotify interface]) else - AC_MSG_NOTICE([inotify monitoring disabled]) + AC_MSG_NOTICE([inotify not found, inotify monitoring disabled]) fi # Real time monitoring with FAM @@ -126,12 +126,17 @@ if test X$withFam != Xno -a X$withInotify != Xno ; then 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 + AC_MSG_NOTICE([FAM library not found, disabling FAM and real time indexing support]) + withFam=no + fi ;; *) # The argument should be the path to the fam library famLib=$withFam