mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
45b86c1ebe
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
16 lines
407 B
Plaintext
16 lines
407 B
Plaintext
#
|
|
# Check for Bison.
|
|
#
|
|
# This macro verifies that Bison is installed. If successful, then
|
|
# 1) YACC is set to bison -y (to emulate YACC calls)
|
|
# 2) BISON is set to bison
|
|
#
|
|
AC_DEFUN([AC_PROG_BISON],
|
|
[AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
|
|
if test "$YACC" != "bison -y"; then
|
|
AC_SUBST(BISON,[])
|
|
AC_MSG_WARN([bison not found, can't rebuild grammars])
|
|
else
|
|
AC_SUBST(BISON,[bison])
|
|
fi])
|