1 # Process this file with autoconf to produce a configure script.
3 # Copyright (C) 1984-2011 Mark Nudelman
5 # You may distribute under the terms of either the GNU General Public
6 # License or the Less License, as specified in the README file.
8 # For more information about less, or for information on how to
9 # contact the author, see the README file.
11 # Autoconf initialization.
13 AC_CONFIG_SRCDIR([forwback.c])
14 AC_CONFIG_HEADER([defines.h])
16 # Checks for programs.
19 AC_PROG_GCC_TRADITIONAL
22 # Checks for compilation model.
25 # Checks for general libraries.
26 AC_CHECK_LIB(tinfo, tgoto, [have_tinfo=yes], [have_tinfo=no])
27 AC_CHECK_LIB(xcurses, initscr, [have_xcurses=yes], [have_xcurses=no])
28 AC_CHECK_LIB(ncursesw, initscr, [have_ncursesw=yes], [have_ncursesw=no])
29 AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
30 AC_CHECK_LIB(curses, initscr, [have_curses=yes], [have_curses=no])
31 AC_CHECK_LIB(termcap, tgetent, [have_termcap=yes], [have_termcap=no])
32 AC_CHECK_LIB(termlib, tgetent, [have_termlib=yes], [have_termlib=no])
33 # Regular expressions (regcmp) are in -lgen on Solaris 2, (but in libc
34 # at least on Solaris 10 (2.10)) and in -lintl on SCO Unix.
35 AC_SEARCH_LIBS([regcmp], [gen intl PW])
37 # Checks for terminal libraries
38 AC_MSG_CHECKING([for working terminal libraries])
41 # Check for systems where curses is broken.
43 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
44 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
47 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
52 if test $curses_broken = 0; then
55 if test "x$TERMLIBS" = x; then
56 if test $have_tinfo = yes; then
59 LIBS="$LIBS $TERMLIBS"
60 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
61 [termok=yes], [termok=no])
63 if test $termok = no; then TERMLIBS=""; fi
68 if test "x$TERMLIBS" = x; then
69 if test $have_xcurses = yes; then
72 LIBS="$LIBS $TERMLIBS"
73 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
74 [termok=yes], [termok=no])
76 if test $termok = no; then TERMLIBS=""; fi
81 if test "x$TERMLIBS" = x; then
82 if test $have_ncursesw = yes; then
85 LIBS="$LIBS $TERMLIBS"
86 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
87 [termok=yes], [termok=no])
89 if test $termok = no; then TERMLIBS=""; fi
94 if test "x$TERMLIBS" = x; then
95 if test $have_ncurses = yes; then
98 LIBS="$LIBS $TERMLIBS"
99 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
100 [termok=yes], [termok=no])
102 if test $termok = no; then TERMLIBS=""; fi
107 if test "x$TERMLIBS" = x; then
108 if test $have_curses = yes; then
111 LIBS="$LIBS $TERMLIBS"
112 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
113 [termok=yes], [termok=no])
115 if test $termok = no; then TERMLIBS=""; fi
119 # -- Try curses & termcap.
120 if test "x$TERMLIBS" = x; then
121 if test $have_curses = yes; then
122 if test $have_termcap = yes; then
123 TERMLIBS="-lcurses -ltermcap"
125 LIBS="$LIBS $TERMLIBS"
126 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
127 [termok=yes], [termok=no])
129 if test $termok = no; then TERMLIBS=""; fi
136 if test "x$TERMLIBS" = x; then
137 if test $have_termcap = yes; then
140 LIBS="$LIBS $TERMLIBS"
141 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
142 [termok=yes], [termok=no])
144 if test $termok = no; then TERMLIBS=""; fi
149 if test "x$TERMLIBS" = x; then
150 if test $have_termlib = yes; then
151 TERMLIBS="-lcurses -ltermlib"
153 LIBS="$LIBS $TERMLIBS"
154 AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
155 [termok=yes], [termok=no])
157 if test $termok = no; then TERMLIBS=""; fi
161 if test "x$TERMLIBS" = x; then
162 AC_MSG_RESULT(Cannot find terminal libraries - configure failed)
165 AC_MSG_RESULT(using $TERMLIBS)
166 LIBS="$LIBS $TERMLIBS"
168 # Checks for header files.
170 AC_CHECK_HEADERS([ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h wctype.h])
172 # Checks for typedefs, structures, and compiler characteristics.
179 # Autoheader templates for symbols defined later by AC_DEFINE.
180 AH_TEMPLATE([HAVE_GNU_REGEX],
182 AH_TEMPLATE([HAVE_POSIX_REGCOMP],
183 [POSIX regcomp() and regex.h])
184 AH_TEMPLATE([HAVE_PCRE],
185 [PCRE (Perl-compatible regular expression) library])
186 AH_TEMPLATE([HAVE_PCRE2],
187 [PCRE2 (Perl-compatible regular expression) library])
188 AH_TEMPLATE([HAVE_RE_COMP],
190 AH_TEMPLATE([HAVE_REGCMP],
192 AH_TEMPLATE([HAVE_V8_REGCOMP],
193 [Henry Spencer V8 regcomp() and regexp.h])
194 AH_TEMPLATE([NO_REGEX],
195 [pattern matching is supported, but without metacharacters.])
196 AH_TEMPLATE([HAVE_REGEXEC2],
198 AH_TEMPLATE([HAVE_VOID],
199 [Define HAVE_VOID if your compiler supports the "void" type.])
200 AH_TEMPLATE([HAVE_FLOAT],
201 [Define HAVE_FLOAT if your compiler supports the "double" type.])
202 AH_TEMPLATE([HAVE_CONST],
203 [Define HAVE_CONST if your compiler supports the "const" modifier.])
204 AH_TEMPLATE([HAVE_STAT_INO],
205 [Define HAVE_STAT_INO if your struct stat has st_ino and st_dev.])
206 AH_TEMPLATE([HAVE_TIME_T],
207 [Define HAVE_TIME_T if your system supports the "time_t" type.])
208 AH_TEMPLATE([HAVE_STRERROR],
209 [Define HAVE_STRERROR if you have the strerror() function.])
210 AH_TEMPLATE([HAVE_FILENO],
211 [Define HAVE_FILENO if you have the fileno() macro.])
212 AH_TEMPLATE([HAVE_ERRNO],
213 [Define HAVE_ERRNO if you have the errno variable.])
214 AH_TEMPLATE([MUST_DEFINE_ERRNO],
215 [Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.])
216 AH_TEMPLATE([HAVE_SYS_ERRLIST],
217 [Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable.])
218 AH_TEMPLATE([HAVE_OSPEED],
219 [Define HAVE_OSPEED if your termcap library has the ospeed variable.])
220 AH_TEMPLATE([MUST_DEFINE_OSPEED],
221 [Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in termcap.h.])
222 AH_TEMPLATE([HAVE_LOCALE],
223 [Define HAVE_LOCALE if you have locale.h and setlocale.])
224 AH_TEMPLATE([HAVE_TERMIOS_FUNCS],
225 [Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr.])
226 AH_TEMPLATE([HAVE_UPPER_LOWER],
227 [Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower.])
228 AH_TEMPLATE([HAVE_WCTYPE],
229 [Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower.])
230 AH_TEMPLATE([HAVE_SIGSET_T],
231 [Define HAVE_SIGSET_T you have the sigset_t type.])
232 AH_TEMPLATE([HAVE_SIGEMPTYSET],
233 [Define HAVE_SIGEMPTYSET if you have the sigemptyset macro.])
234 AH_TEMPLATE([EDIT_PGM],
235 [Define EDIT_PGM to your editor.])
236 AH_TEMPLATE([SECURE_COMPILE],
237 [Define SECURE_COMPILE=1 to build a secure version of less.])
239 # Checks for identifiers.
241 AC_MSG_CHECKING(for void)
242 AC_TRY_COMPILE(, [void *foo = 0;],
243 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_VOID)], [AC_MSG_RESULT(no)])
244 AC_MSG_CHECKING(for const)
245 AC_TRY_COMPILE(, [const int foo = 0;],
246 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CONST)], [AC_MSG_RESULT(no)])
247 AC_MSG_CHECKING(for time_t)
248 AC_TRY_COMPILE([#include <time.h>], [time_t t = 0;],
249 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIME_T)], [AC_MSG_RESULT(no)])
250 AC_MSG_CHECKING(for st_ino in struct stat)
251 AC_TRY_COMPILE([#include <sys/types.h>
252 #include <sys/stat.h>],
253 [struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;],
254 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STAT_INO)], [AC_MSG_RESULT(no)])
256 # Checks for ANSI function prototypes.
257 AC_MSG_CHECKING(for ANSI function prototypes)
258 AC_TRY_COMPILE([], [int f(int a) { return a; }],
259 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ANSI_PROTOS)], [AC_MSG_RESULT(no)])
261 # Checks for library functions.
263 AC_CHECK_FUNCS([fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod realpath])
265 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
266 AC_MSG_CHECKING(for memcpy)
270 #endif], [memcpy(0,0,0);],
271 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MEMCPY)], [AC_MSG_RESULT(no)])
273 AC_MSG_CHECKING(for strchr)
277 #endif], [strchr("x",'x');],
278 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRCHR)], [AC_MSG_RESULT(no)])
280 AC_MSG_CHECKING(for strstr)
284 #endif], [strstr("x","x");],
285 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRSTR)], [AC_MSG_RESULT(no)])
287 # Some systems have termios.h but not the corresponding functions.
288 AC_CHECK_FUNC(tcgetattr, AC_DEFINE(HAVE_TERMIOS_FUNCS))
290 AC_MSG_CHECKING(for fileno)
294 #endif], [static int x; x = fileno(stdin);],
295 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FILENO)], [AC_MSG_RESULT(no)])
297 AC_MSG_CHECKING(for strerror)
307 #endif], [static char *x; x = strerror(0);],
308 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRERROR)], [AC_MSG_RESULT(no)])
310 AC_MSG_CHECKING(for sys_errlist)
311 AC_TRY_LINK(, [extern char *sys_errlist[]; static char **x; x = sys_errlist;],
312 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYS_ERRLIST)], [AC_MSG_RESULT(no)])
314 AC_CHECK_TYPES([sigset_t],,,[#include <signal.h>])
316 AC_MSG_CHECKING(for sigemptyset)
319 ], [sigset_t s; sigemptyset(&s);],
320 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGEMPTYSET)], [AC_MSG_RESULT(no)])
323 AC_MSG_CHECKING(for errno)
327 #endif], [static int x; x = errno;],
328 [AC_MSG_RESULT(yes - in errno.h); AC_DEFINE(HAVE_ERRNO) have_errno=yes])
329 if test $have_errno = no; then
333 #endif], [extern int errno; static int x; x = errno;],
334 [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_ERRNO) AC_DEFINE(MUST_DEFINE_ERRNO)],
338 AC_MSG_CHECKING(for locale)
339 AC_TRY_LINK([#include <locale.h>
341 #include <langinfo.h>], [setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);],
342 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LOCALE)], [AC_MSG_RESULT(no)])
344 AC_MSG_CHECKING(for ctype functions)
348 #endif], [static int x; x = isupper(x); x = tolower(x); x = toupper(x);],
349 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_UPPER_LOWER)], [AC_MSG_RESULT(no)])
351 AC_MSG_CHECKING(for wctype functions)
352 AC_TRY_LINK([#include <wctype.h>], [iswlower(0); iswupper(0); towlower(0); towupper(0);],
353 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_WCTYPE)], [AC_MSG_RESULT(no)])
355 # Checks for external variable ospeed in the termcap library.
357 AC_MSG_CHECKING(termcap for ospeed)
359 #include <sys/types.h>
365 #endif], [ospeed = 0;],
366 [AC_MSG_RESULT(yes - in termcap.h); AC_DEFINE(HAVE_OSPEED) have_ospeed=yes])
367 if test $have_ospeed = no; then
368 AC_TRY_LINK(, [extern short ospeed; ospeed = 0;],
369 [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_OSPEED) AC_DEFINE(MUST_DEFINE_OSPEED)],
373 # Compile in secure mode?
375 [ --with-secure Compile in secure mode],
376 AC_DEFINE(SECURE_COMPILE, 1), AC_DEFINE(SECURE_COMPILE, 0))
378 # Should we use floating point?
379 AC_MSG_CHECKING(for floating point)
380 AC_ARG_WITH(no-float,
381 [ --with-no-float Do not use floating point],
382 WANT_NO_FLOAT=1, WANT_NO_FLOAT=0)
383 if test $WANT_NO_FLOAT = 0; then
384 AC_TRY_LINK(, [double f1 = 12.5; double f2 = f1*f1/2.5;],
385 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FLOAT)], [AC_MSG_RESULT(no)])
387 AC_MSG_RESULT(disabled by user)
390 # Checks for regular expression functions.
392 have_posix_regex=unknown
395 # Select a regular expression library.
398 [ --with-regex=LIB select regular expression library (LIB is one of auto,none,gnu,pcre,pcre2,posix,regcmp,re_comp,regcomp,regcomp-local) [[auto]]],
399 WANT_REGEX="$withval")
401 if test $have_regex = no; then
402 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
403 # Some versions of Solaris have a regcomp() function, but it doesn't work!
404 # So we run a test program. If we're cross-compiling, do it the old way.
405 AC_MSG_CHECKING(for POSIX regcomp)
407 #include <sys/types.h>
409 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
410 if (regcomp(&r, "abc", 0)) exit(1);
411 if (regexec(&r, text, 1, &rm, 0)) exit(1);
413 if (rm.rm_so != 1) exit(1); /* check for correct offset */
415 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
418 have_posix_regex=yes, have_posix_regex=no, have_posix_regex=unknown)
419 if test $have_posix_regex = yes; then
421 AC_DEFINE(HAVE_POSIX_REGCOMP) supported_regex="$supported_regex posix"
423 elif test $have_posix_regex = unknown; then
425 #include <sys/types.h>
427 [regex_t *r; regfree(r);],
429 AC_DEFINE(HAVE_POSIX_REGCOMP) have_regex=yes; supported_regex="$supported_regex posix")
436 if test $have_regex = no; then
437 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre2; then
438 AC_CHECK_LIB(pcre2-8, pcre2_compile_8,
439 [AC_DEFINE(HAVE_PCRE2) LIBS="$LIBS -lpcre2-8" have_regex=yes; supported_regex="$supported_regex pcre2"], [])
443 if test $have_regex = no; then
444 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
445 AC_CHECK_LIB(pcre, pcre_compile,
446 [AC_DEFINE(HAVE_PCRE) LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supported_regex pcre"], [])
450 if test $have_regex = no; then
451 if test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
452 AC_CHECK_LIB(c, re_compile_pattern,
453 [AC_DEFINE(HAVE_GNU_REGEX) have_regex=yes; supported_regex="$supported_regex gnu"], [])
457 if test $have_regex = no; then
458 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
459 AC_CHECK_FUNC(regcmp,
460 [AC_DEFINE(HAVE_REGCMP) have_regex=yes; supported_regex="$supported_regex regcmp"],[])
464 if test $have_regex = no; then
465 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
466 AC_MSG_CHECKING(for V8 regcomp)
468 #include "regexp.h"], [regcomp("");],
469 [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_V8_REGCOMP) have_regex=yes; supported_regex="$supported_regex regcomp"],[AC_MSG_RESULT(no)])
473 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
474 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
475 AC_MSG_RESULT(using V8 regcomp -- local source); AC_DEFINE(HAVE_V8_REGCOMP)
476 supported_regex="$supported_regex regcomp-local"
477 AC_DEFINE(HAVE_REGEXEC2) REGEX_O='regexp.$(O)' AC_SUBST(REGEX_O) have_regex=yes
481 if test $have_regex = no; then
482 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
483 AC_MSG_CHECKING(for re_comp)
484 AC_CHECK_FUNC(re_comp,
485 [AC_DEFINE(HAVE_RE_COMP) have_regex=yes; supported_regex="$supported_regex re_comp"],[])
489 if test $have_regex = no; then
490 if test $WANT_REGEX = auto -o $WANT_REGEX = none; then
491 AC_MSG_RESULT(using no regex)
493 AC_MSG_WARN(cannot find regular expression library)
495 AC_DEFINE(NO_REGEX) supported_regex="$supported_regex none"
498 AC_MSG_RESULT(regular expression library: $supported_regex)
501 [ --with-editor=PROGRAM use PROGRAM as the default editor [[vi]]],
502 AC_DEFINE_UNQUOTED(EDIT_PGM, "$withval"), AC_DEFINE(EDIT_PGM, "vi"))
505 /* Unix definition file for less. -*- C -*-
507 * This file has 3 sections:
509 * Settings always true on Unix.
510 * Settings automatically determined by configure.
512 * * * * * * WARNING * * * * * *
513 * If you edit defines.h by hand, do "touch stamp-h" before you run make
514 * so config.status doesn't overwrite your changes.
517 /* User preferences. */
520 * SECURE is 1 if you wish to disable a bunch of features in order to
521 * be safe to run by unprivileged users.
522 * SECURE_COMPILE is set by the --with-secure configure option.
524 #define SECURE SECURE_COMPILE
527 * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
528 * (This is possible only if your system supplies the system() function.)
530 #define SHELL_ESCAPE (!SECURE)
533 * EXAMINE is 1 if you wish to allow examining files by name from within less.
535 #define EXAMINE (!SECURE)
538 * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
539 * to complete filenames at prompts.
541 #define TAB_COMPLETE_FILENAME (!SECURE)
544 * CMD_HISTORY is 1 if you wish to allow keys to cycle through
545 * previous commands at prompts.
547 #define CMD_HISTORY 1
550 * HILITE_SEARCH is 1 if you wish to have search targets to be
551 * displayed in standout mode.
553 #define HILITE_SEARCH 1
556 * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
557 * (This is possible only if your system supplies the system() function.)
558 * EDIT_PGM is the name of the (default) editor to be invoked.
560 #define EDITOR (!SECURE)
563 * TAGS is 1 if you wish to support tag files.
565 #define TAGS (!SECURE)
568 * USERFILE is 1 if you wish to allow a .less file to specify
569 * user-defined key bindings.
571 #define USERFILE (!SECURE)
574 * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
575 * This will generally work if your system provides the "popen" function
576 * and the "echo" shell command.
578 #define GLOB (!SECURE)
581 * PIPEC is 1 if you wish to have the "|" command
582 * which allows the user to pipe data into a shell command.
584 #define PIPEC (!SECURE)
587 * LOGFILE is 1 if you wish to allow the -o option (to create log files).
589 #define LOGFILE (!SECURE)
592 * GNU_OPTIONS is 1 if you wish to support the GNU-style command
593 * line options --help and --version.
595 #define GNU_OPTIONS 1
598 * ONLY_RETURN is 1 if you want RETURN to be the only input which
599 * will continue past an error message.
600 * Otherwise, any key will continue past an error message.
602 #define ONLY_RETURN 0
605 * LESSKEYFILE is the filename of the default lesskey output file
606 * (in the HOME directory).
607 * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
608 * DEF_LESSKEYINFILE is the filename of the default lesskey input
609 * (in the HOME directory).
610 * LESSHISTFILE is the filename of the history file
611 * (in the HOME directory).
613 #define LESSKEYFILE ".less"
614 #define LESSKEYFILE_SYS SYSDIR "/sysless"
615 #define DEF_LESSKEYINFILE ".lesskey"
616 #define LESSHISTFILE ".lesshst"
619 /* Settings always true on Unix. */
622 * Define MSDOS_COMPILER if compiling under Microsoft C.
624 #define MSDOS_COMPILER 0
627 * Pathname separator character.
629 #define PATHNAME_SEP "/"
632 * The value returned from tgetent on success.
633 * Some HP-UX systems return 0 on success.
638 * HAVE_ANSI_PROTOS is 1 if your compiler supports ANSI function prototypes.
640 #define HAVE_ANSI_PROTOS 1
643 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
645 #define HAVE_SYS_TYPES_H 1
648 * Define if you have the <sgstat.h> header file.
653 * HAVE_PERROR is 1 if your system has the perror() call.
654 * (Actually, if it has sys_errlist, sys_nerr and errno.)
656 #define HAVE_PERROR 1
659 * HAVE_TIME is 1 if your system has the time() call.
664 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
669 * Default shell metacharacters and meta-escape character.
671 #define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~{},"
672 #define DEF_METAESCAPE "\\"
675 * HAVE_DUP is 1 if your system has the dup() call.
679 /* Define to 1 if you have the memcpy() function. */
680 #define HAVE_MEMCPY 1
682 /* Define to 1 if you have the strchr() function. */
683 #define HAVE_STRCHR 1
685 /* Define to 1 if you have the strstr() function. */
686 #define HAVE_STRSTR 1
689 * Sizes of various buffers.
691 #if 0 /* old sizes for small memory machines */
692 #define CMDBUF_SIZE 512 /* Buffer for multichar commands */
693 #define UNGOT_SIZE 100 /* Max chars to unget() */
694 #define LINEBUF_SIZE 1024 /* Max size of line in input file */
695 #define OUTBUF_SIZE 1024 /* Output buffer */
696 #define PROMPT_SIZE 200 /* Max size of prompt string */
697 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
698 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
699 #define TAGLINE_SIZE 512 /* Max size of line in tags file */
700 #define TABSTOP_MAX 32 /* Max number of custom tab stops */
701 #else /* more reasonable sizes for modern machines */
702 #define CMDBUF_SIZE 2048 /* Buffer for multichar commands */
703 #define UNGOT_SIZE 200 /* Max chars to unget() */
704 #define LINEBUF_SIZE 1024 /* Initial max size of line in input file */
705 #define OUTBUF_SIZE 1024 /* Output buffer */
706 #define PROMPT_SIZE 2048 /* Max size of prompt string */
707 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
708 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
709 #define TAGLINE_SIZE 1024 /* Max size of line in tags file */
710 #define TABSTOP_MAX 128 /* Max number of custom tab stops */
713 /* Settings automatically determined by configure. */
716 AC_CONFIG_FILES([Makefile])