2009-12-10 18:11:24 +00:00
|
|
|
# boost's headers must be present.
|
2009-12-28 19:43:47 +00:00
|
|
|
AX_BOOST_BASE([1.34.0])
|
2009-12-10 18:11:24 +00:00
|
|
|
|
2010-02-10 12:30:54 +00:00
|
|
|
# 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()
|
|
|
|
|
2009-12-10 18:11:24 +00:00
|
|
|
# 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.
|
2008-08-30 12:45:54 +00:00
|
|
|
AX_BOOST_REGEX()
|
2008-08-30 12:49:25 +00:00
|
|
|
|
|
|
|
if test x"$ax_cv_boost_regex" != "xyes"; then
|
|
|
|
AC_MSG_ERROR(The Boost regex library was not found.)
|
|
|
|
fi
|
2009-11-25 21:29:02 +00:00
|
|
|
|
2009-12-10 18:11:24 +00:00
|
|
|
# boost::foreach can be missing; the included version will be used in
|
|
|
|
# that case.
|
2009-11-25 21:29:02 +00:00
|
|
|
boost_foreach_dir=lib/boost/foreach
|
|
|
|
AX_BOOST_FOREACH($boost_foreach_dir)
|
|
|
|
|
|
|
|
if test x"$ax_cv_boost_foreach" = "xno"; then
|
|
|
|
AC_MSG_ERROR([The Boost foreach library was not found, and the included version does not work. Install Boost v1.34.0 or later.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x"$ax_cv_boost_foreach" = "xincluded"; then
|
|
|
|
EXTRA_CFLAGS="$EXTRA_CFLAGS -I$boost_foreach_dir"
|
|
|
|
fi
|
2010-12-22 22:46:16 +00:00
|
|
|
|
|
|
|
# boost::property_tree can be missing; the included version will be used in
|
|
|
|
# that case.
|
2010-12-25 21:45:38 +00:00
|
|
|
boost_exception_dir=lib/boost/exception
|
2010-12-22 22:46:16 +00:00
|
|
|
boost_property_tree_dir=lib/boost/property_tree
|
2010-12-25 21:45:38 +00:00
|
|
|
AX_BOOST_PROPERTY_TREE($boost_property_tree_dir, $boost_exception_dir)
|
2010-12-22 22:46:16 +00:00
|
|
|
|
|
|
|
if test x"$ax_cv_boost_property_tree" = "xno"; then
|
|
|
|
AC_MSG_ERROR([The Boost property_tree library was not found, and the included version does not work. Install Boost v1.41.0 or later.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x"$ax_cv_boost_property_tree" = "xincluded"; then
|
2010-12-25 21:45:38 +00:00
|
|
|
EXTRA_CFLAGS="-I$boost_exception_dir $EXTRA_CFLAGS -I$boost_property_tree_dir"
|
2010-12-22 22:46:16 +00:00
|
|
|
fi
|