* stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Aug 2006 21:16:36 +0000 (21:16 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Aug 2006 21:16:36 +0000 (21:16 +0000)
* inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
* longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
* intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.

m4/ChangeLog
m4/intmax_t.m4
m4/inttypes_h.m4
m4/longlong.m4
m4/stdint_h.m4

index 3718d7f..a3e2cc2 100644 (file)
@@ -1,3 +1,10 @@
+2006-08-22  Eric Blake  <ebb9@byu.net>
+
+       * stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
+       * inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
+       * longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
+       * intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
+
 2006-08-22  Bruno Haible  <bruno@clisp.org>
 
        * readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
index 44b1652..17c7b0a 100644 (file)
@@ -1,5 +1,5 @@
-# intmax_t.m4 serial 4
-dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+# intmax_t.m4 serial 5
+dnl Copyright (C) 1997-2004, 2006 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.
@@ -46,7 +46,7 @@ AC_DEFUN([gt_AC_TYPE_INTMAX_T],
 #if HAVE_INTTYPES_H_WITH_UINTMAX
 #include <inttypes.h>
 #endif
-], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
+], [intmax_t x = -1; return !x;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
   if test $gt_cv_c_intmax_t = yes; then
     AC_DEFINE(HAVE_INTMAX_T, 1,
       [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
index a5d075d..edc8ecb 100644 (file)
@@ -1,5 +1,5 @@
-# inttypes_h.m4 serial 6
-dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+# inttypes_h.m4 serial 7
+dnl Copyright (C) 1997-2004, 2006 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.
@@ -15,7 +15,7 @@ AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
   [AC_TRY_COMPILE(
     [#include <sys/types.h>
 #include <inttypes.h>],
-    [uintmax_t i = (uintmax_t) -1;],
+    [uintmax_t i = (uintmax_t) -1; return !i;],
     gl_cv_header_inttypes_h=yes,
     gl_cv_header_inttypes_h=no)])
   if test $gl_cv_header_inttypes_h = yes; then
index ea7c485..89a47bd 100644 (file)
@@ -1,4 +1,4 @@
-# longlong.m4 serial 6
+# longlong.m4 serial 7
 dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -22,8 +22,8 @@ AC_DEFUN([AC_TYPE_LONG_LONG_INT],
                           ? 1 : -1)];
            int i = 63;]],
          [[long long int llmax = 9223372036854775807ll;
-           return (ll << 63 | ll >> 63 | ll < i | ll > i
-                   | llmax / ll | llmax % ll);]])],
+           return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
+                   | (llmax / ll) | (llmax % ll));]])],
        [ac_cv_type_long_long_int=yes],
        [ac_cv_type_long_long_int=no])])
   if test $ac_cv_type_long_long_int = yes; then
index 3355f35..db9a8ac 100644 (file)
@@ -1,5 +1,5 @@
-# stdint_h.m4 serial 5
-dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
+# stdint_h.m4 serial 6
+dnl Copyright (C) 1997-2004, 2006 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.
@@ -15,7 +15,7 @@ AC_DEFUN([gl_AC_HEADER_STDINT_H],
   [AC_TRY_COMPILE(
     [#include <sys/types.h>
 #include <stdint.h>],
-    [uintmax_t i = (uintmax_t) -1;],
+    [uintmax_t i = (uintmax_t) -1; return !i;],
     gl_cv_header_stdint_h=yes,
     gl_cv_header_stdint_h=no)])
   if test $gl_cv_header_stdint_h = yes; then