diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-30 03:56:26 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-30 03:56:26 +0200 |
commit | c65d65a81e9d66960ae7ce5abe5069d5b7338ed2 (patch) | |
tree | 176dc420fadbad661f5bef33603249c0949dd302 /m4/float_h.m4 | |
parent | 78b95d5ee8dc73120b0b69e1968d68c3d644db50 (diff) | |
download | gnulib-c65d65a81e9d66960ae7ce5abe5069d5b7338ed2.tar.gz |
float: Fix LDBL_MAX value on Linux/PowerPC.
* m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
on Linux/PowerPC.
* lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
* lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
* doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
platform.
Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
Diffstat (limited to 'm4/float_h.m4')
-rw-r--r-- | m4/float_h.m4 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/m4/float_h.m4 b/m4/float_h.m4 index 261f1ac3af..da11c0e2d8 100644 --- a/m4/float_h.m4 +++ b/m4/float_h.m4 @@ -1,4 +1,4 @@ -# float_h.m4 serial 7 +# float_h.m4 serial 8 dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -33,9 +33,16 @@ changequote([,])dnl ;; esac ;; + linux*) + case "$host_cpu" in + powerpc*) + FLOAT_H=float.h + ;; + esac + ;; esac case "$host_os" in - aix* | freebsd*) + aix* | freebsd* | linux*) if test -n "$FLOAT_H"; then REPLACE_FLOAT_LDBL=1 fi |