summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 13:12:08 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 13:12:08 +0000
commit8af592f574a17b460b2ef304fead260e279d3847 (patch)
tree2404b6119384dcb95aa70dd4cbd5facbb3270295 /configure.ac
parent56f5eda244fcdde423520ca13e4dba323e1d6290 (diff)
downloadgvfs-8af592f574a17b460b2ef304fead260e279d3847.tar.gz
Add initial fam support
Original git commit by John McCutchan <john@johnmccutchan.com> at 1178093607 +0200 svn path=/trunk/; revision=495
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2e49415f..4d7e7850 100644
--- a/configure.ac
+++ b/configure.ac
@@ -121,6 +121,35 @@ AC_CHECK_HEADERS([sys/inotify.h],
AM_CONDITIONAL(HAVE_INOTIFY, [test "$inotify_support" = "yes"])
+dnl **********************
+dnl *** Checks for FAM ***
+dnl **********************
+
+should_disable_fam=no
+
+AC_ARG_ENABLE(fam, [ --disable-fam build without enabling fam for file system monitoring],
+ [
+ if test "x$enable_fam" = "xno"; then
+ should_disable_fam=yes
+ echo "Not building FAM support"
+ fi
+ ]
+ )
+fam_support=no
+FAM_LIBS=
+if test "x$should_disable_fam" = "xno"; then
+AC_CHECK_LIB(fam, FAMOpen,
+ [AC_CHECK_HEADERS(fam.h,
+ [AC_DEFINE(HAVE_FAM, [], [Define if we have FAM])
+ FAM_LIBS="-lfam"]
+ fam_support=yes,
+ AC_MSG_WARN(*** FAM support will not be built (header files not found) ***))],
+ AC_MSG_WARN(*** FAM support will not be built (FAM library not found) ***))
+AC_SUBST(FAM_LIBS)
+fi
+AM_CONDITIONAL(HAVE_FAM, [test "$fam_support" = "yes"])
+
+
dnl ***********************
dnl *** Check for xattr ***
dnl ***********************
@@ -302,6 +331,7 @@ Makefile
gio/Makefile
gio/xdgmime/Makefile
gio/inotify/Makefile
+gio/fam/Makefile
common/Makefile
client/Makefile
daemon/Makefile
@@ -319,4 +349,5 @@ echo "
Samba support: $msg_samba
FUSE support: $msg_fuse
inotify support: $inotify_support
+ FAM support: $fam_support
"