* m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Nov 2006 22:58:46 +0000 (22:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Nov 2006 22:58:46 +0000 (22:58 +0000)
_AC_COMPUTE_INT.
(AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.

2006-11-27  Bruno Haible  <bruno@clisp.org>

ChangeLog
m4/stdint.m4

index 0cb621661aa9a1b06b9a0532525fc1b8f411714b..2919ff8a066c78bf4ff3b569eafbe25a51f03d65 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-27  Bruno Haible  <bruno@clisp.org>
+
+       * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
+       _AC_COMPUTE_INT.
+       (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
+
 2006-11-27  Bruno Haible  <bruno@clisp.org>
            Paul Eggert  <eggert@cs.ucla.edu>
 
index 9261def3bb65a75b01176e1c2830cb370b828c42..6fa651845b890c661d73091791a9b69c780d6fcc 100644 (file)
@@ -1,4 +1,4 @@
-# stdint.m4 serial 19
+# stdint.m4 serial 20
 dnl Copyright (C) 2001-2002, 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,
@@ -229,7 +229,7 @@ AC_DEFUN([gl_STDINT_BITSIZEOF],
        [Define to the number of bits in type ']gltype['.])])
   for gltype in $1 ; do
     AC_CACHE_CHECK([for bit size of $gltype], [gl_cv_bitsizeof_${gltype}],
-      [_AC_COMPUTE_INT([sizeof ($gltype) * CHAR_BIT], result,
+      [AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT],
         [$2
 #include <limits.h>], [result=unknown])
        eval gl_cv_bitsizeof_${gltype}=\$result
@@ -366,3 +366,9 @@ AC_DEFUN([gl_STDINT_TYPE_PROPERTIES],
   gl_INTEGER_TYPE_SUFFIX([ptrdiff_t sig_atomic_t size_t wchar_t wint_t],
     [gl_STDINT_INCLUDES])
 ])
+
+dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.
+dnl Remove this when we can assume autoconf >= 2.61.
+m4_ifdef([AC_COMPUTE_INT], [], [
+  AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])])
+])