summaryrefslogtreecommitdiffstats
path: root/gl/m4/math_h.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/math_h.m4')
-rw-r--r--gl/m4/math_h.m466
1 files changed, 66 insertions, 0 deletions
diff --git a/gl/m4/math_h.m4 b/gl/m4/math_h.m4
new file mode 100644
index 0000000..dd99e7f
--- /dev/null
+++ b/gl/m4/math_h.m4
@@ -0,0 +1,66 @@
1# math_h.m4 serial 9
2dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_MATH_H],
8[
9 AC_REQUIRE([gl_MATH_H_DEFAULTS])
10 gl_CHECK_NEXT_HEADERS([math.h])
11])
12
13AC_DEFUN([gl_MATH_MODULE_INDICATOR],
14[
15 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
16 AC_REQUIRE([gl_MATH_H_DEFAULTS])
17 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
18])
19
20AC_DEFUN([gl_MATH_H_DEFAULTS],
21[
22 GNULIB_CEILF=0; AC_SUBST([GNULIB_CEILF])
23 GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL])
24 GNULIB_FLOORF=0; AC_SUBST([GNULIB_FLOORF])
25 GNULIB_FLOORL=0; AC_SUBST([GNULIB_FLOORL])
26 GNULIB_FREXP=0; AC_SUBST([GNULIB_FREXP])
27 GNULIB_FREXPL=0; AC_SUBST([GNULIB_FREXPL])
28 GNULIB_ISFINITE=0; AC_SUBST([GNULIB_ISFINITE])
29 GNULIB_LDEXPL=0; AC_SUBST([GNULIB_LDEXPL])
30 GNULIB_MATHL=0; AC_SUBST([GNULIB_MATHL])
31 GNULIB_ROUND=0; AC_SUBST([GNULIB_ROUND])
32 GNULIB_ROUNDF=0; AC_SUBST([GNULIB_ROUNDF])
33 GNULIB_ROUNDL=0; AC_SUBST([GNULIB_ROUNDL])
34 GNULIB_SIGNBIT=0; AC_SUBST([GNULIB_SIGNBIT])
35 GNULIB_TRUNC=0; AC_SUBST([GNULIB_TRUNC])
36 GNULIB_TRUNCF=0; AC_SUBST([GNULIB_TRUNCF])
37 GNULIB_TRUNCL=0; AC_SUBST([GNULIB_TRUNCL])
38 dnl Assume proper GNU behavior unless another module says otherwise.
39 HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL])
40 HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL])
41 HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL])
42 HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL])
43 HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL])
44 HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL])
45 HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL])
46 HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL])
47 HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL])
48 HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL])
49 HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL])
50 HAVE_DECL_TRUNC=1; AC_SUBST([HAVE_DECL_TRUNC])
51 HAVE_DECL_TRUNCF=1; AC_SUBST([HAVE_DECL_TRUNCF])
52 HAVE_DECL_TRUNCL=1; AC_SUBST([HAVE_DECL_TRUNCL])
53 REPLACE_CEILF=0; AC_SUBST([REPLACE_CEILF])
54 REPLACE_CEILL=0; AC_SUBST([REPLACE_CEILL])
55 REPLACE_FLOORF=0; AC_SUBST([REPLACE_FLOORF])
56 REPLACE_FLOORL=0; AC_SUBST([REPLACE_FLOORL])
57 REPLACE_FREXP=0; AC_SUBST([REPLACE_FREXP])
58 REPLACE_FREXPL=0; AC_SUBST([REPLACE_FREXPL])
59 REPLACE_ISFINITE=0; AC_SUBST([REPLACE_ISFINITE])
60 REPLACE_LDEXPL=0; AC_SUBST([REPLACE_LDEXPL])
61 REPLACE_ROUND=0; AC_SUBST([REPLACE_ROUND])
62 REPLACE_ROUNDF=0; AC_SUBST([REPLACE_ROUNDF])
63 REPLACE_ROUNDL=0; AC_SUBST([REPLACE_ROUNDL])
64 REPLACE_SIGNBIT=0; AC_SUBST([REPLACE_SIGNBIT])
65 REPLACE_SIGNBIT_USING_GCC=0; AC_SUBST([REPLACE_SIGNBIT_USING_GCC])
66])