Changes from me to switch the order in which we choose to use yacc or
bison, default to using bison if we have it.
Signed-off-by: Jens Axboe <axboe@fb.com>
$(QUIET_CC)$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -c $<
y.tab.c: exp/expression-parser.y
- $(QUIET_YACC)$(YACC) --no-lines -d exp/expression-parser.y
+ $(QUIET_YACC)$(YACC) --no-lines -d -b y exp/expression-parser.y
y.tab.h: y.tab.c
if test -x "$LEX" ; then
lex="yes"
fi
-YACC=$(which yacc 2> /dev/null)
+YACC=$(which bison 2> /dev/null)
if test -x "$YACC" ; then
yacc="yes"
+ yacc_is_bison="yes"
else
- YACC=$(which bison 2> /dev/null)
+ YACC=$(which yacc 2> /dev/null)
if test -x "$YACC" ; then
yacc="yes"
- yacc_is_bison="yes"
fi
fi
if test "$yacc" = "yes" && test "$lex" = "yes" ; then