diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 <dlfcn.h>\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 <dlfcn.h>\n int main(void) { dlopen (\"\", 0); return 0;}\n", + linkflags='-ldl', uselib_store='DL', execute = False) conf.check_cxx(fragment = "#include <boost/version.hpp>\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, |