differences between two blockaddress's don't cause a
[oota-llvm.git] / autoconf / m4 / bison.m4
index b077d1feed1d28863e17bb76e9b4037cb78af376..48b83cc4a61f5bad45568fad59a008f49856e6f2 100644 (file)
@@ -6,12 +6,10 @@
 # 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])