From: Björn Baumbach Date: Tue, 30 Oct 2012 12:59:41 +0000 (+0100) Subject: build(waf): check if we have ctdb_protocol.h in the cluster checks X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=bf269d6b5a6783e2479ac455b8e085a5d8ad9e9e;p=obnox%2Fsamba%2Fsamba-obnox.git build(waf): check if we have ctdb_protocol.h in the cluster checks Signed-off-by: Björn Baumbach Reviewed-by: Michael Adam --- diff --git a/source3/wscript b/source3/wscript index 5cbfd35f2a6..157a8c9d161 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1361,6 +1361,28 @@ main() { have_cluster_support = False ctdb_broken = "ctdb_private.h is required for cluster support" + if have_cluster_support: + conf.CHECK_CODE(''' + #define NO_CONFIG_H + #include "replace.h" + #include "system/wait.h" + #include "system/network.h" + #define private #error __USED_RESERVED_WORD_private__ + #include + #include + #include + #include + + int main(void) + { + return 0; + } + ''', + 'HAVE_CTDB_PROTOCOL_H', + addmain=False, + includes=includes, + msg='Checking for header ctdb_protocol.h') + if have_cluster_support: conf.CHECK_CODE(''' #define NO_CONFIG_H