# 2) BISON is set to bison
#
AC_DEFUN([AC_PROG_BISON],
-[AC_CACHE_CHECK([],[llvm_cv_has_bison],
-[AC_PROG_YACC()
-])
+[AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
if test "$YACC" != "bison -y"; then
- AC_MSG_ERROR([bison not found but required])
+ AC_SUBST(BISON,[])
+ AC_MSG_WARN([bison not found, can't rebuild grammars])
else
- AC_SUBST(BISON,[bison],[location of bison])
-fi
-])
+ AC_SUBST(BISON,[bison])
+fi])