summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2012-10-30 13:59:41 +0100
committerVolker Lendecke <vl@samba.org>2012-11-02 13:47:34 +0100
commitbf269d6b5a6783e2479ac455b8e085a5d8ad9e9e (patch)
tree90428ffbc26041a4df15065a870b1bb04380053e
parentd113d8aea5411e5e0701891f44b95d6d916b1271 (diff)
downloadsamba-bf269d6b5a6783e2479ac455b8e085a5d8ad9e9e.tar.gz
samba-bf269d6b5a6783e2479ac455b8e085a5d8ad9e9e.tar.bz2
samba-bf269d6b5a6783e2479ac455b8e085a5d8ad9e9e.zip
build(waf): check if we have ctdb_protocol.h in the cluster checks
Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/wscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 5cbfd35f2a..157a8c9d16 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 <talloc.h>
+ #include <tdb.h>
+ #include <ctdb.h>
+ #include <ctdb_protocol.h>
+
+ 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 <talloc.h>
#include <tdb.h>
#include <ctdb.h>