From f1cd9b0ae47b6f3a880e6d7d34c37ff8437f683d Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Fri, 3 Oct 2008 07:21:46 +0000 Subject: Check for some optional, C99 double math functions. --- numpy/core/SConscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'numpy') diff --git a/numpy/core/SConscript b/numpy/core/SConscript index d7a1cd608..d9d6c7b9d 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -154,6 +154,13 @@ def check_funcs(funcs): for f in funcs: st = config.CheckFunc(f, language = 'C') +# XXX: we do not test for hypot because python checks for it (HAVE_HYPOT in +# python.h... I wish they would clean their public headers someday) +optional_stdfuncs = ["expm1", "log1p", "acosh", "asinh", "atanh", + "rint", "trunc"] + +check_funcs(optional_stdfuncs) + 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