aboutsummaryrefslogtreecommitdiff
path: root/src/m4/ax_boost_program_options.m4
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-03-31 05:24:45 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-31 05:24:45 +0200
commit25333a26197b55c23debb38740ed875999aa795a (patch)
treeb40d90eae9db7baeaaa0034ae16fd05656a8215e /src/m4/ax_boost_program_options.m4
parentad603f815f2554a5f865953ffff8ac88e109fa21 (diff)
downloadbitcoin-25333a26197b55c23debb38740ed875999aa795a.tar.xz
build: improve missing boost error reporting
Diffstat (limited to 'src/m4/ax_boost_program_options.m4')
-rw-r--r--src/m4/ax_boost_program_options.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/src/m4/ax_boost_program_options.m4 b/src/m4/ax_boost_program_options.m4
index 65a39c8c70..f591441854 100644
--- a/src/m4/ax_boost_program_options.m4
+++ b/src/m4/ax_boost_program_options.m4
@@ -74,6 +74,7 @@ AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
AC_DEFINE(HAVE_BOOST_PROGRAM_OPTIONS,,[define if the Boost::PROGRAM_OPTIONS library is available])
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
if test "x$ax_boost_user_program_options_lib" = "x"; then
+ ax_lib=
for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.dylib* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.dylib.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a.*$;\1;'` ; do
ax_lib=${libextension}
AC_CHECK_LIB($ax_lib, exit,
@@ -96,7 +97,7 @@ AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
done
fi
if test "x$ax_lib" = "x"; then
- AC_MSG_ERROR(Could not find a version of the library!)
+ AC_MSG_ERROR(Could not find a version of the boost_program_options library!)
fi
if test "x$link_program_options" != "xyes"; then
AC_MSG_ERROR([Could not link against [$ax_lib] !])