llvm.org GIT mirror llvm / 4869d7f
For PR738: Demote check for bison from error to warning and make sure that the makefile can handle an empty definition for BISON variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29861 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
3 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
13141314
13151315 # Rule for building the bison based parsers...
13161316 $(PROJ_SRC_DIR)/%.cpp $(PROJ_SRC_DIR)/%.h : $(PROJ_SRC_DIR)/%.y
1317 ifneq ($(BISON),)
13171318 $(Echo) "Bisoning $*.y"
13181319 $(Verb) $(BISON) -v -d -p $(
13191320 $(Verb) $(MV) -f $*.tab.c $(PROJ_SRC_DIR)/$*.cpp
13201321 $(Verb) $(MV) -f $*.tab.h $(PROJ_SRC_DIR)/$*.h
1322 else
1323 $(Echo) "Bison of $*.y SKIPPED -- bison not found"
1324 endif
13211325
13221326 # IFF the .y file has changed since it was last checked into CVS, copy the .y
13231327 # file to .y.cvs and the generated .cpp/.h file to .cpp.cvs/.h.cvs. We use this
77 AC_DEFUN([AC_PROG_BISON],
88 [AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
99 if test "$YACC" != "bison -y"; then
10 AC_MSG_ERROR([bison not found but required])
10 AC_SUBST(BISON,[])
11 AC_MSG_WARN([bison not found, can't rebuild grammars])
1112 else
12 AC_SUBST(BISON,[bison],[location of bison])
13 AC_SUBST(BISON,[bison])
1314 fi])
63646364 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
63656365 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
63666366 if test "$YACC" != "bison -y"; then
6367 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
6368 echo "$as_me: error: bison not found but required" >&2;}
6369 { (exit 1); exit 1; }; }
6367
6368 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6369 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
63706370 else
63716371 BISON=bison
63726372