mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
boost: use boost/integer/common_factor.hpp
if available
The header `boost/math/common_factor.hpp` has been deprecated.
This commit is contained in:
parent
2bed987da4
commit
2f4daa5454
@ -41,9 +41,12 @@ 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/math/common_factor.hpp],,[
|
||||
AC_MSG_ERROR([Boost's math library is required but its headers weren't found])
|
||||
])
|
||||
AX_BOOST_CHECK_HEADERS([boost/integer/common_factor.hpp])
|
||||
if test x"$ac_cv_header_boost_integer_common_factor_hpp" != xyes; then
|
||||
AX_BOOST_CHECK_HEADERS([boost/math/common_factor.hpp],,[
|
||||
AC_MSG_ERROR([Boost's math library is required but its headers weren't found])
|
||||
])
|
||||
fi
|
||||
|
||||
AX_BOOST_CHECK_HEADERS([boost/range.hpp],,[
|
||||
AC_MSG_ERROR([Boost's Range library is required but wasn't found])
|
||||
|
@ -19,7 +19,11 @@
|
||||
# include <intrin.h>
|
||||
#endif
|
||||
|
||||
#include <boost/math/common_factor.hpp>
|
||||
#if HAVE_BOOST_INTEGER_COMMON_FACTOR_HPP
|
||||
# include <boost/integer/common_factor.hpp>
|
||||
#else
|
||||
# include <boost/math/common_factor.hpp>
|
||||
#endif
|
||||
|
||||
#include "common/math_fwd.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user