From c94582da47f390ce6d9e4064f7a7ddc3cd3be07b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 2 Feb 2013 15:17:16 +0000 Subject: Try to check for boost 1.45 for filesystem::resize_file(). --- wscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index a0734d09..76e08ef5 100644 --- a/wscript +++ b/wscript @@ -46,6 +46,18 @@ def configure(conf): # Windows builds are any more reliable conf.env.append_value('CXXFLAGS', '-O2') + conf.check_cxx(fragment = """ + #include \n + #if BOOST_VERSION < 104500\n + #error boost too old\n + #endif\n + int main(void) { return 0; }\n + """, + mandatory = True, + msg = 'Checking for boost library >= 1.45', + okmsg = 'ok', + errmsg = 'too old\nPlease install boost version 1.45 or higher.') + conf.check_cxx(fragment = """ #include \n int main() { boost::filesystem::copy_file ("a", "b"); }\n -- cgit v1.2.3