source: abnfparser/bap/configure.ac @ 407

Last change on this file since 407 was 407, checked in by ylafon@…, 14 years ago

unixism

File size: 1021 bytes
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_REPLACE_FUNCS(hcreate)
30
31AC_CONFIG_HEADERS(config.h)
32
33AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.