From a49f76d3935306429a1b9ba59f9a80689cc974d7 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 12 Feb 2009 22:28:33 +0000 Subject: Enable --cluster-cman option if built with libcman support. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@743909 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp | 3 ++- qpid/cpp/src/qpid/cluster/Quorum.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp b/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp index 266e7f00b0..132043f91a 100644 --- a/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp +++ b/qpid/cpp/src/qpid/cluster/ClusterPlugin.cpp @@ -16,6 +16,7 @@ * */ +#include "config.h" #include "Connection.h" #include "ConnectionCodec.h" #include "ClusterSettings.h" @@ -67,7 +68,7 @@ struct ClusterOptions : public Options { ("cluster-username", optValue(settings.username, ""), "Username for connections between brokers") ("cluster-password", optValue(settings.password, ""), "Password for connections between brokers") ("cluster-mechanism", optValue(settings.mechanism, ""), "Authentication mechanism for connections between brokers") -#if HAVE_LIBCMAN +#if HAVE_LIBCMAN_H ("cluster-cman", optValue(settings.quorum), "Integrate with Cluster Manager (CMAN) cluster.") #endif ("cluster-read-max", optValue(settings.readMax,"N"), diff --git a/qpid/cpp/src/qpid/cluster/Quorum.h b/qpid/cpp/src/qpid/cluster/Quorum.h index f07b58dfa6..ea55c36730 100644 --- a/qpid/cpp/src/qpid/cluster/Quorum.h +++ b/qpid/cpp/src/qpid/cluster/Quorum.h @@ -23,7 +23,7 @@ */ #include "config.h" -#if HAVE_LIBCMAN +#if HAVE_LIBCMAN_H #include "Quorum_cman.h" #else #include "Quorum_null.h" -- cgit v1.2.1