X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=autoconf%2Facinclude.m4;h=972721ce6679914889a833c2a8fb662502fa05dc;hp=0a64803e27302d5dba3097fcb87a9a88b1a909c9;hb=b8b80c455ff0a7f6147e0fc11f6e2ea3c4a2dfef;hpb=f998a7e671e69269697fd8f8803637e843f983d1;ds=sidebyside diff --git a/autoconf/acinclude.m4 b/autoconf/acinclude.m4 index 0a64803e273..972721ce667 100644 --- a/autoconf/acinclude.m4 +++ b/autoconf/acinclude.m4 @@ -6111,6 +6111,10 @@ fi # 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, @@ -6119,7 +6123,7 @@ ac_cv_has_bison, 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]) fi ])