]> Savannah Git Hosting - gnulib.git/commitdiff
Properly quote AC_CHECK_DECL's 4th argument.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Sep 2011 21:41:59 +0000 (23:41 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 14 Sep 2011 21:41:59 +0000 (23:41 +0200)
* m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
argument.
* m4/argp.m4 (gl_ARGP): Likewise.
* m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
* m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
* m4/cosl.m4 (gl_FUNC_COSL): Likewise.
* m4/expl.m4 (gl_FUNC_EXPL): Likewise.
* m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
* m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
* m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
* m4/logl.m4 (gl_FUNC_LOGL): Likewise.
* m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
* m4/sinl.m4 (gl_FUNC_SINL): Likewise.
* m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
* m4/tanl.m4 (gl_FUNC_TANL): Likewise.
Reported by Eric Blake.

15 files changed:
ChangeLog
m4/acosl.m4
m4/argp.m4
m4/asinl.m4
m4/atanl.m4
m4/cosl.m4
m4/expl.m4
m4/frexpl.m4
m4/getloadavg.m4
m4/ldexpl.m4
m4/logl.m4
m4/printf-frexpl.m4
m4/sinl.m4
m4/sqrtl.m4
m4/tanl.m4

index 52fe92dafb2a15b25eb2101938874e4f37649cff..db6e5593e143b67d033686559a919b223d815c62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2011-09-14  Bruno Haible  <bruno@clisp.org>
+
+       Properly quote AC_CHECK_DECL's 4th argument.
+       * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
+       argument.
+       * m4/argp.m4 (gl_ARGP): Likewise.
+       * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
+       * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
+       * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
+       * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
+       * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
+       * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
+       * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
+       * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
+       * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
+       * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
+       * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
+       * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
+       Reported by Eric Blake.
+
 2011-09-14  Eric Blake  <eblake@redhat.com>
 
        opendir: avoid compile warning
