commit 40ad72a35e1caa6bfbbb7d5597c6bdeb637135dc
parent 143d79a47e745f06656a6c6b0dcc4be328c8b0a7
Author: ukai <ukai>
Date: Tue, 16 Sep 2003 14:23:21 +0000
[w3m-dev 03960]
* acinclude.m4 (AC_W3M_CHECK_VER): fix version check logic
From: Hiroyuki Ito <hito@crl.go.jp>
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-16 Hiroyuki Ito <hito@crl.go.jp>
+
+ * [w3m-dev 03960]
+ * acinclude.m4 (AC_W3M_CHECK_VER): fix version check logic
+
2003-08-30 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03958] w3mimgdisplay on jfbterm
diff --git a/acinclude.m4 b/acinclude.m4
@@ -467,7 +467,7 @@ AC_DEFUN([AC_W3M_CHECK_VER],
AC_MSG_CHECKING($1 version)
AC_MSG_RESULT($version)
set -- `echo "$version" | sed 's/[[^0-9]]/ /g'`
- if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" -o "$[3]" -lt "$5"; then
+ if test "$[1]" -ne "$3" -o "$[2]" -lt "$4" || test "$[2]" -eq "$4" -a "$[3]" -lt "$5"; then
AC_MSG_WARN([$1 is too old. Install $1 (version >= $3.$4.$5)])
$7
else