summaryrefslogtreecommitdiff
path: root/m4/ax_boost_signals.m4
diff options
context:
space:
mode:
authorThomas Porschberg <thomas@randspringer.de>2007-07-26 23:16:58 +0200
committerPeter Simons <simons@cryp.to>2007-07-26 23:16:58 +0200
commite3b9079d83ebfaab479965e1af4d407ebe756db9 (patch)
treeeaaba0ed53887a3c82a02c694ba7ceaa6f1de484 /m4/ax_boost_signals.m4
parent4129983894126d7212ce6c624f43c1fc2754108b (diff)
downloadautoconf-archive-e3b9079d83ebfaab479965e1af4d407ebe756db9.tar.gz
AX_BOOST_*: adapted for naming convention in Boost version 1.34
Diffstat (limited to 'm4/ax_boost_signals.m4')
-rw-r--r--m4/ax_boost_signals.m417
1 files changed, 9 insertions, 8 deletions
diff --git a/m4/ax_boost_signals.m4 b/m4/ax_boost_signals.m4
index 701e173..904644c 100644
--- a/m4/ax_boost_signals.m4
+++ b/m4/ax_boost_signals.m4
@@ -20,7 +20,7 @@
#
# LAST MODIFICATION
#
-# 2007-07-24
+# 2007-07-26
#
# COPYLEFT
#
@@ -74,17 +74,18 @@ AC_DEFUN([AX_BOOST_SIGNALS],
])
if test "x$ax_cv_boost_signals" = "xyes"; then
AC_DEFINE(HAVE_BOOST_SIGNALS,,[define if the Boost::Signals library is available])
- BN=boost_signals
+ BN_BOOST_SIGNALS_LIB=boost_signals
+ BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
if test "x$ax_boost_user_signals_lib" = "x"; then
- for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \
- lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \
- $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do
- AC_CHECK_LIB($ax_lib, exit, [BOOST_SIGNALS_LIB="-l$ax_lib"; AC_SUBST(BOOST_SIGNALS_LIB) link_signals="yes"; break],
+ for libextension in `ls $BOOSTLIBDIR/libboost_signals*.{so,a}* | sed 's,.*/,,' | sed -e 's;^libboost_signals\(.*\)\.so.*$;\1;' -e 's;^libboost_signals\(.*\)\.a*$;\1;'` ; do
+ ax_lib=${BN_BOOST_SIGNALS_LIB}${libextension}
+ AC_CHECK_LIB($ax_lib, exit,
+ [BOOST_SIGNALS_LIB="-l$ax_lib"; AC_SUBST(BOOST_SIGNALS_LIB) link_signals="yes"; break],
[link_signals="no"])
done
else
- for ax_lib in $ax_boost_user_signals_lib $BN-$ax_boost_user_signals_lib; do
- AC_CHECK_LIB($ax_lib, exit,
+ for ax_lib in $ax_boost_user_signals_lib $BN_BOOST_SIGNALS_LIB-$ax_boost_user_signals_lib; do
+ AC_CHECK_LIB($ax_lib, main,
[BOOST_SIGNALS_LIB="-l$ax_lib"; AC_SUBST(BOOST_SIGNALS_LIB) link_signals="yes"; break],
[link_signals="no"])
done