bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

m4_version_compare and octal numbers


From: Eric Blake
Subject: m4_version_compare and octal numbers
Date: Thu, 20 Nov 2008 20:29:39 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With current git tip, I'm getting AC_PREREQ failures such as:

/usr/bin/m4:configure.ac:212: Warning: m4_eval: bad expression (missing
right parenthesis): (03118+0) != (0*4)

I finally figured it out - m4_eval sees the string 03118, and complains
because it is not a valid octal number.  I'm still thinking about how best
to fix this (basically, I want m4_version_compare to ignore leading zeros,
and treat version strings as decimal once the letters have been flattened).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkmKyMACgkQ84KuGfSFAYBtfgCfTygTi7hg9WqNlceUn4EQTGGB
VGsAnR0FuTRTa6PFXC60zqIGIWpdfmZq
=0nMv
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]