heroes-discuss
[Top][All Lists]
Advanced

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

[Heroes] bison version string


From: Jean Delvare
Subject: [Heroes] bison version string
Date: Fri, 22 Nov 2002 11:37:53 +0100

Hello,

The bison version checker in heroes' configure script needs an update.
Previous versions of bison behaved like that:

***
> bison --version
GNU Bison version 1.28
***

While new versions behave like this:

***
> bison --version
bison (GNU Bison) 1.35

Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
***

And the regexp we are trying to match against is:
  ^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$
So in doesn't work with the new versions, because the white space right
after "Bison" won't match. I suggest replacing with one of the
following:
  ^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$
(do not require a white space) or
  ^.*GNU Bison[ )].* \([0-9]*\.[0-9.]*\).*$
(require a white space or a closing bracket).

I couldn't find anything related to bison in configure.ac, so I don't
know how to fix it properly. Alexandre?

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/




reply via email to

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