Say "guessing yes" or "guessing no" when cross-compiling.
[gnulib.git] / m4 / strtod.m4
index 598ebf6..ac37284 100644 (file)
@@ -1,4 +1,4 @@
-# strtod.m4 serial 21
+# strtod.m4 serial 22
 dnl Copyright (C) 2002-2003, 2006-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -112,11 +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
+    case "$gl_cv_func_strtod_works" in
+      *yes) ;;
+      *)
+        REPLACE_STRTOD=1
+        ;;
+    esac
   fi
 ])