From a2ec28fd269f22b0f515c6ee8c343e8cdb5d5da5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 28 Dec 2009 01:13:19 +0000 Subject: [PATCH] Check for boost/signals2.hpp and an appropriate version of the boost library. Closes #2963. git-svn-id: svn://localhost/ardour2/branches/3.0@6403 d708f5d6-7413-0410-9779-e7cbd77b26cf --- wscript | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 1bf6a0a8fb..3d492042be 100644 --- a/wscript +++ b/wscript @@ -454,7 +454,17 @@ def configure(conf): if Options.options.boost_sp_debug: conf.env.append_value('CXXFLAGS', '-DBOOST_SP_ENABLE_DEBUG_HOOKS') - + + autowaf.check_header(conf, 'boost/signals2.hpp') + + conf.check_cc(fragment = "#include \nint main(void) { return (BOOST_VERSION >= 104000 ? 0 : 1); }\n", + execute = "1", + mandatory = True, + define_name = 'boost_old_enough', + msg = 'Checking for boost library >= 1.40', + okmsg = 'ok', + errmsg = 'too old\nPlease install boost version 1.40 or higher.') + autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.2') autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', atleast_version='2.2') autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0')