summaryrefslogtreecommitdiff
path: root/mu-aux
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-10-25 10:41:25 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-10-25 10:41:25 +0300
commitdbe7332d2241a00f07a571c0b9328d2e841557e0 (patch)
treea6a394078eff067a68c871cdd7b23e9d4a74d422 /mu-aux
parent066be4fc8773e1957e291198050527d1de3cd165 (diff)
downloadmailutils-dbe7332d2241a00f07a571c0b9328d2e841557e0.tar.gz
mailutils-dbe7332d2241a00f07a571c0b9328d2e841557e0.tar.bz2
Bugfix in AM_MAILUTILS macro
* mu-aux/mailutils.m4 (am_mu_vercmp): Ignore missing version parts.
Diffstat (limited to 'mu-aux')
-rw-r--r--mu-aux/mailutils.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/mu-aux/mailutils.m4 b/mu-aux/mailutils.m4
index 18eff0b3a..93e33972e 100644
--- a/mu-aux/mailutils.m4
+++ b/mu-aux/mailutils.m4
@@ -17,12 +17,13 @@ dnl along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
m4_define([am_mu_vercmp],[
m4_pushdef([_ver_A_],m4_car($1))dnl
m4_pushdef([_ver_B_],m4_car($2))dnl
-m4_if(_ver_B_,,,[if test m4_if(_ver_A_,,0,_ver_A_) -lt _ver_B_; then
- $3
+m4_if(_ver_B_,,:,[if test m4_if(_ver_A_,,0,_ver_A_) -lt _ver_B_; then
+ $3
+elif test m4_if(_ver_A_,,0,_ver_A_) -eq _ver_B_; then
+am_mu_vercmp(m4_cdr($1),m4_cdr($2),[$3])
fi
m4_popdef([_ver_A_])dnl
-m4_popdef([_ver_B_])dnl
-am_mu_vercmp(m4_cdr($1),m4_cdr($2),[$3])])])
+m4_popdef([_ver_B_])dnl])])
dnl AM_GNU_MAILUTILS(minversion, link-req, [act-if-found], [ac-if-not-found])
dnl $1 $2 $3 $4

Return to:

Send suggestions and report system problems to the System administrator.