X-Git-Url: http://git.indexdata.com/?p=m4-moved-to-github.git;a=blobdiff_plain;f=boost.m4;fp=boost.m4;h=1f6f03adfcbb68dc2ebf3d941063bbf75342b371;hp=0540465f0ea9c59ae1fbd8ee236b6e05ffc8de9c;hb=8328fa9fa20336b6dc5534d4eeca0d49f8262dbf;hpb=c9c894a0b63f9ce9578570e3507c3e6232ec4797 diff --git a/boost.m4 b/boost.m4 index 0540465..1f6f03a 100644 --- a/boost.m4 +++ b/boost.m4 @@ -117,6 +117,28 @@ BOOST_AUTO_TEST_CASE( t ) fi LIBS="${saveLIBS}" ;; + regex) + AC_MSG_CHECKING([Boost regex]) + AC_SUBST([BOOST_REGEX_LIB]) + saveLIBS="${LIBS}" + BOOST_REGEX_LIB="" + for l in boost_regex${BOOST_TOOLSET}-mt boost_regex${BOOST_TOOLSET}; do + LIBS="${saveLIBS} -l${l}" + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ +#include +#include +]],[[ +int x = BOOST_VERSION; +]])],[ + BOOST_REGEX_LIB="-l${l}" + break],[]) + done + if test "${BOOST_REGEX_LIB}"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; esac done fi