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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Apr 2010 07:39:14 +0000 (09:39 +0200)
This is the new implementation of ctdb transactions using the
global lock feature. It is needed by the current dbwrap_ctdb code.

Michael
(cherry picked from commit d4c0afa841ecdae1cab955cc73360deae23f5873)
(cherry picked from commit ea3c4c96e0fd1f2165282589becb12bfb40700d3)

source3/configure.in

index a9b9e4789aebc350757fb36fe5907e1c95f26909..99f2448e37683f373a4c324576f84dfa3fbaef34 100644 (file)
@@ -5267,6 +5267,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])