aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/acinclude.m4
diff options
context:
space:
mode:
authorFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2005-10-28 20:13:20 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2005-10-28 20:13:20 +0000
commit3b14f6649a77f6c024a456f1c3a35df0662488bb (patch)
tree63c0066d3282fbbc40206a8f80b8a22b789be2f8 /libgfortran/acinclude.m4
parent9b46f94ffa7a8c7e3ddc95980359c75858d09f9c (diff)
downloadgcc-3b14f6649a77f6c024a456f1c3a35df0662488bb.zip
gcc-3b14f6649a77f6c024a456f1c3a35df0662488bb.tar.gz
gcc-3b14f6649a77f6c024a456f1c3a35df0662488bb.tar.bz2
acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check.
* acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check. * configure.ac: Check for floatingpoint.h, fptrap.h and float.h headers. Use LIBGFOR_CHECK_FPSETMASK. Check for fp_trap and fp_enable functions. * configure.host: Add case for systems with fpsetmask and systems with fp_trap/fp_enable. * config/fpu-sysv.h: New file, FPU code using fpsetmask. * config/fpu-aix.h: New file, FPU code for AIX using fp_trap and fp_enable. * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. From-SVN: r105956
Diffstat (limited to 'libgfortran/acinclude.m4')
-rw-r--r--libgfortran/acinclude.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4
index a94dafa..857733a 100644
--- a/libgfortran/acinclude.m4
+++ b/libgfortran/acinclude.m4
@@ -384,3 +384,20 @@ esac])])
if test x"$have_working_stat" = xyes; then
AC_DEFINE(HAVE_WORKING_STAT, 1, [Define if target has a reliable stat.])
fi])
+
+dnl Checks for fpsetmask function.
+AC_DEFUN([LIBGFOR_CHECK_FPSETMASK], [
+ AC_CACHE_CHECK([whether fpsetmask is present], have_fpsetmask, [
+ AC_TRY_LINK([
+#if HAVE_FLOATINGPOINT_H
+# include <floatingpoint.h>
+#endif /* HAVE_FLOATINGPOINT_H */
+#if HAVE_IEEEFP_H
+# include <ieeefp.h>
+#endif /* HAVE_IEEEFP_H */],[fpsetmask(0);],
+ eval "have_fpsetmask=yes", eval "have_fpsetmask=no")
+ ])
+ if test x"$have_fpsetmask" = xyes; then
+ AC_DEFINE(HAVE_FPSETMASK, 1, [Define if you have fpsetmask.])
+ fi
+])