X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstrtod.m4;h=06ba60f9069d8ebd913efac8bf0280ed0cf4cabf;hb=43593319b31e6b0175b8eec4433bac744959822d;hp=f40e342f4331cbac352c8cdc6aa67844dea3f6da;hpb=b9453f8ce1c5d8bfeb7c110e4c73ba35ac711023;p=gnulib.git diff --git a/m4/strtod.m4 b/m4/strtod.m4 index f40e342f4..06ba60f90 100644 --- a/m4/strtod.m4 +++ b/m4/strtod.m4 @@ -1,5 +1,5 @@ -# strtod.m4 serial 20 -dnl Copyright (C) 2002-2003, 2006-2011 Free Software Foundation, Inc. +# strtod.m4 serial 22 +dnl Copyright (C) 2002-2003, 2006-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -101,7 +101,7 @@ numeric_equal (double x, double y) [gl_cv_func_strtod_works=yes], [gl_cv_func_strtod_works=no], [dnl The last known bugs in glibc strtod(), as of this writing, - dnl were fixed in version 2.8 + dnl were fixed in version 2.8 AC_EGREP_CPP([Lucky user], [ #include @@ -112,15 +112,14 @@ numeric_equal (double x, double y) #endif #endif ], - [gl_cv_func_strtod_works=yes], + [gl_cv_func_strtod_works="guessing yes"], [gl_cv_func_strtod_works="guessing no"])])]) - if test "$gl_cv_func_strtod_works" != yes; then - REPLACE_STRTOD=1 - fi - fi - if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then - AC_LIBOBJ([strtod]) - gl_PREREQ_STRTOD + case "$gl_cv_func_strtod_works" in + *yes) ;; + *) + REPLACE_STRTOD=1 + ;; + esac fi ])