Add comment.
[gnulib.git] / m4 / floor.m4
index 780a88f..b002f58 100644 (file)
@@ -1,5 +1,5 @@
-# floor.m4 serial 2
-dnl Copyright (C) 2007 Free Software Foundation, Inc.
+# floor.m4 serial 3
+dnl Copyright (C) 2007, 2009 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.
@@ -18,8 +18,8 @@ AC_DEFUN([gl_FUNC_FLOOR],
 # Sets FLOOR_LIBM.
 AC_DEFUN([gl_FUNC_FLOOR_LIBS],
 [
-  AC_CACHE_VAL([gl_func_floor_libm], [
-    gl_func_floor_libm=?
+  gl_CACHE_VAL_SILENT([gl_cv_func_floor_libm], [
+    gl_cv_func_floor_libm=?
     AC_TRY_LINK([
        #ifndef __NO_MATH_INLINES
        # define __NO_MATH_INLINES 1 /* for glibc */
@@ -27,8 +27,8 @@ AC_DEFUN([gl_FUNC_FLOOR_LIBS],
        #include <math.h>
        double x;],
       [x = floor(x);],
-      [gl_func_floor_libm=])
-    if test "$gl_func_floor_libm" = "?"; then
+      [gl_cv_func_floor_libm=])
+    if test "$gl_cv_func_floor_libm" = "?"; then
       save_LIBS="$LIBS"
       LIBS="$LIBS -lm"
       AC_TRY_LINK([
@@ -38,9 +38,9 @@ AC_DEFUN([gl_FUNC_FLOOR_LIBS],
          #include <math.h>
          double x;],
         [x = floor(x);],
-        [gl_func_floor_libm="-lm"])
+        [gl_cv_func_floor_libm="-lm"])
       LIBS="$save_LIBS"
     fi
   ])
-  FLOOR_LIBM="$gl_func_floor_libm"
+  FLOOR_LIBM="$gl_cv_func_floor_libm"
 ])