Avoid an error when autoconf 2.59 is used.
authorBruno Haible <bruno@clisp.org>
Thu, 18 Dec 2008 02:23:14 +0000 (03:23 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 18 Dec 2008 02:23:14 +0000 (03:23 +0100)
ChangeLog
m4/errno_h.m4

index 122bcfe..5c1d181 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-12-17  Bruno Haible  <bruno@clisp.org>
 
+       * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
+
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
        * lib/mbsinit.c: Include verify.h. Verify an assumption.
        * modules/mbsinit (Depends-on): Add verify.
        Suggested by Paul Eggert.
index b5af078..22c08f0 100644 (file)
@@ -1,4 +1,4 @@
-# errno_h.m4 serial 1
+# errno_h.m4 serial 2
 dnl Copyright (C) 2004, 2006, 2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -111,3 +111,9 @@ yes
     AC_SUBST($1[_VALUE])
   fi
 ])
+
+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])])
+])