From 45b86c1ebe9387011eea51a0022b53198ae65822 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 24 Aug 2006 22:41:20 +0000 Subject: [PATCH] For PR738: Demote check for bison from error to warning and make sure that the makefile can handle an empty definition for BISON variable. llvm-svn: 29861 --- Makefile.rules | 4 ++++ autoconf/m4/bison.m4 | 5 +++-- configure | 6 +++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 42c367a9499..808e2b5a761 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1315,10 +1315,14 @@ all:: $(YaccFiles:%.y=$(PROJ_SRC_DIR)/%.cpp.cvs) # Rule for building the bison based parsers... $(PROJ_SRC_DIR)/%.cpp $(PROJ_SRC_DIR)/%.h : $(PROJ_SRC_DIR)/%.y +ifneq ($(BISON),) $(Echo) "Bisoning $*.y" $(Verb) $(BISON) -v -d -p $(&5 echo "${ECHO_T}$llvm_cv_has_bison" >&6; } if test "$YACC" != "bison -y"; then - { { echo "$as_me:$LINENO: error: bison not found but required" >&5 -echo "$as_me: error: bison not found but required" >&2;} - { (exit 1); exit 1; }; } + + { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 +echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} else BISON=bison