YACC as bison -y. In this way, we ensure that bison is being used, but
the Makefiles have macros for using bison itself and for getting bison to
act like it is traditional yacc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10774
91177308-0d34-0410-b5e6-
96231b3b80d8
#
# The pathnames of the Flex and Bison programs, respectively.
#
#
# The pathnames of the Flex and Bison programs, respectively.
#
+YACC = @YACC@
+BISON = @BISON@
# Check for Bison. This is modified from
# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_namespaces.html
#
# Check for Bison. This is modified from
# http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_namespaces.html
#
+# 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(,
ac_cv_has_bison,
AC_DEFUN([AC_PROG_BISON],
[AC_CACHE_CHECK(,
ac_cv_has_bison,
if test "$YACC" != "bison -y"; then
AC_MSG_ERROR([bison not found but required])
else
if test "$YACC" != "bison -y"; then
AC_MSG_ERROR([bison not found but required])
else
- AC_SUBST(YACC,[bison],[location of bison])
+ AC_SUBST(BISON,[bison],[location of bison])