diff options
author | Ben Pfaff <blp@cs.stanford.edu> | 2010-06-14 17:15:41 -0700 |
---|---|---|
committer | Ben Pfaff <blp@cs.stanford.edu> | 2010-06-15 09:14:16 -0700 |
commit | fcdbbe0069c767a03f42f7615175ac03494de93a (patch) | |
tree | 8a152acbde3df40df60cf58fc62c63665ea0fa30 /m4/strtod.m4 | |
parent | 161d300c640daa32135028b35d3180d5e9327a3b (diff) | |
download | gnulib-fcdbbe0069c767a03f42f7615175ac03494de93a.tar.gz |
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Diffstat (limited to 'm4/strtod.m4')
-rw-r--r-- | m4/strtod.m4 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/m4/strtod.m4 b/m4/strtod.m4 index 36b5d2dd8a..aa6a1c53d5 100644 --- a/m4/strtod.m4 +++ b/m4/strtod.m4 @@ -95,7 +95,19 @@ numeric_equal (double x, double y) ]])], [gl_cv_func_strtod_works=yes], [gl_cv_func_strtod_works=no], - [gl_cv_func_strtod_works="guessing no"])]) + [dnl The last known bugs in glibc strtod(), as of this writing, + dnl were fixed in version 2.8 + AC_EGREP_CPP([Lucky user], + [ +#include <features.h> +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) || (__GLIBC__ > 2) + Lucky user + #endif +#endif + ], + [gl_cv_func_strtod_works=yes], + [gl_cv_func_strtod_works="guessing no"])])]) if test "$gl_cv_func_strtod_works" != yes; then REPLACE_STRTOD=1 fi |