Author: aconway
Date: Thu Jun 26 06:48:41 2008
New Revision: 671902

URL: http://svn.apache.org/viewvc?rev=671902&view=rev
Log:
>From Matt Farrellee - https://issues.apache.org/jira/browse/QPID-1151
Remove un-necessary link dependencies from client and common libraries.

Modified:
    incubator/qpid/trunk/qpid/cpp/configure.ac
    incubator/qpid/trunk/qpid/cpp/src/Makefile.am

Modified: incubator/qpid/trunk/qpid/cpp/configure.ac
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/configure.ac?rev=671902&r1=671901&r2=671902&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/configure.ac (original)
+++ incubator/qpid/trunk/qpid/cpp/configure.ac Thu Jun 26 06:48:41 2008
@@ -148,6 +148,7 @@
   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_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 @@
   # 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 @@
 # 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 @@
 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_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    

Modified: incubator/qpid/trunk/qpid/cpp/src/Makefile.am
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/Makefile.am?rev=671902&r1=671901&r2=671902&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/Makefile.am (original)
+++ incubator/qpid/trunk/qpid/cpp/src/Makefile.am Thu Jun 26 06:48:41 2008
@@ -236,7 +236,9 @@
 if HAVE_XML
 libqpidbroker_la_LIBADD += -lxerces-c -lxqilla
 endif
-
+if HAVE_SASL
+libqpidbroker_la_LIBADD += -lsasl2
+endif
 
 libqpidbroker_la_SOURCES = \
   $(mgen_broker_cpp) \


Reply via email to