diff options
author | Ben Pfaff <blp@cs.stanford.edu> | 2010-06-14 16:52:25 -0700 |
---|---|---|
committer | Ben Pfaff <blp@cs.stanford.edu> | 2010-06-15 09:14:16 -0700 |
commit | 161d300c640daa32135028b35d3180d5e9327a3b (patch) | |
tree | 157a13d4cc708c1dc8e35de5225aec23c1cd8e0d /m4 | |
parent | 39bdc0a999a5cab41763729d5add3b610e07dc62 (diff) | |
download | gnulib-161d300c640daa32135028b35d3180d5e9327a3b.tar.gz |
Factor out common code in gl_FUNC_STRTOD.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/strtod.m4 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/m4/strtod.m4 b/m4/strtod.m4 index 00b8e64b41..36b5d2dd8a 100644 --- a/m4/strtod.m4 +++ b/m4/strtod.m4 @@ -15,9 +15,6 @@ AC_DEFUN([gl_FUNC_STRTOD], AC_CHECK_DECLS_ONCE([strtod]) if test $ac_cv_have_decl_strtod != yes; then HAVE_STRTOD=0 - gl_PREREQ_STRTOD - dnl Use undocumented macro to set POW_LIB correctly. - _AC_LIBOBJ_STRTOD else AC_CACHE_CHECK([whether strtod obeys C99], [gl_cv_func_strtod_works], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ @@ -101,11 +98,13 @@ numeric_equal (double x, double y) [gl_cv_func_strtod_works="guessing no"])]) if test "$gl_cv_func_strtod_works" != yes; then REPLACE_STRTOD=1 - gl_PREREQ_STRTOD - dnl Use undocumented macro to set POW_LIB correctly. - _AC_LIBOBJ_STRTOD fi fi + if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then + gl_PREREQ_STRTOD + dnl Use undocumented macro to set POW_LIB correctly. + _AC_LIBOBJ_STRTOD + fi ]) # Prerequisites of lib/strtod.c. |