2004-09-07 06:56:14 +00:00
|
|
|
#
|
|
|
|
# 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],
|
2004-12-13 09:37:41 +00:00
|
|
|
[AC_CACHE_CHECK([],[llvm_cv_has_bison],[AC_PROG_YACC()])
|
2004-09-07 06:56:14 +00:00
|
|
|
if test "$YACC" != "bison -y"; then
|
2006-08-24 22:41:20 +00:00
|
|
|
AC_SUBST(BISON,[])
|
|
|
|
AC_MSG_WARN([bison not found, can't rebuild grammars])
|
2004-09-07 06:56:14 +00:00
|
|
|
else
|
2006-08-24 22:41:20 +00:00
|
|
|
AC_SUBST(BISON,[bison])
|
2004-12-13 09:37:41 +00:00
|
|
|
fi])
|