1 dnl Process this file with 'autoconf' to produce a 'configure' script
2 dnl Id: configure.in,v 1.20 2014/10/06 22:39:39 tom Exp
3 AC_PREREQ(2.52.20011201)
4 AC_REVISION(Revision: 1.20 )
6 AC_CONFIG_HEADER(config.h:config_h.in)
8 CF_CHECK_CACHE([AC_CANONICAL_SYSTEM])
19 AC_CHECK_HEADERS(fcntl.h)
21 AC_HAVE_FUNCS(vsnprintf)
23 AC_MSG_CHECKING(for maximum table size)
24 AC_ARG_WITH([max-table-size],
25 [AC_HELP_STRING([--with-max-table-size=N],
26 [set the maximum table size = N (no default)])])
27 if test -n "$with_max_table_size"
29 AC_MSG_RESULT($with_max_table_size)
30 check=`expr "$with_max_table_size" + 0`
31 if test "x$check" != "x$with_max_table_size"
33 AC_MSG_ERROR([invalid value for --with-max-table-size: $with_max_table_size])
35 AC_DEFINE_UNQUOTED(MAXTABLE,$with_max_table_size,[Define to maximum table size (default: 32500)])
37 AC_MSG_RESULT(default)
40 AC_MSG_CHECKING(if backtracking extension is wanted)
41 AC_ARG_ENABLE([btyacc],
42 [AC_HELP_STRING([--enable-btyacc],
43 [turn on support for the btyacc backtracking extension (default: no)])])
44 AC_MSG_RESULT($enable_btyacc)
45 if test "$enable_btyacc" = "yes"; then
46 AC_DEFINE(YYBTYACC,1,[Define to 1 to enable backtracking extension])
53 CF_WITH_WARNINGS(Wwrite-strings)