annotate m4/math_h.m4 @ 17476:6057744acd2c default tip master

autoupdate
author Karl Berry <karl@freefriends.org>
date Fri, 16 Aug 2013 06:32:22 -0700
parents e542fd46ad6f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17168
1b3c19ad4b17 math: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 16768
diff changeset
1 # math_h.m4 serial 114
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 17168
diff changeset
2 dnl Copyright (C) 2007-2013 Free Software Foundation, Inc.
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_MATH_H],
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REQUIRE([gl_MATH_H_DEFAULTS])
8995
1025663f7658 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents: 8652
diff changeset
10 gl_CHECK_NEXT_HEADERS([math.h])
12726
d6da6e5f2f62 math: add portability warnings for classification macros
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
11
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
12 AC_CACHE_CHECK([whether NAN macro works], [gl_cv_header_math_nan_works],
9921
01cfd65cc7e0 Fix underquoting of AC_LANG_PROGRAM arguments.
Bruno Haible <bruno@clisp.org>
parents: 9913
diff changeset
13 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]],
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
14 [[/* Solaris 10 has a broken definition of NAN. Other platforms
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
15 fail to provide NAN, or provide it only in C99 mode; this
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
16 test only needs to fail when NAN is provided but wrong. */
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
17 float f = 1.0f;
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
18 #ifdef NAN
12421
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 10667
diff changeset
19 f = NAN;
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
20 #endif
12421
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 10667
diff changeset
21 return f == 0;]])],
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
22 [gl_cv_header_math_nan_works=yes],
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
23 [gl_cv_header_math_nan_works=no])])
9900
5f47b9c9cc45 * m4/math_h.m4 (gl_MATH_H): Fix typos.
Jim Meyering <meyering@redhat.com>
parents: 9898
diff changeset
24 if test $gl_cv_header_math_nan_works = no; then
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
25 REPLACE_NAN=1
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
26 fi
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
27 AC_CACHE_CHECK([whether HUGE_VAL works], [gl_cv_header_math_huge_val_works],
9921
01cfd65cc7e0 Fix underquoting of AC_LANG_PROGRAM arguments.
Bruno Haible <bruno@clisp.org>
parents: 9913
diff changeset
28 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]],
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
29 [[/* Solaris 10 has a broken definition of HUGE_VAL. */
12421
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 10667
diff changeset
30 double d = HUGE_VAL;
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 10667
diff changeset
31 return d == 0;]])],
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
32 [gl_cv_header_math_huge_val_works=yes],
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
33 [gl_cv_header_math_huge_val_works=no])])
9900
5f47b9c9cc45 * m4/math_h.m4 (gl_MATH_H): Fix typos.
Jim Meyering <meyering@redhat.com>
parents: 9898
diff changeset
34 if test $gl_cv_header_math_huge_val_works = no; then
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
35 REPLACE_HUGE_VAL=1
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
36 fi
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12752
diff changeset
37
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12752
diff changeset
38 dnl Check for declarations of anything we want to poison if the
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12752
diff changeset
39 dnl corresponding gnulib module is not in use.
15830
8cbd3394f44f New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 15828
diff changeset
40 gl_WARN_ON_USE_PREPARE([[#include <math.h>]],
15911
bc21ee3c09aa New module 'copysignf'.
Bruno Haible <bruno@clisp.org>
parents: 15908
diff changeset
41 [acosf acosl asinf asinl atanf atanl
16536
b4afb7c149dc New module 'cbrtl'.
Bruno Haible <bruno@clisp.org>
parents: 16534
diff changeset
42 cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf
16620
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents: 16618
diff changeset
43 expf expl exp2 exp2f exp2l expm1 expm1f expm1l
16618
ca62953d33cd New module 'exp2f'.
Bruno Haible <bruno@clisp.org>
parents: 16616
diff changeset
44 fabsf fabsl floorf floorl fma fmaf fmal
16519
52c75970f518 New module 'hypotl'.
Bruno Haible <bruno@clisp.org>
parents: 16514
diff changeset
45 fmod fmodf fmodl frexpf frexpl hypotf hypotl
16768
cd4aba7fcd3e New module 'ilogbl'.
Bruno Haible <bruno@clisp.org>
parents: 16766
diff changeset
46 ilogb ilogbf ilogbl
16678
2f6973f75a06 New module 'log2f'.
Bruno Haible <bruno@clisp.org>
parents: 16676
diff changeset
47 ldexpf ldexpl
16751
9d599e388a0f logb: Provide replacement and workarounds.
Bruno Haible <bruno@clisp.org>
parents: 16738
diff changeset
48 log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l
16755
5320f2305736 New module 'logbl'.
Bruno Haible <bruno@clisp.org>
parents: 16753
diff changeset
49 logb logbf logbl
16657
86d5719ce2ff New module 'log1pf'.
Bruno Haible <bruno@clisp.org>
parents: 16655
diff changeset
50 modf modff modfl powf
16415
7dac4948337f New module 'remainderl'.
Bruno Haible <bruno@clisp.org>
parents: 16413
diff changeset
51 remainder remainderf remainderl
15920
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents: 15918
diff changeset
52 rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl
15899
31b76bf2f9e4 New module 'tanhf'.
Bruno Haible <bruno@clisp.org>
parents: 15896
diff changeset
53 tanf tanl tanhf trunc truncf truncl])
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 ])
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 AC_DEFUN([gl_MATH_MODULE_INDICATOR],
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 [
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 AC_REQUIRE([gl_MATH_H_DEFAULTS])
13066
fc8c984b0733 Factorize common .m4 code.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
60 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12927
diff changeset
61 dnl Define it also as a C macro, for the benefit of the unit tests.
13071
b2385e7b332e Distinguish two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
62 gl_MODULE_INDICATOR_FOR_TESTS([$1])
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 ])
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 AC_DEFUN([gl_MATH_H_DEFAULTS],
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 [
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
67 GNULIB_ACOSF=0; AC_SUBST([GNULIB_ACOSF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
68 GNULIB_ACOSL=0; AC_SUBST([GNULIB_ACOSL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
69 GNULIB_ASINF=0; AC_SUBST([GNULIB_ASINF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
70 GNULIB_ASINL=0; AC_SUBST([GNULIB_ASINL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
71 GNULIB_ATANF=0; AC_SUBST([GNULIB_ATANF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
72 GNULIB_ATANL=0; AC_SUBST([GNULIB_ATANL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
73 GNULIB_ATAN2F=0; AC_SUBST([GNULIB_ATAN2F])
16533
d91850ca525f cbrt: Provide replacement on MSVC and Minix.
Bruno Haible <bruno@clisp.org>
parents: 16532
diff changeset
74 GNULIB_CBRT=0; AC_SUBST([GNULIB_CBRT])
16534
f2d8c70a9f81 New module 'cbrtf'.
Bruno Haible <bruno@clisp.org>
parents: 16533
diff changeset
75 GNULIB_CBRTF=0; AC_SUBST([GNULIB_CBRTF])
16536
b4afb7c149dc New module 'cbrtl'.
Bruno Haible <bruno@clisp.org>
parents: 16534
diff changeset
76 GNULIB_CBRTL=0; AC_SUBST([GNULIB_CBRTL])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
77 GNULIB_CEIL=0; AC_SUBST([GNULIB_CEIL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
78 GNULIB_CEILF=0; AC_SUBST([GNULIB_CEILF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
79 GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
80 GNULIB_COPYSIGN=0; AC_SUBST([GNULIB_COPYSIGN])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
81 GNULIB_COPYSIGNF=0; AC_SUBST([GNULIB_COPYSIGNF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
82 GNULIB_COPYSIGNL=0; AC_SUBST([GNULIB_COPYSIGNL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
83 GNULIB_COSF=0; AC_SUBST([GNULIB_COSF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
84 GNULIB_COSL=0; AC_SUBST([GNULIB_COSL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
85 GNULIB_COSHF=0; AC_SUBST([GNULIB_COSHF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
86 GNULIB_EXPF=0; AC_SUBST([GNULIB_EXPF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
87 GNULIB_EXPL=0; AC_SUBST([GNULIB_EXPL])
16616
2f2ef742aa4b New module 'exp2'.
Bruno Haible <bruno@clisp.org>
parents: 16606
diff changeset
88 GNULIB_EXP2=0; AC_SUBST([GNULIB_EXP2])
16618
ca62953d33cd New module 'exp2f'.
Bruno Haible <bruno@clisp.org>
parents: 16616
diff changeset
89 GNULIB_EXP2F=0; AC_SUBST([GNULIB_EXP2F])
16620
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents: 16618
diff changeset
90 GNULIB_EXP2L=0; AC_SUBST([GNULIB_EXP2L])
16581
8e7ddab445f4 New module 'expm1'.
Bruno Haible <bruno@clisp.org>
parents: 16545
diff changeset
91 GNULIB_EXPM1=0; AC_SUBST([GNULIB_EXPM1])
16583
258b00af8457 New module 'expm1f'.
Bruno Haible <bruno@clisp.org>
parents: 16581
diff changeset
92 GNULIB_EXPM1F=0; AC_SUBST([GNULIB_EXPM1F])
16585
e9d32ad2396a New module 'expm1l'.
Bruno Haible <bruno@clisp.org>
parents: 16583
diff changeset
93 GNULIB_EXPM1L=0; AC_SUBST([GNULIB_EXPM1L])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
94 GNULIB_FABSF=0; AC_SUBST([GNULIB_FABSF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
95 GNULIB_FABSL=0; AC_SUBST([GNULIB_FABSL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
96 GNULIB_FLOOR=0; AC_SUBST([GNULIB_FLOOR])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
97 GNULIB_FLOORF=0; AC_SUBST([GNULIB_FLOORF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
98 GNULIB_FLOORL=0; AC_SUBST([GNULIB_FLOORL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
99 GNULIB_FMA=0; AC_SUBST([GNULIB_FMA])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
100 GNULIB_FMAF=0; AC_SUBST([GNULIB_FMAF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
101 GNULIB_FMAL=0; AC_SUBST([GNULIB_FMAL])
16486
8b3ead70232c fmod-ieee: Work around test failures on OSF/1, mingw.
Bruno Haible <bruno@clisp.org>
parents: 16471
diff changeset
102 GNULIB_FMOD=0; AC_SUBST([GNULIB_FMOD])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
103 GNULIB_FMODF=0; AC_SUBST([GNULIB_FMODF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
104 GNULIB_FMODL=0; AC_SUBST([GNULIB_FMODL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
105 GNULIB_FREXPF=0; AC_SUBST([GNULIB_FREXPF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
106 GNULIB_FREXP=0; AC_SUBST([GNULIB_FREXP])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
107 GNULIB_FREXPL=0; AC_SUBST([GNULIB_FREXPL])
16530
3cae6aa4577f hypot-ieee: Work around test failure on OSF/1 and native Windows.
Bruno Haible <bruno@clisp.org>
parents: 16519
diff changeset
108 GNULIB_HYPOT=0; AC_SUBST([GNULIB_HYPOT])
16514
befd75611259 New module 'hypotf'.
Bruno Haible <bruno@clisp.org>
parents: 16499
diff changeset
109 GNULIB_HYPOTF=0; AC_SUBST([GNULIB_HYPOTF])
16519
52c75970f518 New module 'hypotl'.
Bruno Haible <bruno@clisp.org>
parents: 16514
diff changeset
110 GNULIB_HYPOTL=0; AC_SUBST([GNULIB_HYPOTL])
16764
d48f227b07b4 New module 'ilogb'.
Bruno Haible <bruno@clisp.org>
parents: 16755
diff changeset
111 GNULIB_ILOGB=0; AC_SUBST([GNULIB_ILOGB])
16766
4f4f1518fbab New module 'ilogbf'.
Bruno Haible <bruno@clisp.org>
parents: 16764
diff changeset
112 GNULIB_ILOGBF=0; AC_SUBST([GNULIB_ILOGBF])
16768
cd4aba7fcd3e New module 'ilogbl'.
Bruno Haible <bruno@clisp.org>
parents: 16766
diff changeset
113 GNULIB_ILOGBL=0; AC_SUBST([GNULIB_ILOGBL])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
114 GNULIB_ISFINITE=0; AC_SUBST([GNULIB_ISFINITE])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
115 GNULIB_ISINF=0; AC_SUBST([GNULIB_ISINF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
116 GNULIB_ISNAN=0; AC_SUBST([GNULIB_ISNAN])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
117 GNULIB_ISNANF=0; AC_SUBST([GNULIB_ISNANF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
118 GNULIB_ISNAND=0; AC_SUBST([GNULIB_ISNAND])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
119 GNULIB_ISNANL=0; AC_SUBST([GNULIB_ISNANL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
120 GNULIB_LDEXPF=0; AC_SUBST([GNULIB_LDEXPF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
121 GNULIB_LDEXPL=0; AC_SUBST([GNULIB_LDEXPL])
16631
45443deebb7d log: Work around OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16628
diff changeset
122 GNULIB_LOG=0; AC_SUBST([GNULIB_LOG])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
123 GNULIB_LOGF=0; AC_SUBST([GNULIB_LOGF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
124 GNULIB_LOGL=0; AC_SUBST([GNULIB_LOGL])
16736
747e0285fa98 log10: Work around OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16697
diff changeset
125 GNULIB_LOG10=0; AC_SUBST([GNULIB_LOG10])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
126 GNULIB_LOG10F=0; AC_SUBST([GNULIB_LOG10F])
16419
271a263949d9 New module 'log10l'.
Bruno Haible <bruno@clisp.org>
parents: 16415
diff changeset
127 GNULIB_LOG10L=0; AC_SUBST([GNULIB_LOG10L])
16655
e1c84de792a7 log1p: Provide replacement for Minix and MSVC.
Bruno Haible <bruno@clisp.org>
parents: 16633
diff changeset
128 GNULIB_LOG1P=0; AC_SUBST([GNULIB_LOG1P])
16657
86d5719ce2ff New module 'log1pf'.
Bruno Haible <bruno@clisp.org>
parents: 16655
diff changeset
129 GNULIB_LOG1PF=0; AC_SUBST([GNULIB_LOG1PF])
16659
28ba2c8d945e New module 'log1pl'.
Bruno Haible <bruno@clisp.org>
parents: 16657
diff changeset
130 GNULIB_LOG1PL=0; AC_SUBST([GNULIB_LOG1PL])
16676
e9598f93f892 New module 'log2'.
Bruno Haible <bruno@clisp.org>
parents: 16670
diff changeset
131 GNULIB_LOG2=0; AC_SUBST([GNULIB_LOG2])
16678
2f6973f75a06 New module 'log2f'.
Bruno Haible <bruno@clisp.org>
parents: 16676
diff changeset
132 GNULIB_LOG2F=0; AC_SUBST([GNULIB_LOG2F])
16680
fcdfd8bdad38 New module 'log2l'.
Bruno Haible <bruno@clisp.org>
parents: 16678
diff changeset
133 GNULIB_LOG2L=0; AC_SUBST([GNULIB_LOG2L])
16751
9d599e388a0f logb: Provide replacement and workarounds.
Bruno Haible <bruno@clisp.org>
parents: 16738
diff changeset
134 GNULIB_LOGB=0; AC_SUBST([GNULIB_LOGB])
16753
0f9a8ebc12c1 New module 'logbf'.
Bruno Haible <bruno@clisp.org>
parents: 16751
diff changeset
135 GNULIB_LOGBF=0; AC_SUBST([GNULIB_LOGBF])
16755
5320f2305736 New module 'logbl'.
Bruno Haible <bruno@clisp.org>
parents: 16753
diff changeset
136 GNULIB_LOGBL=0; AC_SUBST([GNULIB_LOGBL])
16467
c5b61bdb6da4 modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 16419
diff changeset
137 GNULIB_MODF=0; AC_SUBST([GNULIB_MODF])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
138 GNULIB_MODFF=0; AC_SUBST([GNULIB_MODFF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
139 GNULIB_MODFL=0; AC_SUBST([GNULIB_MODFL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
140 GNULIB_POWF=0; AC_SUBST([GNULIB_POWF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
141 GNULIB_REMAINDER=0; AC_SUBST([GNULIB_REMAINDER])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
142 GNULIB_REMAINDERF=0; AC_SUBST([GNULIB_REMAINDERF])
16415
7dac4948337f New module 'remainderl'.
Bruno Haible <bruno@clisp.org>
parents: 16413
diff changeset
143 GNULIB_REMAINDERL=0; AC_SUBST([GNULIB_REMAINDERL])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
144 GNULIB_RINT=0; AC_SUBST([GNULIB_RINT])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
145 GNULIB_RINTF=0; AC_SUBST([GNULIB_RINTF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
146 GNULIB_RINTL=0; AC_SUBST([GNULIB_RINTL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
147 GNULIB_ROUND=0; AC_SUBST([GNULIB_ROUND])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
148 GNULIB_ROUNDF=0; AC_SUBST([GNULIB_ROUNDF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
149 GNULIB_ROUNDL=0; AC_SUBST([GNULIB_ROUNDL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
150 GNULIB_SIGNBIT=0; AC_SUBST([GNULIB_SIGNBIT])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
151 GNULIB_SINF=0; AC_SUBST([GNULIB_SINF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
152 GNULIB_SINL=0; AC_SUBST([GNULIB_SINL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
153 GNULIB_SINHF=0; AC_SUBST([GNULIB_SINHF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
154 GNULIB_SQRTF=0; AC_SUBST([GNULIB_SQRTF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
155 GNULIB_SQRTL=0; AC_SUBST([GNULIB_SQRTL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
156 GNULIB_TANF=0; AC_SUBST([GNULIB_TANF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
157 GNULIB_TANL=0; AC_SUBST([GNULIB_TANL])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
158 GNULIB_TANHF=0; AC_SUBST([GNULIB_TANHF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
159 GNULIB_TRUNC=0; AC_SUBST([GNULIB_TRUNC])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
160 GNULIB_TRUNCF=0; AC_SUBST([GNULIB_TRUNCF])
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
161 GNULIB_TRUNCL=0; AC_SUBST([GNULIB_TRUNCL])
8359
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
162 dnl Assume proper GNU behavior unless another module says otherwise.
15884
c46fa8f14280 New module 'acosf'.
Bruno Haible <bruno@clisp.org>
parents: 15881
diff changeset
163 HAVE_ACOSF=1; AC_SUBST([HAVE_ACOSF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
164 HAVE_ACOSL=1; AC_SUBST([HAVE_ACOSL])
15881
8ff52f1384c6 New module 'asinf'.
Bruno Haible <bruno@clisp.org>
parents: 15878
diff changeset
165 HAVE_ASINF=1; AC_SUBST([HAVE_ASINF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
166 HAVE_ASINL=1; AC_SUBST([HAVE_ASINL])
15887
89c762414427 New module 'atanf'.
Bruno Haible <bruno@clisp.org>
parents: 15884
diff changeset
167 HAVE_ATANF=1; AC_SUBST([HAVE_ATANF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
168 HAVE_ATANL=1; AC_SUBST([HAVE_ATANL])
15890
52fb6ed99832 New module 'atan2f'.
Bruno Haible <bruno@clisp.org>
parents: 15887
diff changeset
169 HAVE_ATAN2F=1; AC_SUBST([HAVE_ATAN2F])
16533
d91850ca525f cbrt: Provide replacement on MSVC and Minix.
Bruno Haible <bruno@clisp.org>
parents: 16532
diff changeset
170 HAVE_CBRT=1; AC_SUBST([HAVE_CBRT])
16534
f2d8c70a9f81 New module 'cbrtf'.
Bruno Haible <bruno@clisp.org>
parents: 16533
diff changeset
171 HAVE_CBRTF=1; AC_SUBST([HAVE_CBRTF])
16536
b4afb7c149dc New module 'cbrtl'.
Bruno Haible <bruno@clisp.org>
parents: 16534
diff changeset
172 HAVE_CBRTL=1; AC_SUBST([HAVE_CBRTL])
15908
2f40da163bc2 copysign: Provide replacement.
Bruno Haible <bruno@clisp.org>
parents: 15901
diff changeset
173 HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN])
15913
adefeca52f7d New module 'copysignl'.
Bruno Haible <bruno@clisp.org>
parents: 15911
diff changeset
174 HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL])
15875
7eede30e6658 New module 'cosf'.
Bruno Haible <bruno@clisp.org>
parents: 15872
diff changeset
175 HAVE_COSF=1; AC_SUBST([HAVE_COSF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
176 HAVE_COSL=1; AC_SUBST([HAVE_COSL])
15896
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents: 15893
diff changeset
177 HAVE_COSHF=1; AC_SUBST([HAVE_COSHF])
15860
e6ff40a73d85 New module 'expf'.
Bruno Haible <bruno@clisp.org>
parents: 15857
diff changeset
178 HAVE_EXPF=1; AC_SUBST([HAVE_EXPF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
179 HAVE_EXPL=1; AC_SUBST([HAVE_EXPL])
16581
8e7ddab445f4 New module 'expm1'.
Bruno Haible <bruno@clisp.org>
parents: 16545
diff changeset
180 HAVE_EXPM1=1; AC_SUBST([HAVE_EXPM1])
16583
258b00af8457 New module 'expm1f'.
Bruno Haible <bruno@clisp.org>
parents: 16581
diff changeset
181 HAVE_EXPM1F=1; AC_SUBST([HAVE_EXPM1F])
15828
36ce57192e3b New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
182 HAVE_FABSF=1; AC_SUBST([HAVE_FABSF])
16405
e393287b3d95 New module 'fabsl'.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
183 HAVE_FABSL=1; AC_SUBST([HAVE_FABSL])
16038
8f14d00d6f24 New module 'fma'.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
184 HAVE_FMA=1; AC_SUBST([HAVE_FMA])
16040
b8acd8099b25 New module 'fmaf'.
Bruno Haible <bruno@clisp.org>
parents: 16038
diff changeset
185 HAVE_FMAF=1; AC_SUBST([HAVE_FMAF])
16042
40ce19578aff New module 'fmal'.
Bruno Haible <bruno@clisp.org>
parents: 16040
diff changeset
186 HAVE_FMAL=1; AC_SUBST([HAVE_FMAL])
15832
022f031c4bdf New module 'fmodf'.
Bruno Haible <bruno@clisp.org>
parents: 15830
diff changeset
187 HAVE_FMODF=1; AC_SUBST([HAVE_FMODF])
16410
7a80e494e5e8 New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents: 16408
diff changeset
188 HAVE_FMODL=1; AC_SUBST([HAVE_FMODL])
15841
d26d12e238e1 New module 'frexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15838
diff changeset
189 HAVE_FREXPF=1; AC_SUBST([HAVE_FREXPF])
16514
befd75611259 New module 'hypotf'.
Bruno Haible <bruno@clisp.org>
parents: 16499
diff changeset
190 HAVE_HYPOTF=1; AC_SUBST([HAVE_HYPOTF])
16519
52c75970f518 New module 'hypotl'.
Bruno Haible <bruno@clisp.org>
parents: 16514
diff changeset
191 HAVE_HYPOTL=1; AC_SUBST([HAVE_HYPOTL])
16764
d48f227b07b4 New module 'ilogb'.
Bruno Haible <bruno@clisp.org>
parents: 16755
diff changeset
192 HAVE_ILOGB=1; AC_SUBST([HAVE_ILOGB])
16766
4f4f1518fbab New module 'ilogbf'.
Bruno Haible <bruno@clisp.org>
parents: 16764
diff changeset
193 HAVE_ILOGBF=1; AC_SUBST([HAVE_ILOGBF])
16768
cd4aba7fcd3e New module 'ilogbl'.
Bruno Haible <bruno@clisp.org>
parents: 16766
diff changeset
194 HAVE_ILOGBL=1; AC_SUBST([HAVE_ILOGBL])
10667
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10287
diff changeset
195 HAVE_ISNANF=1; AC_SUBST([HAVE_ISNANF])
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10287
diff changeset
196 HAVE_ISNAND=1; AC_SUBST([HAVE_ISNAND])
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10287
diff changeset
197 HAVE_ISNANL=1; AC_SUBST([HAVE_ISNANL])
15847
cd98f212217e New module 'ldexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15845
diff changeset
198 HAVE_LDEXPF=1; AC_SUBST([HAVE_LDEXPF])
15863
c2fa2febdb1f New module 'logf'.
Bruno Haible <bruno@clisp.org>
parents: 15860
diff changeset
199 HAVE_LOGF=1; AC_SUBST([HAVE_LOGF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
200 HAVE_LOGL=1; AC_SUBST([HAVE_LOGL])
15866
215da3b412e0 New module 'log10f'.
Bruno Haible <bruno@clisp.org>
parents: 15863
diff changeset
201 HAVE_LOG10F=1; AC_SUBST([HAVE_LOG10F])
16419
271a263949d9 New module 'log10l'.
Bruno Haible <bruno@clisp.org>
parents: 16415
diff changeset
202 HAVE_LOG10L=1; AC_SUBST([HAVE_LOG10L])
16655
e1c84de792a7 log1p: Provide replacement for Minix and MSVC.
Bruno Haible <bruno@clisp.org>
parents: 16633
diff changeset
203 HAVE_LOG1P=1; AC_SUBST([HAVE_LOG1P])
16657
86d5719ce2ff New module 'log1pf'.
Bruno Haible <bruno@clisp.org>
parents: 16655
diff changeset
204 HAVE_LOG1PF=1; AC_SUBST([HAVE_LOG1PF])
16659
28ba2c8d945e New module 'log1pl'.
Bruno Haible <bruno@clisp.org>
parents: 16657
diff changeset
205 HAVE_LOG1PL=1; AC_SUBST([HAVE_LOG1PL])
16753
0f9a8ebc12c1 New module 'logbf'.
Bruno Haible <bruno@clisp.org>
parents: 16751
diff changeset
206 HAVE_LOGBF=1; AC_SUBST([HAVE_LOGBF])
16755
5320f2305736 New module 'logbl'.
Bruno Haible <bruno@clisp.org>
parents: 16753
diff changeset
207 HAVE_LOGBL=1; AC_SUBST([HAVE_LOGBL])
15838
0e07b354626a New module 'modff'.
Bruno Haible <bruno@clisp.org>
parents: 15832
diff changeset
208 HAVE_MODFF=1; AC_SUBST([HAVE_MODFF])
16408
b895d48831cd New module 'modfl'.
Bruno Haible <bruno@clisp.org>
parents: 16405
diff changeset
209 HAVE_MODFL=1; AC_SUBST([HAVE_MODFL])
15869
7fb8367bf966 New module 'powf'.
Bruno Haible <bruno@clisp.org>
parents: 15866
diff changeset
210 HAVE_POWF=1; AC_SUBST([HAVE_POWF])
16412
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 16410
diff changeset
211 HAVE_REMAINDER=1; AC_SUBST([HAVE_REMAINDER])
16413
3a9564d7a3a5 New module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
212 HAVE_REMAINDERF=1; AC_SUBST([HAVE_REMAINDERF])
15917
2a90104cab5b rint: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 15913
diff changeset
213 HAVE_RINT=1; AC_SUBST([HAVE_RINT])
15920
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents: 15918
diff changeset
214 HAVE_RINTL=1; AC_SUBST([HAVE_RINTL])
15872
83e1d08997e4 New module 'sinf'.
Bruno Haible <bruno@clisp.org>
parents: 15869
diff changeset
215 HAVE_SINF=1; AC_SUBST([HAVE_SINF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
216 HAVE_SINL=1; AC_SUBST([HAVE_SINL])
15893
792aac7b45c4 New module 'sinhf'.
Bruno Haible <bruno@clisp.org>
parents: 15890
diff changeset
217 HAVE_SINHF=1; AC_SUBST([HAVE_SINHF])
15857
6b8400199763 New module 'sqrtf'.
Bruno Haible <bruno@clisp.org>
parents: 15847
diff changeset
218 HAVE_SQRTF=1; AC_SUBST([HAVE_SQRTF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
219 HAVE_SQRTL=1; AC_SUBST([HAVE_SQRTL])
15878
c0c190f3cccb New module 'tanf'.
Bruno Haible <bruno@clisp.org>
parents: 15875
diff changeset
220 HAVE_TANF=1; AC_SUBST([HAVE_TANF])
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
221 HAVE_TANL=1; AC_SUBST([HAVE_TANL])
15899
31b76bf2f9e4 New module 'tanhf'.
Bruno Haible <bruno@clisp.org>
parents: 15896
diff changeset
222 HAVE_TANHF=1; AC_SUBST([HAVE_TANHF])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
223 HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
224 HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
225 HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL])
16534
f2d8c70a9f81 New module 'cbrtf'.
Bruno Haible <bruno@clisp.org>
parents: 16533
diff changeset
226 HAVE_DECL_CBRTF=1; AC_SUBST([HAVE_DECL_CBRTF])
16536
b4afb7c149dc New module 'cbrtl'.
Bruno Haible <bruno@clisp.org>
parents: 16534
diff changeset
227 HAVE_DECL_CBRTL=1; AC_SUBST([HAVE_DECL_CBRTL])
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
228 HAVE_DECL_CEILF=1; AC_SUBST([HAVE_DECL_CEILF])
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
229 HAVE_DECL_CEILL=1; AC_SUBST([HAVE_DECL_CEILL])
16599
281cc716033c copysignf: Don't override undeclared system function on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16588
diff changeset
230 HAVE_DECL_COPYSIGNF=1; AC_SUBST([HAVE_DECL_COPYSIGNF])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
231 HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
232 HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL])
16616
2f2ef742aa4b New module 'exp2'.
Bruno Haible <bruno@clisp.org>
parents: 16606
diff changeset
233 HAVE_DECL_EXP2=1; AC_SUBST([HAVE_DECL_EXP2])
16618
ca62953d33cd New module 'exp2f'.
Bruno Haible <bruno@clisp.org>
parents: 16616
diff changeset
234 HAVE_DECL_EXP2F=1; AC_SUBST([HAVE_DECL_EXP2F])
16620
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents: 16618
diff changeset
235 HAVE_DECL_EXP2L=1; AC_SUBST([HAVE_DECL_EXP2L])
16606
c65f617394a7 expm1l: Don't override undeclared system function on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16605
diff changeset
236 HAVE_DECL_EXPM1L=1; AC_SUBST([HAVE_DECL_EXPM1L])
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
237 HAVE_DECL_FLOORF=1; AC_SUBST([HAVE_DECL_FLOORF])
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
238 HAVE_DECL_FLOORL=1; AC_SUBST([HAVE_DECL_FLOORL])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
239 HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
240 HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
241 HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL])
16419
271a263949d9 New module 'log10l'.
Bruno Haible <bruno@clisp.org>
parents: 16415
diff changeset
242 HAVE_DECL_LOG10L=1; AC_SUBST([HAVE_DECL_LOG10L])
16676
e9598f93f892 New module 'log2'.
Bruno Haible <bruno@clisp.org>
parents: 16670
diff changeset
243 HAVE_DECL_LOG2=1; AC_SUBST([HAVE_DECL_LOG2])
16678
2f6973f75a06 New module 'log2f'.
Bruno Haible <bruno@clisp.org>
parents: 16676
diff changeset
244 HAVE_DECL_LOG2F=1; AC_SUBST([HAVE_DECL_LOG2F])
16680
fcdfd8bdad38 New module 'log2l'.
Bruno Haible <bruno@clisp.org>
parents: 16678
diff changeset
245 HAVE_DECL_LOG2L=1; AC_SUBST([HAVE_DECL_LOG2L])
16751
9d599e388a0f logb: Provide replacement and workarounds.
Bruno Haible <bruno@clisp.org>
parents: 16738
diff changeset
246 HAVE_DECL_LOGB=1; AC_SUBST([HAVE_DECL_LOGB])
16412
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 16410
diff changeset
247 HAVE_DECL_REMAINDER=1; AC_SUBST([HAVE_DECL_REMAINDER])
16605
65abd231dc80 remainderl: Don't override undeclared system function on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16604
diff changeset
248 HAVE_DECL_REMAINDERL=1; AC_SUBST([HAVE_DECL_REMAINDERL])
16604
9ac8499fa137 rintf: Don't override undeclared system function on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16599
diff changeset
249 HAVE_DECL_RINTF=1; AC_SUBST([HAVE_DECL_RINTF])
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
250 HAVE_DECL_ROUND=1; AC_SUBST([HAVE_DECL_ROUND])
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
251 HAVE_DECL_ROUNDF=1; AC_SUBST([HAVE_DECL_ROUNDF])
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
252 HAVE_DECL_ROUNDL=1; AC_SUBST([HAVE_DECL_ROUNDL])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
253 HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
254 HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
255 HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
256 HAVE_DECL_TRUNC=1; AC_SUBST([HAVE_DECL_TRUNC])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
257 HAVE_DECL_TRUNCF=1; AC_SUBST([HAVE_DECL_TRUNCF])
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
258 HAVE_DECL_TRUNCL=1; AC_SUBST([HAVE_DECL_TRUNCL])
16538
06da3fa23cf9 cbrtf: Work around bug in IRIX 6.5 system function.
Bruno Haible <bruno@clisp.org>
parents: 16536
diff changeset
259 REPLACE_CBRTF=0; AC_SUBST([REPLACE_CBRTF])
16545
c71947bf23ab cbrtl-ieee: Work around test failure on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16538
diff changeset
260 REPLACE_CBRTL=0; AC_SUBST([REPLACE_CBRTL])
13982
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
261 REPLACE_CEIL=0; AC_SUBST([REPLACE_CEIL])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
262 REPLACE_CEILF=0; AC_SUBST([REPLACE_CEILF])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
263 REPLACE_CEILL=0; AC_SUBST([REPLACE_CEILL])
16588
6312b64c2c23 New module 'expm1-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 16587
diff changeset
264 REPLACE_EXPM1=0; AC_SUBST([REPLACE_EXPM1])
16587
d71dacc1f7e0 Work around expm1f bug on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16585
diff changeset
265 REPLACE_EXPM1F=0; AC_SUBST([REPLACE_EXPM1F])
16616
2f2ef742aa4b New module 'exp2'.
Bruno Haible <bruno@clisp.org>
parents: 16606
diff changeset
266 REPLACE_EXP2=0; AC_SUBST([REPLACE_EXP2])
16628
d19d163c1519 exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16620
diff changeset
267 REPLACE_EXP2L=0; AC_SUBST([REPLACE_EXP2L])
16405
e393287b3d95 New module 'fabsl'.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
268 REPLACE_FABSL=0; AC_SUBST([REPLACE_FABSL])
13981
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13979
diff changeset
269 REPLACE_FLOOR=0; AC_SUBST([REPLACE_FLOOR])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
270 REPLACE_FLOORF=0; AC_SUBST([REPLACE_FLOORF])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
271 REPLACE_FLOORL=0; AC_SUBST([REPLACE_FLOORL])
16038
8f14d00d6f24 New module 'fma'.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
272 REPLACE_FMA=0; AC_SUBST([REPLACE_FMA])
16040
b8acd8099b25 New module 'fmaf'.
Bruno Haible <bruno@clisp.org>
parents: 16038
diff changeset
273 REPLACE_FMAF=0; AC_SUBST([REPLACE_FMAF])
16042
40ce19578aff New module 'fmal'.
Bruno Haible <bruno@clisp.org>
parents: 16040
diff changeset
274 REPLACE_FMAL=0; AC_SUBST([REPLACE_FMAL])
16486
8b3ead70232c fmod-ieee: Work around test failures on OSF/1, mingw.
Bruno Haible <bruno@clisp.org>
parents: 16471
diff changeset
275 REPLACE_FMOD=0; AC_SUBST([REPLACE_FMOD])
16488
8bed60fd8e6c fmodf-ieee: Work around test failure on OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 16486
diff changeset
276 REPLACE_FMODF=0; AC_SUBST([REPLACE_FMODF])
16410
7a80e494e5e8 New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents: 16408
diff changeset
277 REPLACE_FMODL=0; AC_SUBST([REPLACE_FMODL])
15845
622d3734ca5a frexpf: Work around problems on IRIX and mingw.
Bruno Haible <bruno@clisp.org>
parents: 15841
diff changeset
278 REPLACE_FREXPF=0; AC_SUBST([REPLACE_FREXPF])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
279 REPLACE_FREXP=0; AC_SUBST([REPLACE_FREXP])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
280 REPLACE_FREXPL=0; AC_SUBST([REPLACE_FREXPL])
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
281 REPLACE_HUGE_VAL=0; AC_SUBST([REPLACE_HUGE_VAL])
16530
3cae6aa4577f hypot-ieee: Work around test failure on OSF/1 and native Windows.
Bruno Haible <bruno@clisp.org>
parents: 16519
diff changeset
282 REPLACE_HYPOT=0; AC_SUBST([REPLACE_HYPOT])
16514
befd75611259 New module 'hypotf'.
Bruno Haible <bruno@clisp.org>
parents: 16499
diff changeset
283 REPLACE_HYPOTF=0; AC_SUBST([REPLACE_HYPOTF])
16532
1fcd2cd248a9 hypotl-ieee: Work around test failure on OSF/1 and native Windows.
Bruno Haible <bruno@clisp.org>
parents: 16530
diff changeset
284 REPLACE_HYPOTL=0; AC_SUBST([REPLACE_HYPOTL])
16764
d48f227b07b4 New module 'ilogb'.
Bruno Haible <bruno@clisp.org>
parents: 16755
diff changeset
285 REPLACE_ILOGB=0; AC_SUBST([REPLACE_ILOGB])
16766
4f4f1518fbab New module 'ilogbf'.
Bruno Haible <bruno@clisp.org>
parents: 16764
diff changeset
286 REPLACE_ILOGBF=0; AC_SUBST([REPLACE_ILOGBF])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
287 REPLACE_ISFINITE=0; AC_SUBST([REPLACE_ISFINITE])
10287
7a5cfea8469f Add isinf module.
Ben Pfaff <blp@cs.stanford.edu>
parents: 10267
diff changeset
288 REPLACE_ISINF=0; AC_SUBST([REPLACE_ISINF])
10267
bf763f10f63c Add isnan module.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9921
diff changeset
289 REPLACE_ISNAN=0; AC_SUBST([REPLACE_ISNAN])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
290 REPLACE_LDEXPL=0; AC_SUBST([REPLACE_LDEXPL])
16631
45443deebb7d log: Work around OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16628
diff changeset
291 REPLACE_LOG=0; AC_SUBST([REPLACE_LOG])
16632
2450f24b2cbc logf: Work around OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16631
diff changeset
292 REPLACE_LOGF=0; AC_SUBST([REPLACE_LOGF])
16633
833042aa7d55 logl: Work around OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16632
diff changeset
293 REPLACE_LOGL=0; AC_SUBST([REPLACE_LOGL])
16736
747e0285fa98 log10: Work around OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16697
diff changeset
294 REPLACE_LOG10=0; AC_SUBST([REPLACE_LOG10])
16737
6828b991e3b9 log10f: Work around OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16736
diff changeset
295 REPLACE_LOG10F=0; AC_SUBST([REPLACE_LOG10F])
16738
25dda52366fd log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
Bruno Haible <bruno@clisp.org>
parents: 16737
diff changeset
296 REPLACE_LOG10L=0; AC_SUBST([REPLACE_LOG10L])
16667
f691c5744fcb log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
Bruno Haible <bruno@clisp.org>
parents: 16659
diff changeset
297 REPLACE_LOG1P=0; AC_SUBST([REPLACE_LOG1P])
16657
86d5719ce2ff New module 'log1pf'.
Bruno Haible <bruno@clisp.org>
parents: 16655
diff changeset
298 REPLACE_LOG1PF=0; AC_SUBST([REPLACE_LOG1PF])
16670
1fae18345ca0 log1pl-ieee: Work around test failure on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16667
diff changeset
299 REPLACE_LOG1PL=0; AC_SUBST([REPLACE_LOG1PL])
16676
e9598f93f892 New module 'log2'.
Bruno Haible <bruno@clisp.org>
parents: 16670
diff changeset
300 REPLACE_LOG2=0; AC_SUBST([REPLACE_LOG2])
16678
2f6973f75a06 New module 'log2f'.
Bruno Haible <bruno@clisp.org>
parents: 16676
diff changeset
301 REPLACE_LOG2F=0; AC_SUBST([REPLACE_LOG2F])
16680
fcdfd8bdad38 New module 'log2l'.
Bruno Haible <bruno@clisp.org>
parents: 16678
diff changeset
302 REPLACE_LOG2L=0; AC_SUBST([REPLACE_LOG2L])
16751
9d599e388a0f logb: Provide replacement and workarounds.
Bruno Haible <bruno@clisp.org>
parents: 16738
diff changeset
303 REPLACE_LOGB=0; AC_SUBST([REPLACE_LOGB])
16753
0f9a8ebc12c1 New module 'logbf'.
Bruno Haible <bruno@clisp.org>
parents: 16751
diff changeset
304 REPLACE_LOGBF=0; AC_SUBST([REPLACE_LOGBF])
16755
5320f2305736 New module 'logbl'.
Bruno Haible <bruno@clisp.org>
parents: 16753
diff changeset
305 REPLACE_LOGBL=0; AC_SUBST([REPLACE_LOGBL])
16467
c5b61bdb6da4 modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 16419
diff changeset
306 REPLACE_MODF=0; AC_SUBST([REPLACE_MODF])
16468
5ad3cc13d9c3 modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
Bruno Haible <bruno@clisp.org>
parents: 16467
diff changeset
307 REPLACE_MODFF=0; AC_SUBST([REPLACE_MODFF])
16471
1f4605f1f3ae modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
Bruno Haible <bruno@clisp.org>
parents: 16468
diff changeset
308 REPLACE_MODFL=0; AC_SUBST([REPLACE_MODFL])
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
309 REPLACE_NAN=0; AC_SUBST([REPLACE_NAN])
16497
3843e07f6df5 remainder-ieee: Work around test failure on OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 16488
diff changeset
310 REPLACE_REMAINDER=0; AC_SUBST([REPLACE_REMAINDER])
16498
e04c5a489c44 remainderf-ieee: Work around test failure on OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 16497
diff changeset
311 REPLACE_REMAINDERF=0; AC_SUBST([REPLACE_REMAINDERF])
16499
65ee7db4e4a7 remainderl-ieee: Work around test failure on OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 16498
diff changeset
312 REPLACE_REMAINDERL=0; AC_SUBST([REPLACE_REMAINDERL])
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
313 REPLACE_ROUND=0; AC_SUBST([REPLACE_ROUND])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
314 REPLACE_ROUNDF=0; AC_SUBST([REPLACE_ROUNDF])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
315 REPLACE_ROUNDL=0; AC_SUBST([REPLACE_ROUNDL])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
316 REPLACE_SIGNBIT=0; AC_SUBST([REPLACE_SIGNBIT])
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
317 REPLACE_SIGNBIT_USING_GCC=0; AC_SUBST([REPLACE_SIGNBIT_USING_GCC])
16697
6b65a767165c sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
Bruno Haible <bruno@clisp.org>
parents: 16680
diff changeset
318 REPLACE_SQRTL=0; AC_SUBST([REPLACE_SQRTL])
13983
ace70389132d New module 'trunc-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13982
diff changeset
319 REPLACE_TRUNC=0; AC_SUBST([REPLACE_TRUNC])
13979
84d7ae75b38f New module 'truncf-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13142
diff changeset
320 REPLACE_TRUNCF=0; AC_SUBST([REPLACE_TRUNCF])
9913
d3f5a70dc1ba Make truncl work on OSF/1 4.0.
Bruno Haible <bruno@clisp.org>
parents: 9900
diff changeset
321 REPLACE_TRUNCL=0; AC_SUBST([REPLACE_TRUNCL])
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
322 ])
15901
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
323
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
324 # gl_LONG_DOUBLE_VS_DOUBLE
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
325 # determines whether 'long double' and 'double' have the same representation.
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
326 # Sets variable HAVE_SAME_LONG_DOUBLE_AS_DOUBLE to 0 or 1, and defines
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
327 # HAVE_SAME_LONG_DOUBLE_AS_DOUBLE accordingly.
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
328 # The currently known platforms where this is the case are:
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
329 # Linux/HPPA, Minix 3.1.8, AIX 5, AIX 6 and 7 with xlc, MSVC 9.
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
330 AC_DEFUN([gl_LONG_DOUBLE_VS_DOUBLE],
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
331 [
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
332 AC_CACHE_CHECK([whether long double and double are the same],
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
333 [gl_cv_long_double_equals_double],
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
334 [AC_COMPILE_IFELSE(
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
335 [AC_LANG_PROGRAM([[#include <float.h>]],
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
336 [[typedef int check[sizeof (long double) == sizeof (double)
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
337 && LDBL_MANT_DIG == DBL_MANT_DIG
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
338 && LDBL_MAX_EXP == DBL_MAX_EXP
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
339 && LDBL_MIN_EXP == DBL_MIN_EXP
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
340 ? 1 : -1];
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
341 ]])],
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
342 [gl_cv_long_double_equals_double=yes],
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
343 [gl_cv_long_double_equals_double=no])
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
344 ])
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
345 if test $gl_cv_long_double_equals_double = yes; then
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
346 AC_DEFINE([HAVE_SAME_LONG_DOUBLE_AS_DOUBLE], [1],
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
347 [Define to 1 if 'long double' and 'double' have the same representation.])
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
348 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
349 else
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
350 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
351 fi
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
352 AC_SUBST([HAVE_SAME_LONG_DOUBLE_AS_DOUBLE])
5711969eba55 isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
353 ])