diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-08-23 17:13:04 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-08-23 17:13:04 +0200 |
commit | bbdcf5a704517d35a76ba8b666075da9ffe39ac4 (patch) | |
tree | a36bec4f7c2802dfe5efc5cb2dfc902fec2a23b8 /gl/m4/float_h.m4 | |
parent | fa1ac7ecb247faf58fe65740c0d40e0585f684c9 (diff) | |
download | monitoring-plugins-bbdcf5a.tar.gz |
Sync with the latest Gnulib code (fa1ac7ec)
Diffstat (limited to 'gl/m4/float_h.m4')
-rw-r--r-- | gl/m4/float_h.m4 | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/gl/m4/float_h.m4 b/gl/m4/float_h.m4 index ba38a289..0e845726 100644 --- a/gl/m4/float_h.m4 +++ b/gl/m4/float_h.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # float_h.m4 serial 12 | 1 | # float_h.m4 serial 13 |
2 | dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -8,18 +8,18 @@ AC_DEFUN([gl_FLOAT_H], | |||
8 | [ | 8 | [ |
9 | AC_REQUIRE([AC_PROG_CC]) | 9 | AC_REQUIRE([AC_PROG_CC]) |
10 | AC_REQUIRE([AC_CANONICAL_HOST]) | 10 | AC_REQUIRE([AC_CANONICAL_HOST]) |
11 | FLOAT_H= | 11 | GL_GENERATE_FLOAT_H=false |
12 | REPLACE_FLOAT_LDBL=0 | 12 | REPLACE_FLOAT_LDBL=0 |
13 | case "$host_os" in | 13 | case "$host_os" in |
14 | aix* | beos* | openbsd* | mirbsd* | irix*) | 14 | aix* | beos* | openbsd* | mirbsd* | irix*) |
15 | FLOAT_H=float.h | 15 | GL_GENERATE_FLOAT_H=true |
16 | ;; | 16 | ;; |
17 | freebsd* | dragonfly*) | 17 | freebsd* | dragonfly*) |
18 | case "$host_cpu" in | 18 | case "$host_cpu" in |
19 | changequote(,)dnl | 19 | changequote(,)dnl |
20 | i[34567]86 ) | 20 | i[34567]86 ) |
21 | changequote([,])dnl | 21 | changequote([,])dnl |
22 | FLOAT_H=float.h | 22 | GL_GENERATE_FLOAT_H=true |
23 | ;; | 23 | ;; |
24 | x86_64 ) | 24 | x86_64 ) |
25 | # On x86_64 systems, the C compiler may still be generating | 25 | # On x86_64 systems, the C compiler may still be generating |
@@ -33,21 +33,21 @@ changequote([,])dnl | |||
33 | #endif | 33 | #endif |
34 | ]])], | 34 | ]])], |
35 | [], | 35 | [], |
36 | [FLOAT_H=float.h]) | 36 | [GL_GENERATE_FLOAT_H=true]) |
37 | ;; | 37 | ;; |
38 | esac | 38 | esac |
39 | ;; | 39 | ;; |
40 | linux*) | 40 | linux*) |
41 | case "$host_cpu" in | 41 | case "$host_cpu" in |
42 | powerpc*) | 42 | powerpc*) |
43 | FLOAT_H=float.h | 43 | GL_GENERATE_FLOAT_H=true |
44 | ;; | 44 | ;; |
45 | esac | 45 | esac |
46 | ;; | 46 | ;; |
47 | esac | 47 | esac |
48 | case "$host_os" in | 48 | case "$host_os" in |
49 | aix* | freebsd* | dragonfly* | linux*) | 49 | aix* | freebsd* | dragonfly* | linux*) |
50 | if test -n "$FLOAT_H"; then | 50 | if $GL_GENERATE_FLOAT_H; then |
51 | REPLACE_FLOAT_LDBL=1 | 51 | REPLACE_FLOAT_LDBL=1 |
52 | fi | 52 | fi |
53 | ;; | 53 | ;; |
@@ -95,14 +95,12 @@ int main () | |||
95 | REPLACE_ITOLD=1 | 95 | REPLACE_ITOLD=1 |
96 | dnl We add the workaround to <float.h> but also to <math.h>, | 96 | dnl We add the workaround to <float.h> but also to <math.h>, |
97 | dnl to increase the chances that the fix function gets pulled in. | 97 | dnl to increase the chances that the fix function gets pulled in. |
98 | FLOAT_H=float.h | 98 | GL_GENERATE_FLOAT_H=true |
99 | ;; | 99 | ;; |
100 | esac | 100 | esac |
101 | 101 | ||
102 | if test -n "$FLOAT_H"; then | 102 | if $GL_GENERATE_FLOAT_H; then |
103 | gl_NEXT_HEADERS([float.h]) | 103 | gl_NEXT_HEADERS([float.h]) |
104 | fi | 104 | fi |
105 | AC_SUBST([FLOAT_H]) | ||
106 | AM_CONDITIONAL([GL_GENERATE_FLOAT_H], [test -n "$FLOAT_H"]) | ||
107 | AC_SUBST([REPLACE_ITOLD]) | 105 | AC_SUBST([REPLACE_ITOLD]) |
108 | ]) | 106 | ]) |