From: Gunnar Beutner Date: Tue, 8 Oct 2013 12:23:58 +0000 (+0200) Subject: Fix boost detection on CentOS 5.x. X-Git-Tag: v0.0.3~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07edc584c8783dcfa5964c045112ba8deca69d6f;p=icinga2 Fix boost detection on CentOS 5.x. --- diff --git a/m4/ax_boost_base.m4 b/m4/ax_boost_base.m4 index 3ae2fe045..70d10296a 100644 --- a/m4/ax_boost_base.m4 +++ b/m4/ax_boost_base.m4 @@ -161,7 +161,7 @@ if test "x$want_boost" = "xyes"; then _version=0 if test "$ac_boost_path" != ""; then if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then - for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do + for i in `ls -d $ac_boost_path/include/boost-* $ac_boost_path/include/boost-[0-9][0-9][0-9] 2>/dev/null`; do _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` V_CHECK=`expr $_version_tmp \> $_version` if test "$V_CHECK" = "1" ; then @@ -175,7 +175,7 @@ if test "x$want_boost" = "xyes"; then if test "$cross_compiling" != yes; then for ac_boost_path in /usr /usr/local /opt /opt/local ; do if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then - for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do + for i in `ls -d $ac_boost_path/include/boost-* $ac_boost_path/include/boost-[0-9][0-9][0-9] 2>/dev/null`; do _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` V_CHECK=`expr $_version_tmp \> $_version` if test "$V_CHECK" = "1" ; then