summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-10-21 17:27:44 +0200
committerRobin Gareus <robin@gareus.org>2017-10-21 21:07:18 +0200
commit7036b2825a7c3fb2113c269b37cddbb0eb6f02cb (patch)
treedaa00fc624115f413688e408c7b0e7c4ac4303ff /wscript
parent231e25544bd67eda735e58567562522758b578d1 (diff)
Detected boost using a compile-time check (works w/x-compile)
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 7 insertions, 6 deletions
diff --git a/wscript b/wscript
index a0106f202a..28339cc200 100644
--- a/wscript
+++ b/wscript
@@ -1019,12 +1019,13 @@ def configure(conf):
conf.check_cc(function_name='dlopen', header_name='dlfcn.h', uselib_store='DL')
else:
conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL')
- conf.check_cxx(fragment = "#include <boost/version.hpp>\nint main(void) { return (BOOST_VERSION >= 103900 ? 0 : 1); }\n",
- execute = "1",
- mandatory = True,
- msg = 'Checking for boost library >= 1.39',
- okmsg = 'ok',
- errmsg = 'too old\nPlease install boost version 1.39 or higher.')
+
+ conf.check_cxx(fragment = "#include <boost/version.hpp>\n#if !defined (BOOST_VERSION) || BOOST_VERSION < 103900\n#error boost >= 1.39 is not available\n#endif\nint main(void) { return 0; }\n",
+ execute = False,
+ mandatory = True,
+ msg = 'Checking for boost library >= 1.39',
+ okmsg = 'ok',
+ errmsg = 'too old\nPlease install boost version 1.39 or higher.')
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw':
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')