summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-25 15:40:13 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-25 15:40:13 +0000
commit0b848e016b2760fb3ef0bf68272d918ffe93002c (patch)
tree0a1f6c4a227b85640121116d991888fca3d48740 /acinclude.m4
parent8cc80a85ca996158496e67b10f099bdb8d7f1297 (diff)
downloadmpfr-0b848e016b2760fb3ef0bf68272d918ffe93002c.tar.gz
Check if HUGE_VAL is supported.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1920 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2c740d3d2..c63fb1044 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -151,4 +151,13 @@ if test "$mpfr_cv_have_denorms" = "yes"; then
AC_DEFINE(HAVE_DENORMS,1,[Define if denormalized floats work.])
fi
+dnl Check if HUGE_VAL is supported without the need of a specific library
+AC_CACHE_CHECK([for HUGE_VAL], mpfr_cv_have_huge_val, [
+AC_TRY_LINK([#include <math.h>], [HUGE_VAL;],
+ mpfr_cv_have_huge_val=yes, mpfr_cv_have_huge_val=no)
+])
+if test "$mpfr_cv_have_huge_val" = "yes"; then
+ AC_DEFINE(HAVE_HUGE_VAL,1,[Define if HUGE_VAL can be used without the need of a specific library.])
+fi
+
])