From de26c0cc60254b41b80bd2898779d2ad17c3e4ff Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Thu, 16 Jul 2009 17:18:09 +0000 Subject: Minor configure.ac cleanup to remove unneeded openais definitions when no openais is in use. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@794759 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/Makefile.am | 5 ++--- cpp/configure.ac | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp') diff --git a/cpp/Makefile.am b/cpp/Makefile.am index dd67bb8036..2b207f10e8 100644 --- a/cpp/Makefile.am +++ b/cpp/Makefile.am @@ -17,6 +17,8 @@ # under the License. # +LIBTOOL_DEPS = @LIBTOOL_DEPS@ + AUTOMAKE_OPTIONS = 1.9.2 foreign ACLOCAL_AMFLAGS = -I m4 @@ -29,6 +31,3 @@ SUBDIRS = managementgen etc src docs/api docs/man examples bindings/qmf # Update libtool, if needed. libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck - - - diff --git a/cpp/configure.ac b/cpp/configure.ac index 4ee94d27dd..8ce66cf743 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -253,6 +253,7 @@ AC_CHECK_HEADERS([boost/shared_ptr.hpp uuid/uuid.h],, # Check for optional cluster requirements. tmp_LIBS=$LIBS +tmp_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -L/usr/lib/openais -L/usr/lib64/openais -L/usr/lib/corosync -L/usr/lib64/corosync" AC_CHECK_LIB([cpg],[cpg_local_get],[have_libcpg=yes],) AC_CHECK_HEADERS([openais/cpg.h corosync/cpg.h],[have_cpg_h=yes],) @@ -272,6 +273,8 @@ AC_ARG_WITH([cpg], ] ) AM_CONDITIONAL([HAVE_LIBCPG], [test x$with_cpg = xyes]) +# Clean up unnceccassary flags if we don't use clustering +AS_IF([test ! x$with_cpg = xyes], [LDFLAGS=$tmp_LDFLAGS]) AC_CHECK_LIB([cman],[cman_is_quorate],have_libcman=yes,) AC_CHECK_HEADERS([libcman.h],have_libcman_h=yes,) -- cgit v1.2.1