summaryrefslogtreecommitdiffstats
path: root/source3/wscript
diff options
context:
space:
mode:
authorDaniel Gan-Levi <danielg@il.ibm.com>2013-06-17 19:39:09 +0300
committerChristian Ambach <ambi@samba.org>2013-06-25 12:53:54 +0200
commit526f0dff9635ed1572152a61672013d5f96ddd74 (patch)
tree22b307ba3b5e9a8b7ef1910bb87334c0bf50fbc7 /source3/wscript
parentc9924ebccd4953bc61ebcce9187a54c48ec67962 (diff)
downloadsamba-526f0dff9635ed1572152a61672013d5f96ddd74.tar.gz
samba-526f0dff9635ed1572152a61672013d5f96ddd74.tar.xz
samba-526f0dff9635ed1572152a61672013d5f96ddd74.zip
s3-ctdb: Fix auto-enabling of CTDB readonly support
This fixes Bug 9957 Bug: https://bugzilla.samba.org/show_bug.cgi?id=9957 Signed-off-by: Daniel Gan-Levi <danielg@il.ibm.com> Reviewed-by: Christian Ambach <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript28
1 files changed, 28 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index b23608c399d..3c0145b5c91 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1555,6 +1555,34 @@ main() {
if have_cluster_support:
conf.CHECK_CODE('''
+ #define NO_CONFIG_H
+ #include "replace.h"
+ #include "system/wait.h"
+ #include "system/network.h"
+ #include <talloc.h>
+ #include <tdb.h>
+ #include <ctdb.h>
+
+ int main(void)
+ {
+ int i = (int)CTDB_WANT_READONLY;
+ return 0;
+ }
+ ''',
+ 'HAVE_CTDB_WANT_READONLY_DECL',
+ addmain=False,
+ includes=includes,
+ msg='Checking for CTDB readonly records support')
+
+ if not conf.CONFIG_SET('HAVE_CTDB_WANT_READONLY_DECL'):
+ if not Options.options.enable_old_ctdb:
+ have_cluster_support = False
+ ctdb_broken = "support for CTDB readonly records missing"
+ else:
+ Logs.warn("ignoring missing READONLY support (--enable-old-ctdb)")
+
+ if have_cluster_support:
+ conf.CHECK_CODE('''
#define NO_CONFIG_H
#include "replace.h"
#include "system/wait.h"