mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-28 05:45:36 +00:00
342765d5b6
It's bundled in 1.36.0, and 1.36.0 is required already
41 lines
1015 B
Plaintext
41 lines
1015 B
Plaintext
AC_DEFUN([AX_BOOST_PROPERTY_TREE_TRY_COMPILE],[
|
|
result="$1"
|
|
AC_LANG_PUSH(C++)
|
|
AC_TRY_COMPILE([
|
|
#include <boost/throw_exception.hpp>
|
|
#include <boost/property_tree/ptree.hpp>
|
|
],[
|
|
boost::property_tree::ptree pt;
|
|
],
|
|
ax_cv_boost_property_tree=$result,
|
|
ax_cv_boost_property_tree=no)
|
|
AC_LANG_POP()
|
|
])
|
|
|
|
AC_DEFUN([AX_BOOST_PROPERTY_TREE],[
|
|
included_boost_dir="$1"
|
|
|
|
AC_CACHE_CHECK([which boost/property_tree/ptree.hpp to use],
|
|
[ax_cv_boost_property_tree],[
|
|
CXXFLAGS_SAVED="$CXXFLAGS"
|
|
CXXFLAGS="$CXXFLAGS $BOOST_CPPFLAGS"
|
|
export CXXFLAGS
|
|
|
|
LDFLAGS_SAVED="$LDFLAGS"
|
|
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
|
export LDFLAGS
|
|
|
|
AX_BOOST_PROPERTY_TREE_TRY_COMPILE(system)
|
|
|
|
if test x"$ax_cv_boost_property_tree" = "xno"; then
|
|
CXXFLAGS="-I$included_boost_dir $CXXFLAGS_SAVED $BOOST_CPPFLAGS"
|
|
export CXXFLAGS
|
|
|
|
AX_BOOST_PROPERTY_TREE_TRY_COMPILE(included)
|
|
fi
|
|
|
|
CXXFLAGS="$CXXFLAGS_SAVED"
|
|
LDFLAGS="$LDFLAGS_SAVED"
|
|
])
|
|
])
|