summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-02 19:09:51 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-02 19:09:51 +0000
commit55e5d61e68d9ee95594562f911c9db0397246fbe (patch)
tree5501170f21f5c32b0ef0552d0ccf2ff812186861 /wscript
parentde4d3d0fdda0f20ccab06877444fc1e5ff362f93 (diff)
Insist on boost 1.45 and hence filesystem v3 now that libdcp requires it.
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/wscript b/wscript
index bf5cf1daa..ed45b278d 100644
--- a/wscript
+++ b/wscript
@@ -106,6 +106,18 @@ def configure(conf):
conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', atleast_version = '1.5.0', uselib_store = 'OPENJPEG', mandatory = True)
conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', max_version = '1.5.1', mandatory = True)
+ conf.check_cxx(fragment = """
+ #include <boost/version.hpp>\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 = 'yes',
+ errmsg = 'too old\nPlease install boost version 1.45 or higher.')
+
conf.check_cc(fragment = """
#include <libssh/libssh.h>\n
int main () {\n
@@ -118,6 +130,7 @@ def configure(conf):
#include <boost/thread.hpp>\n
int main() { boost::thread t (); }\n
""", msg = 'Checking for boost threading library',
+ libpath = '/usr/local/lib',
lib = [boost_thread, 'boost_system%s' % boost_lib_suffix],
uselib_store = 'BOOST_THREAD')