bug-gnu-utils
[Top][All Lists]
Advanced

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

AM_WITH_NLS fails to find version of bison 1.29


From: Pavel Roskin
Subject: AM_WITH_NLS fails to find version of bison 1.29
Date: Fri, 7 Sep 2001 20:34:53 -0400 (EDT)

Hello!

The AM_WITH_NLS macro from gettext.m4 tries to determine the version of
GNU Bison.  It works with Bison 1.28, but not with Bison 1.29.

The output of "bison --verison" has changed.  Now there is no space after
"GNU Bison"

$ bison --version
bison (GNU Bison) 1.29

Copyright 1984, 1986, 1989, 1992, 2000, 2001 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.

This patch against CVS version of gettext fixes the problem.

ChangeLog:

        * m4/gettext.m4 (AM_WITH_NLS): When checking bison version, don't
        require a space after "GNU Bison".  This fixes detection of GNU
        Bison 1.29.

----------------------------------
--- m4/gettext.m4
+++ m4/gettext.m4
@@ -337,7 +337,7 @@
       dnl Found it, now check the version.
       AC_MSG_CHECKING([version of bison])
 changequote(<<,>>)dnl
-      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* 
\([0-9]*\.[0-9.]*\).*$/\1/p'`
+      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* 
\([0-9]*\.[0-9.]*\).*$/\1/p'`
       case $ac_prog_version in
         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
----------------------------------

-- 
Regards,
Pavel Roskin




reply via email to

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