1dnl Process this file with 'autoconf' to produce a 'configure' script 2dnl $Id: configure.in,v 1.23 2020/03/10 22:53:47 tom Exp $ 3AC_PREREQ(2.52.20200111) 4AC_REVISION($Revision: 1.23 $) 5AC_INIT(main.c) 6AC_CONFIG_HEADER(config.h:config_h.in) 7 8CF_CHECK_CACHE([AC_CANONICAL_SYSTEM]) 9 10AC_ARG_PROGRAM 11CF_PROG_CC 12AC_PROG_MAKE_SET 13AC_PROG_INSTALL 14CF_MAKE_TAGS 15CF_PROG_AWK 16CF_PROG_LINT 17 18CF_WITHOUT_X 19 20CF_XOPEN_SOURCE 21AC_CHECK_HEADERS(fcntl.h) 22CF_MKSTEMP 23CF_GETOPT_HEADER 24AC_HAVE_FUNCS(getopt vsnprintf) 25 26AC_MSG_CHECKING(for maximum table size) 27AC_ARG_WITH([max-table-size], 28 [AC_HELP_STRING([--with-max-table-size=N], 29 [set the maximum table size = N (no default)])]) 30if test -n "$with_max_table_size" 31then 32 AC_MSG_RESULT($with_max_table_size) 33 check=`expr "$with_max_table_size" + 0` 34 if test "x$check" != "x$with_max_table_size" 35 then 36 AC_MSG_ERROR([invalid value for --with-max-table-size: $with_max_table_size]) 37 fi 38 AC_DEFINE_UNQUOTED(MAXTABLE,$with_max_table_size,[Define to maximum table size (default: 32500)]) 39else 40 AC_MSG_RESULT(default) 41fi 42 43AC_MSG_CHECKING(if backtracking extension is wanted) 44AC_ARG_ENABLE([btyacc], 45 [AC_HELP_STRING([--enable-btyacc], 46 [turn on support for the btyacc backtracking extension (default: no)])]) 47AC_MSG_RESULT($enable_btyacc) 48if test "$enable_btyacc" = "yes"; then 49 AC_DEFINE(YYBTYACC,1,[Define to 1 to enable backtracking extension]) 50 SKELETON=btyaccpar 51else 52 SKELETON=yaccpar 53fi 54AC_SUBST(SKELETON) 55 56CF_WITH_WARNINGS(Wwrite-strings) 57CF_DISABLE_ECHO 58CF_DISABLE_LEAKS 59CF_WITH_MAN2HTML 60 61AC_TYPE_MODE_T 62 63### output makefile 64AC_OUTPUT(makefile) 65CF_MAKE_DOCS(yacc,1) 66