build: Add a configure check for CTDB_CONTROL_TRANS3_COMMIT.
authorMichael Adam <obnox@samba.org>
Fri, 4 Dec 2009 10:49:21 +0000 (11:49 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 17 Dec 2009 12:17:48 +0000 (13:17 +0100)
This is the new implementation of ctdb transactions using the
global lock feature. It is needed by the current dbwrap_ctdb code.

Michael

source3/configure.in

index 5e4bb86264f85ef932e91f360b55dbe2fff29a4b..9f9e5357e9ddc5da260532d7b5f9f593c6cdd18e 100644 (file)
@@ -5072,6 +5072,23 @@ else
        ctdb_broken="transaction support too old"
 fi
 
+AC_HAVE_DECL(CTDB_CONTROL_TRANS3_COMMIT,[
+#include "confdefs.h"
+#define NO_CONFIG_H
+#include "replace.h"
+#include "system/wait.h"
+#include "system/network.h"
+#include <talloc.h>
+#include <tdb.h>
+#include <ctdb.h>
+#include <ctdb_private.h>
+])
+if test x"$ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl" = x"yes"; then
+       ctdb_broken=no
+else
+       ctdb_broken="transaction support too old"
+fi
+
 # in ctdb 1.0.57 ctdb_control_tcp was temparary renamed to ctdb_tcp_client
 AC_CHECK_TYPE(struct ctdb_tcp_client,[
        AC_DEFINE([ctdb_control_tcp],[ctdb_tcp_client],[ctdb ipv4 support])