From 526f0dff9635ed1572152a61672013d5f96ddd74 Mon Sep 17 00:00:00 2001 From: Daniel Gan-Levi Date: Mon, 17 Jun 2013 19:39:09 +0300 Subject: 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 Reviewed-by: Christian Ambach Reviewed-by: Volker Lendecke --- source3/wscript | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'source3/wscript') diff --git a/source3/wscript b/source3/wscript index b23608c399d..3c0145b5c91 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1553,6 +1553,34 @@ main() { else: Logs.warn("ignoring missing SCHEDULE_FOR_DELETION control (--enable-old-ctdb)") + if have_cluster_support: + conf.CHECK_CODE(''' + #define NO_CONFIG_H + #include "replace.h" + #include "system/wait.h" + #include "system/network.h" + #include + #include + #include + + 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 -- cgit