- if test -n "$YACC"; then
- case "$YACC" in
- *bison*)
- if ($YACC --print-localedir) >/dev/null 2>&1; then
- BISON_LOCALEDIR=`$YACC --print-localedir`
- fi
- ;;
- esac
- else
- if test -n "$BISON"; then
- if test "$BISON" != ":"; then
- if ($BISON --print-localedir) >/dev/null 2>&1; then
- BISON_LOCALEDIR=`$BISON --print-localedir`
- fi
- fi
- fi
+ dnl But even is YACC is called "yacc", it may be a script that invokes bison
+ dnl and accepts the --print-localedir option.
+ dnl YACC's default value is empty; BISON's default value is :.
+ if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
+ BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`