Don't override a newer version of an autoconf macro with an older version.
authorBruno Haible <bruno@clisp.org>
Thu, 18 Dec 2008 02:28:36 +0000 (03:28 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 18 Dec 2008 02:28:36 +0000 (03:28 +0100)
ChangeLog
m4/mbrtowc.m4

index 5c1d181..89d8b8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-12-17  Bruno Haible  <bruno@clisp.org>
 
+       * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
+       Suggested by Eric Blake.
+
+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>
index 16ad6ca..a027493 100644 (file)
@@ -9,6 +9,7 @@ dnl From Paul Eggert
 dnl This override of an autoconf macro can be removed when autoconf 2.60 or
 dnl newer can be assumed everywhere.
 
+m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.60]),[-1],[
 AC_DEFUN([AC_FUNC_MBRTOWC],
 [
   dnl Same as AC_FUNC_MBRTOWC in autoconf-2.60.
@@ -29,3 +30,4 @@ AC_DEFUN([AC_FUNC_MBRTOWC],
       [Define to 1 if mbrtowc and mbstate_t are properly declared.])
   fi
 ])
+])