summaryrefslogtreecommitdiff
path: root/qpid/cpp/configure.ac
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-06-07 14:29:24 +0000
committerAlan Conway <aconway@apache.org>2007-06-07 14:29:24 +0000
commit2bc2c756906232e5182cdf0de96840661688297b (patch)
treed8c2d4d2464714c442fd70d9780a8eb967a39403 /qpid/cpp/configure.ac
parent3a00442a29d77282fe3fb4a810627deae319c796 (diff)
downloadqpid-python-2bc2c756906232e5182cdf0de96840661688297b.tar.gz
Build support for clustering, initial CPG wrapper & tests.
- src/qpid/cluster/Cpg.cpp: C++ wrapper for the openais CPG library. - src/tests/unit/Cpg.cpp: verify CPG functions in make check. - makefiles etc.: build cluster stuff only if openais is installed. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@545190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/configure.ac')
-rw-r--r--qpid/cpp/configure.ac14
1 files changed, 12 insertions, 2 deletions
diff --git a/qpid/cpp/configure.ac b/qpid/cpp/configure.ac
index 13c2ca8870..664b1e5c74 100644
--- a/qpid/cpp/configure.ac
+++ b/qpid/cpp/configure.ac
@@ -158,11 +158,21 @@ AC_SUBST(DOWNLOAD_URL)
# Check for headers from required devel kits.
missing=""
-AC_CHECK_HEADERS([libdaemon/daemon.h],,[missing="$missing libdaemon development files"])
-AC_CHECK_HEADERS([boost/shared_ptr.hpp],,[missing="$missing boost developement files"])
+AC_CHECK_HEADERS([libdaemon/daemon.h],,[missing="$missing libdaemon"])
+AC_CHECK_HEADERS([boost/shared_ptr.hpp],,[missing="$missing boost"])
test -z "$missing" ||
AC_MSG_ERROR([Missing required headers. Install the folowing packages or -devel rpms: $missing.])
+# Enable/disable cluster functionality based on presence of openais
+AC_CHECK_HEADER([openais/cpg.h],[cluster=yes],[cluster=no])
+AM_CONDITIONAL([CLUSTER], test x$cluster = xyes)
+if test x$cluster = xyes; then
+ LDFLAGS="$LDFLAGS -L/usr/lib/openais -L/usr/lib64/openais"
+ CPPFLAGS+=-DCLUSTER
+ AC_CHECK_LIB([cpg], [cpg_initialize], [],
+ [AC_MSG_ERROR([Cannot find library -lcpg. Install openais.])])
+fi
+
AC_CONFIG_FILES([
qpidc.spec
Makefile