mkvtoolnix/ac/boost.m4
2012-04-06 18:01:52 +02:00

48 lines
1.3 KiB
Plaintext

# boost's headers must be present.
AX_BOOST_BASE([1.46.0])
# boost::filesystem must be present.
AX_BOOST_FILESYSTEM()
if test x"$ax_cv_boost_filesystem" != "xyes"; then
AC_MSG_ERROR(The Boost Filesystem Library was not found.)
fi
# boost::regex must be present.
AX_BOOST_REGEX()
if test x"$ax_cv_boost_regex" != "xyes"; then
AC_MSG_ERROR(The Boost Regex Library was not found.)
fi
# boost::system must be present.
AX_BOOST_SYSTEM()
if test x"$ax_cv_boost_system" != "xyes"; then
AC_MSG_ERROR(The Boost System Library was not found.)
fi
AX_BOOST_CHECK_HEADERS([boost/rational.hpp],,[
AC_MSG_ERROR([Boost's rational library is required but wasn't found])
])
AX_BOOST_CHECK_HEADERS([boost/logic/tribool.hpp],,[
AC_MSG_ERROR([Boost's Tribool library is required but wasn't found])
])
AX_BOOST_CHECK_HEADERS([boost/lexical_cast.hpp],,[
AC_MSG_ERROR([Boost's lexical_cast library is required but wasn't found])
])
AX_BOOST_CHECK_HEADERS([boost/type_traits/is_unsigned.hpp],,[
AC_MSG_ERROR([Boost's type traits library is required but wasn't found])
])
AX_BOOST_CHECK_HEADERS([boost/range.hpp],,[
AC_MSG_ERROR([Boost's Range library is required but wasn't found])
])
AX_BOOST_CHECK_HEADERS([boost/bind.hpp],,[
AC_MSG_ERROR([Boost's Bind library is required but wasn't found])
])