From bf269d6b5a6783e2479ac455b8e085a5d8ad9e9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Baumbach?= Date: Tue, 30 Oct 2012 13:59:41 +0100 Subject: [PATCH] build(waf): check if we have ctdb_protocol.h in the cluster checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Baumbach Reviewed-by: Michael Adam --- source3/wscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source3/wscript b/source3/wscript index 5cbfd35f2a6..157a8c9d161 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1367,6 +1367,28 @@ main() { #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 + #include "replace.h" + #include "system/wait.h" + #include "system/network.h" #include #include #include -- 2.11.4.GIT