[SCM] Samba Shared Repository - branch master updated

Stefan Metzmacher metze at samba.org
Mon Nov 7 08:29:08 MST 2011


The branch, master has been updated
       via  b9e6c48 s3-wafbuild: Fix inotify detection (bug 8580)
       via  8468098 s3-build: Fix inotify detection (bug 8580)
      from  230cd1e s3:libsmb: return NT_STATUS_OK for if a request is not the last one in the chain

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b9e6c48678624ba5335d00906c558ea9e0086699
Author: Björn Baumbach <bb at sernet.de>
Date:   Mon Nov 7 14:24:40 2011 +0100

    s3-wafbuild: Fix inotify detection (bug 8580)
    
    Enable inotify if sys or kernel inotify is available.
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>
    
    Autobuild-User: Stefan Metzmacher <metze at samba.org>
    Autobuild-Date: Mon Nov  7 16:28:38 CET 2011 on sn-devel-104

commit 846809853acd53a733fa6057436c6e51843d8fab
Author: Björn Baumbach <bb at sernet.de>
Date:   Mon Nov 7 12:42:28 2011 +0100

    s3-build: Fix inotify detection (bug 8580)
    
    Enable inotify if sys or kernel inotify is available.
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 source3/configure.in |    6 ++++--
 source3/wscript      |    5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/configure.in b/source3/configure.in
index 7780603..a415900 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2832,8 +2832,10 @@ 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])
+if test x"$ac_cv_func_inotify_init" = x"yes"; then
+    if test  x"$ac_cv_header_sys_inotify_h" = x"yes" -o x"$ac_cv_header_linux_inotify_h" = x"yes"; then
+        AC_DEFINE(HAVE_INOTIFY,1,[Whether kernel or sys has inotify support])
+    fi
 fi
 
 #################################################
diff --git a/source3/wscript b/source3/wscript
index 26152f5..c329cbf 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -117,8 +117,9 @@ long ret = splice(0,0,1,0,400,0);
     # Check for inotify support
     conf.CHECK_HEADERS('linux/inotify.h asm/unistd.h sys/inotify.h')
     conf.CHECK_FUNCS('inotify_init')
-    if "HAVE_LINUX_INOTIFY_H" in conf.env and "HAVE_INOTIFY_INIT" in conf.env:
-        conf.DEFINE('HAVE_INOTIFY', 1)
+    if "HAVE_INOTIFY_INIT" in conf.env:
+        if "HAVE_LINUX_INOTIFY_H" in conf.env or "HAVE_SYS_INOTIFY_H" in conf.env:
+            conf.DEFINE('HAVE_INOTIFY', 1)
 
     # Check for kernel change notify support
     conf.CHECK_CODE('''


-- 
Samba Shared Repository


More information about the samba-cvs mailing list