summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-05-24 23:41:28 +0100
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-06-18 16:07:56 +0100
commit742b1ad4b069653a99fc6bd4510f2b6abb6abf95 (patch)
tree0c36d5329724f6b4bcea68e2902b26d3ee1445ac /build
parent75f1d11d93236b19d06515b8ed2baf612b0767ab (diff)
[test] Fix checking of the fenv.h include.
This adds a configure check for fenv.h and makes invalid-matrix.c check for it with HAVE_FENV_H instead of HAVE_FEDISABLEEXCEPT -- turns out Solaris doesn't have fedisableexcept(), but it does have feclearexcept(). The same issue appears on OSX and was fixed in ab86662ab499e1f29c0f8c4248771e730c281e3f. This patch adds some configure magic.
Diffstat (limited to 'build')
-rw-r--r--build/configure.ac.system2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/configure.ac.system b/build/configure.ac.system
index 46909ad0..07d30c2e 100644
--- a/build/configure.ac.system
+++ b/build/configure.ac.system
@@ -88,7 +88,7 @@ AC_CHECK_HEADER(fenv.h,
[AC_CHECK_FUNCS(feenableexcept fedisableexcept feclearexcept)])
dnl check for misc headers and functions
-AC_CHECK_HEADERS([libgen.h byteswap.h signal.h setjmp.h])
+AC_CHECK_HEADERS([libgen.h byteswap.h signal.h setjmp.h fenv.h])
AC_CHECK_FUNCS([vasnprintf link ctime_r drand48 flockfile ffs])
dnl check for win32 headers (this detects mingw as well)