From 48a01ee3a7b9a80a65db254113397fd0a6a7d8aa Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Fri, 3 Oct 2008 07:21:15 +0000 Subject: Add an help function to check a list of functions in scons build. --- numpy/core/SConscript | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'numpy') diff --git a/numpy/core/SConscript b/numpy/core/SConscript index bc3c15993..d8531ce1b 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -145,6 +145,15 @@ if not config.CheckFuncsAtOnce(mandatory_funcs): raise SystemError("One of the required function to build numpy is not" " available (the list is %s)." % str(mandatory_funcs)) +def check_funcs(funcs): + # Use check_funcs_once first, and if it does not work, test func per + # func. Return success only if all the functions are available + st = config.CheckFuncsAtOnce(func) + if not st: + # Global check failed, check func per func + for f in funcs: + st = config.CheckFunc(f, language = 'C') + def check_func(f): """Check that f is available in mlib, and add the symbol appropriately. """ st = config.CheckDeclaration(f, language = 'C', includes = "#include ") -- cgit v1.2.1