Skip to content

Commit

Permalink
Warn about the weird problems on FreeBSD 4.3 with byacc.
Browse files Browse the repository at this point in the history
  • Loading branch information
fenner committed Feb 3, 2005
1 parent 259012b commit 1fdfb75
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 1,4 @@
dnl $Fenner: abnf-parser/configure.ac,v 1.5 2004/09/17 03:14:37 fenner Exp $
dnl $Fenner: abnf-parser/configure.ac,v 1.6 2004/09/17 03:17:13 fenner Exp $
dnl
dnl Boy does modern autoconf make it hard to have a small ./configure.
dnl Sorry that it's so huge for almost no configuration.
Expand All @@ -8,6 8,14 @@ AC_INIT(bap, 1.0)
AC_PROG_CC
AC_PROG_YACC

dnl byacc on FreeBSD 4.3 gives weird parsing problems.
dnl byacc on FreeBSD 4.10 seems fine.
if test "$ac_cv_prog_YACC" = "byacc"; then
AC_WARN([using byacc has caused inexplicable runtime behavior;])
AC_WARN([if you get incomprehensible errors when parsing])
AC_WARN([grammars, install bison and try again.])
fi

dnl The bap -d argument only works with bison, so enable it
dnl if we're using bison.
if test "$ac_cv_prog_YACC" = "bison -y"; then
Expand Down

0 comments on commit 1fdfb75

Please sign in to comment.