1234949Sbaptdnl Process this file with 'autoconf' to produce a 'configure' script 2272957Srodrigcdnl $Id: configure.in,v 1.20 2014/10/06 22:39:39 tom Exp $ 3251143SbaptAC_PREREQ(2.52.20011201) 4272957SrodrigcAC_REVISION($Revision: 1.20 $) 5234949SbaptAC_INIT(main.c) 6234949SbaptAC_CONFIG_HEADER(config.h:config_h.in) 7234949Sbapt 8234949SbaptCF_CHECK_CACHE([AC_CANONICAL_SYSTEM]) 9234949Sbapt 10234949SbaptAC_ARG_PROGRAM 11251143SbaptCF_PROG_CC 12234949SbaptAC_PROG_MAKE_SET 13234949SbaptAC_PROG_INSTALL 14234949SbaptCF_MAKE_TAGS 15268899SbaptCF_PROG_AWK 16234949SbaptCF_PROG_LINT 17234949Sbapt 18234949SbaptCF_XOPEN_SOURCE 19234949SbaptAC_CHECK_HEADERS(fcntl.h) 20234949SbaptCF_MKSTEMP 21268899SbaptAC_HAVE_FUNCS(vsnprintf) 22234949Sbapt 23268899SbaptAC_MSG_CHECKING(for maximum table size) 24268899SbaptAC_ARG_WITH([max-table-size], 25268899Sbapt [AC_HELP_STRING([--with-max-table-size=N], 26268899Sbapt [set the maximum table size = N (no default)])]) 27268899Sbaptif test -n "$with_max_table_size" 28268899Sbaptthen 29268899Sbapt AC_MSG_RESULT($with_max_table_size) 30268899Sbapt check=`expr "$with_max_table_size" + 0` 31268899Sbapt if test "x$check" != "x$with_max_table_size" 32268899Sbapt then 33268899Sbapt AC_MSG_ERROR([invalid value for --with-max-table-size: $with_max_table_size]) 34268899Sbapt fi 35268899Sbapt AC_DEFINE_UNQUOTED(MAXTABLE,$with_max_table_size,[Define to maximum table size (default: 32500)]) 36268899Sbaptelse 37268899Sbapt AC_MSG_RESULT(default) 38268899Sbaptfi 39268899Sbapt 40268899SbaptAC_MSG_CHECKING(if backtracking extension is wanted) 41268899SbaptAC_ARG_ENABLE([btyacc], 42268899Sbapt [AC_HELP_STRING([--enable-btyacc], 43268899Sbapt [turn on support for the btyacc backtracking extension (default: no)])]) 44268899SbaptAC_MSG_RESULT($enable_btyacc) 45268899Sbaptif test "$enable_btyacc" = "yes"; then 46268899Sbapt AC_DEFINE(YYBTYACC,1,[Define to 1 to enable backtracking extension]) 47268899Sbapt SKELETON=btyaccpar 48268899Sbaptelse 49268899Sbapt SKELETON=yaccpar 50268899Sbaptfi 51268899SbaptAC_SUBST(SKELETON) 52268899Sbapt 53234949SbaptCF_WITH_WARNINGS(Wwrite-strings) 54234949SbaptCF_DISABLE_ECHO 55234949SbaptCF_DISABLE_LEAKS 56234949Sbapt 57272957SrodrigcAC_TYPE_MODE_T 58272957Srodrigc 59234949Sbapt### output makefile 60251143SbaptAC_OUTPUT(makefile) 61268899SbaptCF_MAKE_DOCS(yacc,1) 62