summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-04 11:49:21 +0100
committerMichael Adam <obnox@samba.org>2010-02-12 23:12:10 +0100
commitd4c0afa841ecdae1cab955cc73360deae23f5873 (patch)
tree3dd6d8d28d97167e80e2172fdcf893697cf90550 /source3
parentebc08b9938a4d266be16ca7e06d27813952cd00f (diff)
downloadsamba-d4c0afa841ecdae1cab955cc73360deae23f5873.tar.gz
samba-d4c0afa841ecdae1cab955cc73360deae23f5873.tar.bz2
samba-d4c0afa841ecdae1cab955cc73360deae23f5873.zip
build: Add a configure check for CTDB_CONTROL_TRANS3_COMMIT.
This is the new implementation of ctdb transactions using the global lock feature. It is needed by the current dbwrap_ctdb code. Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 1f69609923..dfa275d3fd 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -5330,6 +5330,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])