summaryrefslogtreecommitdiff
path: root/lang/see/patches/patch-ab
blob: 728ed39baf7156366f0872c78830e9d9252b441e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-ab,v 1.2 2009/10/25 12:49:04 ahoka Exp $

--- configure.ac.orig	2008-02-10 11:31:33.000000000 +0100
+++ configure.ac
@@ -206,11 +206,12 @@ SEE_ARG_ENABLE(longjmperror,[yes],
         [Define if you want SEE to catch longjmp corruption])
 ])
 
-SEE_ARG_ENABLE(native-dtoa,[auto],
+SEE_ARG_ENABLE(native-dtoa,[no],
     [dtoa from libc],
-    [enable_native_dtoa=yes
-     AC_CHECK_FUNCS([strtod dtoa freedtoa],,[enable_native_dtoa=no])
-])
+    [],
+    [enable_native_dtoa=yes],
+    [enable_native_dtoa=no]
+)
 AM_CONDITIONAL(NATIVE_DTOA, test x"$enable_native_dtoa" = x"yes")
 
 
@@ -333,6 +334,10 @@ AC_CHECK_FUNCS([isnan _isnan],[have_isna
 AC_CHECK_FUNCS([finite _finite isfinite],[have_finite=yes])
 AC_CHECK_FUNCS([copysign _copysign],[have_copysign=yes])
 
+if test $have_isnan = no; then
+    AC_CHECK_DECLS([isnan],[have_isnan=yes],,[#include <math.h>])
+fi
+
 dnl -- when using double isnan/finite must be available
 if test $ac_cv_sizeof_float -ne 8; then
     test $have_isnan = no && missing_funcs="$missing_funcs isnan";