summaryrefslogtreecommitdiff
path: root/numpy/core/SConscript
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-11-04 07:50:41 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-11-04 07:50:41 +0000
commita04e1ed7373071ad4550720875af8cd1006bb399 (patch)
treea7cd5d12e7c88e81547cba793df2cbf5809c5e88 /numpy/core/SConscript
parent74bca4fa9262d365eda8f59932c0d5bc86582f4b (diff)
downloadnumpy-a04e1ed7373071ad4550720875af8cd1006bb399.tar.gz
Start complex support for npymath.
Detect if C99 complex support is available, and check for a few basic complex functions availability.
Diffstat (limited to 'numpy/core/SConscript')
-rw-r--r--numpy/core/SConscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript
index 96c2ed0e8..7b2132433 100644
--- a/numpy/core/SConscript
+++ b/numpy/core/SConscript
@@ -213,7 +213,16 @@ if ENABLE_SEPARATE_COMPILATION:
else:
numpyconfig_sym.append(('DEFINE_NPY_ENABLE_SEPARATE_COMPILATION', ''))
-# Checking for visibility macro
+#-----------------------------
+# Checking for complex support
+#-----------------------------
+if config.CheckHeader('complex.h'):
+ st = config.CheckFuncsAtOnce(C99_COMPLEX_FUNCS)
+ if not st:
+ # Global check failed, check func per func
+ for f in C99_COMPLEX_FUNCS:
+ config.CheckFunc(f, language='C')
+
def visibility_define():
if config.CheckGCC4():
return '__attribute__((visibility("hidden")))'