summaryrefslogtreecommitdiff
path: root/m4/mbrtowc.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-12-18 03:28:36 +0100
committerBruno Haible <bruno@clisp.org>2008-12-18 03:28:36 +0100
commitcb252a70ec76d7386a3b1f60eb2946bf15c19db8 (patch)
tree7b8afce1ef946d6f790eb68162ae2fccce50ca2a /m4/mbrtowc.m4
parent9b3f89390fcecf075fa14254cab1ad11d02f65a5 (diff)
downloadgnulib-cb252a70ec76d7386a3b1f60eb2946bf15c19db8.tar.gz
Don't override a newer version of an autoconf macro with an older version.
Diffstat (limited to 'm4/mbrtowc.m4')
-rw-r--r--m4/mbrtowc.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4
index 16ad6ca155..a0274933b0 100644
--- a/m4/mbrtowc.m4
+++ b/m4/mbrtowc.m4
@@ -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
])
+])