From 2e9ac80e998bc79d5ef9029415008198b22168dc Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 20 Jan 2020 23:08:11 +0100 Subject: Towards waf python 2+3 support --- wscript | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index e9fb579dc9..cb3980ed41 100644 --- a/wscript +++ b/wscript @@ -1036,9 +1036,15 @@ def configure(conf): if Options.options.dist_target != 'mingw': if Options.options.dist_target != 'msvc' and re.search ("openbsd", sys.platform) == None: if re.search ("freebsd", sys.platform) != None: - conf.check_cc(function_name='dlopen', header_name='dlfcn.h', uselib_store='DL') + conf.check_cc( + msg="Checking for function 'dlopen' in dlfcn.h", + fragment = "#include \n int main(void) { dlopen (\"\", 0); return 0;}\n", + uselib_store='DL', execute = False) else: - conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL') + conf.check_cc( + msg="Checking for function 'dlopen' in dlfcn.h", + fragment = "#include \n int main(void) { dlopen (\"\", 0); return 0;}\n", + linkflags='-ldl', uselib_store='DL', execute = False) conf.check_cxx(fragment = "#include \n#if !defined (BOOST_VERSION) || BOOST_VERSION < 105600\n#error boost >= 1.56 is not available\n#endif\nint main(void) { return 0; }\n", execute = False, -- cgit v1.2.3