mkvtoolnix/ac/boost.m4

26 lines
707 B
Plaintext

# boost's headers must be present.
AX_BOOST_BASE([1.46.0])
# boost::system can be absend for older versions. However, the test
# for boost::filesystem might fail if boost::system is not available
# with newer versions.
AX_BOOST_SYSTEM()
# 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
AX_BOOST_CHECK_HEADERS([boost/property_tree/ptree.hpp],,[
AC_MSG_ERROR([Boost's property tree library is required but wasn't found])
])