source: abnfparser/bap/configure.ac @ 1141

Last change on this file since 1141 was 449, checked in by fielding@…, 14 years ago

If lex is actually flex (as it is on Mac OS X), then the -l flag is
required in order to support yylineo. make uses LFLAGS to set flags
for the automatic rule for running lex.

File size: 1.1 KB
Line 
1dnl $Id: configure.ac,v 1.1 2008-05-28 12:01:58 jre Exp $
2dnl
3dnl Boy does modern autoconf make it hard to have a small ./configure.
4dnl Sorry that it's so huge for almost no configuration.
5
6AC_INIT(bap, 1.2)
7
8AC_PROG_CC
9AC_PROG_YACC
10
11dnl byacc on FreeBSD 4.3 gives weird parsing problems.
12dnl byacc on FreeBSD 4.10 seems fine.
13if test "$ac_cv_prog_YACC" = "byacc"; then
14        AC_WARN([using byacc has caused inexplicable runtime behavior;])
15        AC_WARN([if you get incomprehensible errors when parsing])
16        AC_WARN([grammars, install bison and try again.])
17fi
18
19dnl The bap -d argument only works with bison, so enable it
20dnl  if we're using bison.
21dnl
22dnl Unfortunately, the bison internals that my YYERROR_VERBOSE
23dnl code tweaks changed in bison 2.1, and I haven't taken the
24dnl time to track it down, so skip this test for now.
25dnl if test "$ac_cv_prog_YACC" = "bison -y"; then
26dnl     AC_DEFINE(YYERROR_VERBOSE, 1, [define if we're using bison])
27dnl fi
28
29AC_PROG_LEX
30if test "$LEX" = "flex"; then
31        FLEXFLAGS="-l"
32fi
33AC_SUBST(FLEXFLAGS)
34
35AC_REPLACE_FUNCS(hcreate)
36
37AC_CONFIG_HEADERS(config.h)
38
39AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.