From 1640f382ef93f6c7080008d69dea65a2fecfb96b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Mon, 28 Aug 2000 22:53:41 +0200
Subject: [PATCH] Added checks for fpsetmask(3C), fpsetround(3C) and
 fpsetfastmode(3C). Added check for FP_RZ.

Rev: src/modules/_math/configure.in:1.9
---
 src/modules/_math/configure.in | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/modules/_math/configure.in b/src/modules/_math/configure.in
index 8b288c5531..5cc9039f50 100644
--- a/src/modules/_math/configure.in
+++ b/src/modules/_math/configure.in
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.8 1999/04/24 13:47:49 grubba Exp $
+# $Id: configure.in,v 1.9 2000/08/28 20:53:41 grubba Exp $
 AC_INIT(math.c)
 
 AC_CONFIG_HEADER(config.h)
@@ -13,6 +13,22 @@ fi
 
 AC_CHECK_HEADERS(ieeefp.h fp_class.h floatingpoint.h)
 
+AC_CHECK_FUNCS(fpsetmask fpsetround fpsetfastmode)
+
+AC_MSG_CHECKING(for FP_RZ)
+AC_CACHE_VAL(pike_cv_FP_RZ, [
+  AC_TRY_LINK([
+#include <math.h>
+  ], [
+    fpsetround(FP_RZ);
+  ], [ pike_cv_FP_RZ=yes ], [ pike_cv_FP_RZ=no ])
+])
+if test "xpike_cv_FP_RZ" = "xyes"; then
+  AC_MSG_RESULT(yes)
+  AC_DEFINE(HAVE_FP_RZ)
+else
+  AC_MSG_RESULT(no)
+fi
 AC_OUTPUT(Makefile,echo FOO >stamp-h )
 
 
-- 
GitLab