diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-01-21 16:05:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:21 -0500 |
commit | 420e577004cdb9e00d290d3681df3b3196336d81 (patch) | |
tree | c4835d58cf03178f57a6c1ac413d8e9869397c5f /source3/configure.in | |
parent | d5206610cd67f88e2cc7d5b2b434e320e81c29d5 (diff) | |
download | samba-420e577004cdb9e00d290d3681df3b3196336d81.tar.gz samba-420e577004cdb9e00d290d3681df3b3196336d81.tar.bz2 samba-420e577004cdb9e00d290d3681df3b3196336d81.zip |
r20932: This is the basic infrastructure for inotify support. This is far from being
complete, in particular the various mask bits are not correctly supported
yet. Checkin in now, I want to see how the build farm likes it.
Volker
(This used to be commit c9a5d011a91359b242f6c26f46e96ecea6a44a3b)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index 3b497132c6..c8c02727a3 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2518,6 +2518,19 @@ if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then AC_DEFINE(HAVE_KERNEL_CHANGE_NOTIFY,1,[Whether kernel notifies changes]) fi +AC_CACHE_CHECK([for inotify support],samba_cv_HAVE_INOTIFY,[ +AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h) +AC_CHECK_FUNC(inotify_init) +AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>]) +], +samba_cv_HAVE_INOTIFY=yes, +samba_cv_HAVE_INOTIFY=no, +samba_cv_HAVE_INOTIFY=cross) + +if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then + AC_DEFINE(HAVE_INOTIFY,1,[Whether kernel has inotify support]) +fi + ################################################# # Check if FAM notifications are available. For FAM info, see # http://oss.sgi.com/projects/fam/ |