mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
d113d8aea5
commit
bf269d6b5a
@ -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 <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
|
||||
|
Loading…
Reference in New Issue
Block a user