Switch to unified view

a/src/configure b/src/configure
...
...
789
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
789
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
790
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
790
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
791
  --with-aspell           Use aspell spelling package to provide term
791
  --with-aspell           Use aspell spelling package to provide term
792
                          expansion to other spellings
792
                          expansion to other spellings
793
  --with-fam              Use File Alteration Monitor for almost real time
793
  --with-fam              Use File Alteration Monitor for almost real time
794
                          indexing of modified files. Give directory where fam
794
                          indexing of modified files. Give the fam/gamin
795
                          library lives as argument if this is not found by
795
                          library as argument (ie: /usr/lib/libfam.so) if
796
                          configure.
796
                          configure does not find the right one.
797
797
798
Some influential environment variables:
798
Some influential environment variables:
799
  CC          C compiler command
799
  CC          C compiler command
800
  CFLAGS      C compiler flags
800
  CFLAGS      C compiler flags
801
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
801
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
...
...
1284
fi;
1284
fi;
1285
case $withFam in
1285
case $withFam in
1286
     no);;
1286
     no);;
1287
     yes)
1287
     yes)
1288
    for dir in /usr/local/lib /usr/lib;do
1288
    for dir in /usr/local/lib /usr/lib;do
1289
     if test -f $dir/libfam.so ; then famLibDir=$dir;break;fi
1289
     if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi
1290
    done
1290
    done
1291
     ;;
1291
     ;;
1292
     *) # The argument should be the path to the fam library
1292
     *) # The argument should be the path to the fam library
1293
     famLibDir=$withFam
1293
     famLib=$withFam
1294
     ;;
1294
     ;;
1295
esac
1295
esac
1296
1296
1297
if test X$withFam != Xno ; then
1297
if test X$withFam != Xno ; then
1298
1298
...
...
1303
1303
1304
cat >>confdefs.h <<\_ACEOF
1304
cat >>confdefs.h <<\_ACEOF
1305
#define RCL_USE_FAM 1
1305
#define RCL_USE_FAM 1
1306
_ACEOF
1306
_ACEOF
1307
1307
1308
   if test X$famLibDir != X ; then
1308
   if test X$famLib != X ; then
1309
      famLibDir=`dirname $famLib`
1309
      famBase=`dirname $famLibDir`
1310
      famBase=`dirname $famLibDir`
1311
      famBLib=`basename $famLib .so | sed -e s/lib//`
1310
      if test ! -f $famBase/include/fam.h ; then
1312
      if test ! -f $famBase/include/fam.h ; then
1311
     { { echo "$as_me:$LINENO: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&5
1313
     { { echo "$as_me:$LINENO: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&5
1312
echo "$as_me: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&2;}
1314
echo "$as_me: error: fam.h not found in $famBase/include. Specify --with-fam=no to disable fam support" >&2;}
1313
   { (exit 1); exit 1; }; }
1315
   { (exit 1); exit 1; }; }
1314
      fi
1316
      fi
1315
      LIBFAM="-L$famLibDir -lfam"
1317
      LIBFAM="-L$famLibDir -l$famBLib"
1318
      { echo "$as_me:$LINENO: fam library directive: $LIBFAM" >&5
1319
echo "$as_me: fam library directive: $LIBFAM" >&6;}
1316
1320
1317
cat >>confdefs.h <<_ACEOF
1321
cat >>confdefs.h <<_ACEOF
1318
#define FAM_INCLUDE "$famBase/include/fam.h"
1322
#define FAM_INCLUDE "$famBase/include/fam.h"
1319
_ACEOF
1323
_ACEOF
1320
1324