diff options
author | Alan Conway <aconway@apache.org> | 2008-06-26 13:48:41 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-06-26 13:48:41 +0000 |
commit | be611b9882ba32bf16090b5a38f474c14bb5ec72 (patch) | |
tree | bda57e3d5906af439132f7a22677afd4a9b7f582 /cpp | |
parent | c519f9ee045a509331fae4fbd8ad4ddc30e7b23a (diff) | |
download | qpid-python-be611b9882ba32bf16090b5a38f474c14bb5ec72.tar.gz |
From Matt Farrellee - https://issues.apache.org/jira/browse/QPID-1151
Remove un-necessary link dependencies from client and common libraries.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671902 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/configure.ac | 14 | ||||
-rw-r--r-- | cpp/src/Makefile.am | 4 |
2 files changed, 16 insertions, 2 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac index 6cc440a00a..a7a53c3c6f 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -148,6 +148,7 @@ AC_CHECK_HEADERS([boost/shared_ptr.hpp uuid/uuid.h],, AC_MSG_ERROR([Missing required header files.])) # Check for optional CPG requirement. +tmp_LIBS=$LIBS LDFLAGS="$LDFLAGS -L/usr/lib/openais -L/usr/lib64/openais" AC_ARG_WITH([cpg], [AS_HELP_STRING([--with-cpg], [Build with CPG support for clustering.])], @@ -168,6 +169,8 @@ AC_ARG_WITH([cpg], AC_CHECK_LIB([cpg],[cpg_initialize],,[with_CPG=no]) ] ) +# Remove from LIBS, we will link it explicitly in make files. +LIBS=$tmp_LIBS AM_CONDITIONAL([CPG], [test x$with_CPG = xyes]) if test x$with_CPG = xyes; then CPPFLAGS+=" -DCPG" @@ -192,7 +195,10 @@ AS_IF([test "x$WANT_SASL" != xno], # will give you some useful default behavior, e.g. setup LDFLAGS, if # you do not give it a second argument, so try not to [AC_CHECK_HEADER([sasl/sasl.h], , [HAVE_SASL_H=no]) + tmp_LIBS=$LIBS AC_CHECK_LIB([sasl2], [sasl_checkpass], , [HAVE_SASL_LIB=no]) + # Remove from LIBS, we will link it explicitly in make files. + LIBS=$tmp_LIBS # If any of the tests failed AS_IF([test "x$HAVE_SASL_H" = xno -o \ "x$HAVE_SASL_LIB" = xno], @@ -224,11 +230,14 @@ test $want_xml = no && use_xml=no # If the user doesn't say not to use XML, see if it's available. if test $use_xml != no; then # Then see if XQilla is available + tmp_LIBS=$LIBS AC_CHECK_LIB([xerces-c], [_init], , [use_xml=no]) AC_CHECK_HEADER([xercesc/framework/MemBufInputSource.hpp], , [use_xml=no]) AC_CHECK_HEADER([xqilla/xqilla-simple.hpp], , [use_xml=no]) AC_CHECK_LIB([xqilla], [canonicalCombiningClassTable], , [use_xml=no]) - + # Remove from LIBS, we will link it explicitly in make files. + LIBS=$tmp_LIBS + # If XQilla is not available, yet specifically requested, die. test $use_xml:$want_xml = no:yes && AC_MSG_ERROR([XML Exchange requested, but XQilla or Xerces-C not available]) @@ -241,6 +250,7 @@ fi AM_CONDITIONAL([HAVE_XML], [test $use_xml = yes]) # Setup --with-rdma/--without-rdma as arguments to configure +tmp_LIBS=$LIBS AC_ARG_WITH([rdma], [AS_HELP_STRING([--with-rdma], [Build with support for Remote DMA protocols])], [case ${withval} in @@ -266,6 +276,8 @@ AC_ARG_WITH([rdma], AC_CHECK_HEADERS([rdma/rdma_cma.h],,[with_RDMA=no]) ] ) +# Remove from LIBS, we will link it explicitly in make files. +LIBS=$tmp_LIBS AM_CONDITIONAL([RDMA], [test x$with_RDMA = xyes]) # Files to generate diff --git a/cpp/src/Makefile.am b/cpp/src/Makefile.am index 2496c5f8b0..0a87595ec4 100644 --- a/cpp/src/Makefile.am +++ b/cpp/src/Makefile.am @@ -236,7 +236,9 @@ libqpidbroker_la_LIBADD = libqpidcommon.la -luuid if HAVE_XML libqpidbroker_la_LIBADD += -lxerces-c -lxqilla endif - +if HAVE_SASL +libqpidbroker_la_LIBADD += -lsasl2 +endif libqpidbroker_la_SOURCES = \ $(mgen_broker_cpp) \ |