index 759be42591f1f8f07be84682b4632d681092a0e1..f25ee2331305f7bb4e7862a52c7f302c5e9d336a 100644 (file)
@@ -1,4 +1,4 @@
-# acosl.m4 serial 4
+# acosl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_ACOSL],
      || test $gl_cv_func_acosl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has acosl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([acosl], , [HAVE_DECL_ACOSL=0], [#include <math.h>])
+    AC_CHECK_DECL([acosl], , [HAVE_DECL_ACOSL=0], [[#include <math.h>]])
   else
     HAVE_DECL_ACOSL=0
     HAVE_ACOSL=0
index 4e3940a65c9050b449a7596cdfeef15e26c170e4..a9963ee6d6dfcdd7542aa29627420cc53ddb8a15 100644 (file)
@@ -1,4 +1,4 @@
-# argp.m4 serial 12
+# argp.m4 serial 13
 dnl Copyright (C) 2003-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -15,13 +15,13 @@ AC_DEFUN([gl_ARGP],
                            [Define if program_invocation_name is declared])],
                 [AC_DEFINE([GNULIB_PROGRAM_INVOCATION_NAME], [1],
                            [Define to 1 to add extern declaration of program_invocation_name to argp.h])],
-                [#include <errno.h>])
+                [[#include <errno.h>]])
   AC_CHECK_DECL([program_invocation_short_name],
                 [AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME], [1],
                            [Define if program_invocation_short_name is declared])],
                 [AC_DEFINE([GNULIB_PROGRAM_INVOCATION_SHORT_NAME], [1],
                            [Define to 1 to add extern declaration of program_invocation_short_name to argp.h])],
-                [#include <errno.h>])
+                [[#include <errno.h>]])
 
   # Check if program_invocation_name and program_invocation_short_name
   # are defined elsewhere. It is improbable that only one of them will
index 882a8d3163c3ac8ccbaf28a4bf86ea850ce66be4..2df2663259e47e0ce71e7b677e3eaf4cf6193a84 100644 (file)
@@ -1,4 +1,4 @@
-# asinl.m4 serial 4
+# asinl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_ASINL],
      || test $gl_cv_func_asinl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has asinl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([asinl], , [HAVE_DECL_ASINL=0], [#include <math.h>])
+    AC_CHECK_DECL([asinl], , [HAVE_DECL_ASINL=0], [[#include <math.h>]])
   else
     HAVE_DECL_ASINL=0
     HAVE_ASINL=0
index 52914f6ec1ae0a9631e1dc26e288f291859caf49..82c9cd409139cb5ba10a1ce9e7dd33a914858189 100644 (file)
@@ -1,4 +1,4 @@
-# atanl.m4 serial 4
+# atanl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_ATANL],
      || test $gl_cv_func_atanl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has atanl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([atanl], , [HAVE_DECL_ATANL=0], [#include <math.h>])
+    AC_CHECK_DECL([atanl], , [HAVE_DECL_ATANL=0], [[#include <math.h>]])
   else
     HAVE_DECL_ATANL=0
     HAVE_ATANL=0
index 3cb90029a7922dcb7bcb7cf5f04bf2f66c25077e..75472ee8b46705c0f4ca716c2c3d86cf2497d517 100644 (file)
@@ -1,4 +1,4 @@
-# cosl.m4 serial 4
+# cosl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_COSL],
      || test $gl_cv_func_cosl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has cosl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([cosl], , [HAVE_DECL_COSL=0], [#include <math.h>])
+    AC_CHECK_DECL([cosl], , [HAVE_DECL_COSL=0], [[#include <math.h>]])
   else
     HAVE_DECL_COSL=0
     HAVE_COSL=0
index 8f1a9a97807f8cc2ae085256c10d8343ee6c5cc3..c9c1b7b9ed2038f1934a1f3ae43fef9c71f4c8af 100644 (file)
@@ -1,4 +1,4 @@
-# expl.m4 serial 3
+# expl.m4 serial 4
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_EXPL],
      || test $gl_cv_func_expl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has expl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([expl], , [HAVE_DECL_EXPL=0], [#include <math.h>])
+    AC_CHECK_DECL([expl], , [HAVE_DECL_EXPL=0], [[#include <math.h>]])
   else
     HAVE_DECL_EXPL=0
     HAVE_EXPL=0
index 5843fa2f52af4a07aaa44733157416ef0b0e81df..e9f9964dc831184016a3f68dcd7debb34d857a3b 100644 (file)
@@ -1,4 +1,4 @@
-# frexpl.m4 serial 16
+# frexpl.m4 serial 17
 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,7 @@ AC_DEFUN([gl_FUNC_FREXPL],
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Check whether it's declared.
   dnl MacOS X 10.3 has frexpl() in libc but doesn't declare it in <math.h>.
-  AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [#include <math.h>])
+  AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include <math.h>]])
   FREXPL_LIBM=
   if test $HAVE_DECL_FREXPL = 1; then
     gl_CHECK_FREXPL_NO_LIBM
@@ -58,7 +58,7 @@ AC_DEFUN([gl_FUNC_FREXPL_NO_LIBM],
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Check whether it's declared.
   dnl MacOS X 10.3 has frexpl() in libc but doesn't declare it in <math.h>.
-  AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [#include <math.h>])
+  AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include <math.h>]])
   if test $HAVE_DECL_FREXPL = 1; then
     gl_CHECK_FREXPL_NO_LIBM
     if test $gl_cv_func_frexpl_no_libm = yes; then
index b75e05fa0561695f9c30d89ed598bfd133f3f436..b16f40de0aa47aa3a2333796e4e8cdeaeed4abea 100644 (file)
@@ -7,7 +7,7 @@
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
-#serial 4
+#serial 5
 
 # Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent.
 # New applications should use gl_GETLOADAVG instead.
@@ -91,10 +91,10 @@ else
   HAVE_SYS_LOADAVG_H=0
 fi
 AC_CHECK_DECL([getloadavg], [], [HAVE_DECL_GETLOADAVG=0],
-  [#if HAVE_SYS_LOADAVG_H
-   # include <sys/loadavg.h>
-   #endif
-   #include <stdlib.h>])
+  [[#if HAVE_SYS_LOADAVG_H
+    # include <sys/loadavg.h>
+    #endif
+    #include <stdlib.h>]])
 ])# gl_GETLOADAVG
 
 
index 76101f336017259a185d11e438b7871ef804cfd3..4e419cf2058d1542f10900ed7ca8a49589635286 100644 (file)
@@ -1,4 +1,4 @@
-# ldexpl.m4 serial 12
+# ldexpl.m4 serial 13
 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_LDEXPL],
   AC_REQUIRE([gl_FUNC_ISNANL]) dnl for ISNANL_LIBM
   dnl Check whether it's declared.
   dnl MacOS X 10.3 has ldexpl() in libc but doesn't declare it in <math.h>.
-  AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [#include <math.h>])
+  AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [[#include <math.h>]])
   LDEXPL_LIBM=
   if test $HAVE_DECL_LDEXPL = 1; then
     gl_CHECK_LDEXPL_NO_LIBM
index dfc301a921a6a0831859156e2d45b8a8b9c5eff8..70a5eadfc664048af574059184049bc2980a04e6 100644 (file)
@@ -1,4 +1,4 @@
-# logl.m4 serial 4
+# logl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_LOGL],
      || test $gl_cv_func_logl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has logl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([logl], , [HAVE_DECL_LOGL=0], [#include <math.h>])
+    AC_CHECK_DECL([logl], , [HAVE_DECL_LOGL=0], [[#include <math.h>]])
   else
     HAVE_DECL_LOGL=0
     HAVE_LOGL=0
index 9c13d4e7f58461ca376c8efbcfdcd01bd8ea1f0c..9b698c9be106e7ef4dff272be7a9bd4f43311aa6 100644 (file)
@@ -1,4 +1,4 @@
-# printf-frexpl.m4 serial 7
+# printf-frexpl.m4 serial 8
 dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -27,7 +27,7 @@ AC_DEFUN([gl_FUNC_PRINTF_FREXPL],
       [Define if the frexpl function is available in libc.])
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has frexpl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [#include <math.h>])
+    AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include <math.h>]])
   fi
 
   gl_CHECK_LDEXPL_NO_LIBM
@@ -39,7 +39,7 @@ AC_DEFUN([gl_FUNC_PRINTF_FREXPL],
           [Define if the ldexpl function is available in libc.])
         dnl Also check whether it's declared.
         dnl MacOS X 10.3 has ldexpl() in libc but doesn't declare it in <math.h>.
-        AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [#include <math.h>])
+        AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [[#include <math.h>]])
         ;;
     esac
   fi
index 5666cab794f7020a701fcbd0778c98d5600426d5..510c9b7e8a3e183de3756320bf2cb567697319f5 100644 (file)
@@ -1,4 +1,4 @@
-# sinl.m4 serial 4
+# sinl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_SINL],
      || test $gl_cv_func_sinl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has sinl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([sinl], , [HAVE_DECL_SINL=0], [#include <math.h>])
+    AC_CHECK_DECL([sinl], , [HAVE_DECL_SINL=0], [[#include <math.h>]])
   else
     HAVE_DECL_SINL=0
     HAVE_SINL=0
index 87ffc3719389a393efe31d1011f1e55ab15bbfb2..aa8522b8c5b81a5c6a7d416a5f7a9a34585fed47 100644 (file)
@@ -1,4 +1,4 @@
-# sqrtl.m4 serial 4
+# sqrtl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_SQRTL],
      || test $gl_cv_func_sqrtl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has sqrtl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([sqrtl], , [HAVE_DECL_SQRTL=0], [#include <math.h>])
+    AC_CHECK_DECL([sqrtl], , [HAVE_DECL_SQRTL=0], [[#include <math.h>]])
   else
     HAVE_DECL_SQRTL=0
     HAVE_SQRTL=0
index 5f3f73eb7c8260cfdb78ab9cf036dda7b30ee57d..db45e0ca424dcd4b2d7e106222f4c3d95a7521ba 100644 (file)
@@ -1,4 +1,4 @@
-# tanl.m4 serial 4
+# tanl.m4 serial 5
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,7 +51,7 @@ AC_DEFUN([gl_FUNC_TANL],
      || test $gl_cv_func_tanl_in_libm = yes; then
     dnl Also check whether it's declared.
     dnl MacOS X 10.3 has tanl() in libc but doesn't declare it in <math.h>.
-    AC_CHECK_DECL([tanl], , [HAVE_DECL_TANL=0], [#include <math.h>])
+    AC_CHECK_DECL([tanl], , [HAVE_DECL_TANL=0], [[#include <math.h>]])
   else
     HAVE_DECL_TANL=0
     HAVE_TANL=0