build(waf): Fix the --with-cluster build
commit8124f4fcb97975444e738ee0f3c87822c4901703
authorMichael Adam <obnox@samba.org>
Tue, 23 Oct 2012 13:53:17 +0000 (23 15:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Nov 2012 08:23:54 +0000 (2 09:23 +0100)
treea9d9153893273b6e002059bcb9a777943909f554
parent12dfc7c41a0b04f19461a535a620e65b551b0ff1
build(waf): Fix the --with-cluster build

The problem with the cluster/ctdb configure checks in Samba
currently is, that the headers need to include <tdb.h>.
If there are no system tdb headers, configure fails to find
tdb headers at this stage. Since the include is only required
for some defines (TDB_DATA), the workaround is to temporarily
add the included tdb copy's include path to the include search
path in the configure test. The ctdb we run against will most
likely have been compiled against a different version of TDB
anyways...

To properly fix this, we might need to change ctdb to rely
on an external tdb library. Or to incorporate ctdb into samba
as a component that uses the same shipped tdb version.

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Oct 23 18:29:26 CEST 2012 on sn-devel-104
source3/wscript