265 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
266 |
# Set YACC. |
# Set YACC. |
267 |
# call the |
# call the |
268 |
# autoconf macro which looks for `bison' and then for `yacc' |
# autoconf macro which looks for `bison' and then for `yacc'. |
269 |
|
# note it isn't bright enough to check that yacc really exists, |
270 |
|
# so we allow the user to disable it. |
271 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
272 |
|
|
273 |
|
YACCSAVE="$YACC" |
274 |
AC_PROG_YACC |
AC_PROG_YACC |
275 |
|
|
276 |
|
AC_ARG_WITH(yacc, |
277 |
|
[ --without-yacc do not generate parser from yacc file], |
278 |
|
, [with_yacc=yes]) |
279 |
|
if test ! "X$with_yacc" = "Xyes" ; then |
280 |
|
YACC=": configured without yacc" |
281 |
|
parser_src="ascParse.c.from.c" |
282 |
|
else |
283 |
|
parser_src="ascParse.c.from.yacc" |
284 |
|
fi |
285 |
|
AC_SUBST(parser_src) |
286 |
|
|
287 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
288 |
# Set LEX. |
# Set LEX. |
289 |
# ASCEND requires a `flex' which understands -P (allows you to |
# ASCEND requires a `flex' which understands -P (allows you to |