* m4/bison.m4 (gl_BISON): We need to use AM_MISSING_PROG for making
bison the default YACC or else packages cannot be built without bison.

Signed-off-by: Andreas Gruenbacher <agr...@suse.de>
---
 ChangeLog   |    3 +++
 m4/bison.m4 |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3ed5687..5825bc1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-04-27  Andreas Gruenbacher <agr...@suse.de>
 
+       * m4/bison.m4 (gl_BISON): We need to use AM_MISSING_PROG for making
+       bison the default YACC or else packages cannot be built without bison.
+
        * lib/getdate.y (RELATIVE_TIME_0): Avoid a stupid 'const object should
        have initializer' warning.
 
diff --git a/m4/bison.m4 b/m4/bison.m4
index 260cba6..34e6fca 100644
--- a/m4/bison.m4
+++ b/m4/bison.m4
@@ -8,14 +8,14 @@
 AC_DEFUN([gl_BISON],
 [
   # getdate.y works with bison only.
-  : ${YACC='bison -y'}
+  AM_MISSING_PROG([YACC], [bison -y])
 dnl
 dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB
 dnl requires an Autoconf greater than 2.59c, but it will probably still be
 dnl useful to override the description of YACC in the --help output, re
 dnl getdate.y assuming `bison -y'.
   AC_ARG_VAR([YACC],
-[The `Yet Another C Compiler' implementation to use.  Defaults to `bison -y'.
+[The `Yet Another Compiler Compiler' implementation to use.  Defaults to 
`bison -y'.
 Values other than `bison -y' will most likely break on most systems.])dnl
   AC_ARG_VAR([YFLAGS],
 [YFLAGS contains the list arguments that will be passed by default to Bison.
-- 
1.7.1.rc1.12.ga601



Reply via email to