# # patch "ChangeLog" # from [d87b6621bea183540333477652b1ee695004ea1d] # to [6f76ef3237954babe622ca41a9342b8e41194fb5] # # patch "configure.ac" # from [9bf58c4f5b77f342cc0d1145a5b2e7a5e5755c2d] # to [b7d635722b4ea920dc920ece45422ccc97a68134] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,7 @@ +2005-07-10 Matthew Gregan + + * configure.ac: Check for boost >= 1.32. + 2005-07-09 Nathaniel Smith * ChangeLog, configure.ac: Revert accidentally-committed changes. --- configure.ac +++ configure.ac @@ -79,6 +79,21 @@ # without threads on a system that does provide threads; we'll end up # compiling monotone with thread support for no reason. +AC_DEFUN([BOOST_VERSION_CHECK], +[AC_CACHE_CHECK([boost version 1.32 or newer], ac_cv_version_boost, +[ + AC_TRY_RUN( + [#include + int main() { return (BOOST_VERSION < 103200); }], + ac_cv_version_boost=yes, + ac_cv_version_boost=no) +]) + if test $ac_cv_version_boost = no; then + AC_MSG_ERROR([boost 1.32 or newer required]) + fi +]) +BOOST_VERSION_CHECK + # Boost libraries have a string suffix that identifies the compiler # they were built with, among other details. For example, it can be # '-gcc', '-gcc-mt', '-gcc-mt-1_31', and many other combinations