s3:configure: add a check for the new CTDB_CONTROL_TRANS2_ACTIVE
authorMichael Adam <obnox@samba.org>
Wed, 28 Oct 2009 22:56:59 +0000 (23:56 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 3 Nov 2009 00:02:37 +0000 (01:02 +0100)
Michael

source3/configure.in

index dca97f468f23986b61a0dea0c9b0989ffa7ec825..83ea8579e6ae65e3160b034b9ab94dd78a2aa81c 100644 (file)
@@ -5197,6 +5197,23 @@ else
        ctdb_broken="missing transaction support"
 fi
 
+AC_HAVE_DECL(CTDB_CONTROL_TRANS2_ACTIVE,[
+#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_TRANS2_ACTIVE_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])