From 783f1459cb2034639cfeffa30a1abe10a921305b Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Mon, 17 Dec 2007 16:35:46 +0100 Subject: [PATCH] Do not try to link with non existent static archives. * build-aux/boost.m4 (BOOST_FIND_LIB): Here. Suggested by David Herring. Signed-off-by: Benoit Sigoure --- ChangeLog | 6 ++++++ build-aux/boost.m4 | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1becf0c..5bc455c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-12-17 Benoit Sigoure + Do not try to link with non existent static archives. + * build-aux/boost.m4 (BOOST_FIND_LIB): Here. + Suggested by David Herring. + +2007-12-17 Benoit Sigoure + Move a test outside a huge loop. * build-aux/boost.m4 (BOOST_FIND_LIB): Check that $libext is set (by Libtool) and non-empty earlier. diff --git a/build-aux/boost.m4 b/build-aux/boost.m4 index a8362bd..0a454fb 100644 --- a/build-aux/boost.m4 +++ b/build-aux/boost.m4 @@ -279,7 +279,8 @@ for boost_rtopt_ in $boost_rtopt '' -d; do # Are we looking for a static library? case $boost_ldpath:$boost_rtopt_ in #( *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) - Boost_lib_LIBS="$boost_ldpath/lib$boost_lib.$libext";; #( + Boost_lib_LIBS="$boost_ldpath/lib$boost_lib.$libext" + test -e "$Boost_lib_LIBS" || continue;; #( *) # No: use -lboost_foo to find the shared library. Boost_lib_LIBS="-l$boost_lib";; esac -- 2.11.4.GIT