Fix autoconf 2.65 warning (don't use _cv_ inside AC_CACHE_VAL).
[oota-llvm.git] / autoconf / m4 / bison.m4
index e186af01012e436e689983d8dbd7ff70ac9c986b..48b83cc4a61f5bad45568fad59a008f49856e6f2 100644 (file)
@@ -8,7 +8,8 @@
 AC_DEFUN([AC_PROG_BISON],
 [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])
+  AC_SUBST(BISON,[bison])
 fi])