]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/less/configure.ac
This commit was generated by cvs2svn to compensate for changes in r172767,
[FreeBSD/FreeBSD.git] / contrib / less / configure.ac
1 # Process this file with autoconf to produce a configure script.
2
3 # Copyright (C) 1984-2007  Mark Nudelman
4 #
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.
7 #
8 # For more information about less, or for information on how to 
9 # contact the author, see the README file.
10
11 # Autoconf initialization.
12 AC_INIT(less, 1)
13 AC_CONFIG_SRCDIR([forwback.c])
14 AC_CONFIG_HEADER([defines.h])
15
16 # Checks for programs.
17 AC_PROG_CC
18 AC_ISC_POSIX
19 AC_PROG_GCC_TRADITIONAL
20 AC_PROG_INSTALL
21
22 # Checks for compilation model.
23 AC_SYS_LARGEFILE
24
25 # Checks for general libraries.
26 AC_CHECK_LIB(xcurses, initscr, [have_xcurses=yes], [have_xcurses=no])
27 AC_CHECK_LIB(ncursesw, initscr, [have_ncursesw=yes], [have_ncursesw=no])
28 AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
29 AC_CHECK_LIB(curses, initscr, [have_curses=yes], [have_curses=no])
30 AC_CHECK_LIB(termcap, tgetent, [have_termcap=yes], [have_termcap=no])
31 AC_CHECK_LIB(termlib, tgetent, [have_termlib=yes], [have_termlib=no])
32 # Regular expressions (regcmp) are in -lgen on Solaris 2,
33 # and in -lintl on SCO Unix.
34 AC_CHECK_LIB(gen, regcmp)
35 AC_CHECK_LIB(intl, regcmp)
36 AC_CHECK_LIB(PW, regcmp)
37
38 # Checks for terminal libraries
39 AC_MSG_CHECKING([for working terminal libraries])
40 TERMLIBS=
41
42 # Check for systems where curses is broken.
43 curses_broken=0
44 if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
45 if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
46    curses_broken=1
47 fi
48 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
49    curses_broken=1
50 fi
51 fi
52
53 if test $curses_broken = 0; then
54 # -- Try xcurses.
55 if test "x$TERMLIBS" = x; then
56   if test $have_xcurses = yes; then
57     TERMLIBS="-lxcurses"
58     SAVE_LIBS=$LIBS
59     LIBS="$LIBS $TERMLIBS"
60     AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
61       [termok=yes], [termok=no])
62     LIBS=$SAVE_LIBS
63     if test $termok = no; then TERMLIBS=""; fi
64   fi
65 fi
66
67 # -- Try ncursesw.
68 if test "x$TERMLIBS" = x; then
69   if test $have_ncursesw = yes; then
70     TERMLIBS="-lncursesw"
71     SAVE_LIBS=$LIBS
72     LIBS="$LIBS $TERMLIBS"
73     AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
74       [termok=yes], [termok=no])
75     LIBS=$SAVE_LIBS
76     if test $termok = no; then TERMLIBS=""; fi
77   fi
78 fi
79
80 # -- Try ncurses.
81 if test "x$TERMLIBS" = x; then
82   if test $have_ncurses = yes; then
83     TERMLIBS="-lncurses"
84     SAVE_LIBS=$LIBS
85     LIBS="$LIBS $TERMLIBS"
86     AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
87       [termok=yes], [termok=no])
88     LIBS=$SAVE_LIBS
89     if test $termok = no; then TERMLIBS=""; fi
90   fi
91 fi
92
93 # -- Try curses.
94 if test "x$TERMLIBS" = x; then
95   if test $have_curses = yes; then
96     TERMLIBS="-lcurses"
97     SAVE_LIBS=$LIBS
98     LIBS="$LIBS $TERMLIBS"
99     AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
100       [termok=yes], [termok=no])
101     LIBS=$SAVE_LIBS
102     if test $termok = no; then TERMLIBS=""; fi
103   fi
104 fi
105
106 # -- Try curses & termcap.
107 if test "x$TERMLIBS" = x; then
108   if test $have_curses = yes; then
109   if test $have_termcap = yes; then
110     TERMLIBS="-lcurses -ltermcap"
111     SAVE_LIBS=$LIBS
112     LIBS="$LIBS $TERMLIBS"
113     AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
114       [termok=yes], [termok=no])
115     LIBS=$SAVE_LIBS
116     if test $termok = no; then TERMLIBS=""; fi
117   fi
118   fi
119 fi
120 fi
121
122 # -- Try termcap.
123 if test "x$TERMLIBS" = x; then
124   if test $have_termcap = yes; then
125     TERMLIBS="-ltermcap"
126     SAVE_LIBS=$LIBS
127     LIBS="$LIBS $TERMLIBS"
128     AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
129       [termok=yes], [termok=no])
130     LIBS=$SAVE_LIBS
131     if test $termok = no; then TERMLIBS=""; fi
132   fi
133 fi
134
135 # -- Try termlib.
136 if test "x$TERMLIBS" = x; then
137   if test $have_termlib = yes; then
138     TERMLIBS="-lcurses -ltermlib"
139     SAVE_LIBS=$LIBS
140     LIBS="$LIBS $TERMLIBS"
141     AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
142       [termok=yes], [termok=no])
143     LIBS=$SAVE_LIBS
144     if test $termok = no; then TERMLIBS=""; fi
145   fi
146 fi
147
148 if test "x$TERMLIBS" = x; then
149   AC_MSG_RESULT(Cannot find terminal libraries - configure failed)
150   exit 1
151 fi
152 AC_MSG_RESULT(using $TERMLIBS)
153 LIBS="$LIBS $TERMLIBS"
154
155 # Checks for header files.
156 AC_HEADER_STDC
157 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])
158
159 # Checks for typedefs, structures, and compiler characteristics.
160 AC_HEADER_STAT
161 AC_C_CONST
162 AC_TYPE_OFF_T
163 AC_TYPE_SIZE_T
164 AC_HEADER_TIME
165
166 # Autoheader templates for symbols defined later by AC_DEFINE.
167 AH_TEMPLATE([HAVE_POSIX_REGCOMP],
168         [POSIX regcomp() and regex.h])
169 AH_TEMPLATE([HAVE_PCRE],
170         [PCRE (Perl-compatible regular expression) library])
171 AH_TEMPLATE([HAVE_RE_COMP],
172         [BSD re_comp()])
173 AH_TEMPLATE([HAVE_REGCMP],
174         [System V regcmp()])
175 AH_TEMPLATE([HAVE_V8_REGCOMP],
176         [Henry Spencer V8 regcomp() and regexp.h])
177 AH_TEMPLATE([NO_REGEX],
178         [pattern matching is supported, but without metacharacters.])
179 AH_TEMPLATE([HAVE_REGEXEC2],
180         [])
181 AH_TEMPLATE([HAVE_VOID],
182         [Define HAVE_VOID if your compiler supports the "void" type.])
183 AH_TEMPLATE([HAVE_CONST],
184         [Define HAVE_CONST if your compiler supports the "const" modifier.])
185 AH_TEMPLATE([HAVE_TIME_T],
186         [Define HAVE_TIME_T if your system supports the "time_t" type.])
187 AH_TEMPLATE([HAVE_STRERROR],
188         [Define HAVE_STRERROR if you have the strerror() function.])
189 AH_TEMPLATE([HAVE_FILENO],
190         [Define HAVE_FILENO if you have the fileno() macro.])
191 AH_TEMPLATE([HAVE_ERRNO],
192         [Define HAVE_ERRNO if you have the errno variable.])
193 AH_TEMPLATE([MUST_DEFINE_ERRNO],
194         [Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.])
195 AH_TEMPLATE([HAVE_SYS_ERRLIST],
196         [Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable.])
197 AH_TEMPLATE([HAVE_OSPEED],
198         [Define HAVE_OSPEED if your termcap library has the ospeed variable.])
199 AH_TEMPLATE([MUST_DEFINE_OSPEED],
200         [Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in termcap.h.])
201 AH_TEMPLATE([HAVE_LOCALE],
202         [Define HAVE_LOCALE if you have locale.h and setlocale.])
203 AH_TEMPLATE([HAVE_TERMIOS_FUNCS],
204         [Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr.])
205 AH_TEMPLATE([HAVE_UPPER_LOWER],
206         [Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower.])
207 AH_TEMPLATE([HAVE_SIGSET_T],
208         [Define HAVE_SIGSET_T you have the sigset_t type.])
209 AH_TEMPLATE([HAVE_SIGEMPTYSET],
210         [Define HAVE_SIGEMPTYSET if you have the sigemptyset macro.])
211 AH_TEMPLATE([EDIT_PGM],
212         [Define EDIT_PGM to your editor.])
213 AH_TEMPLATE([SECURE_COMPILE],
214         [Define SECURE_COMPILE=1 to build a secure version of less.])
215
216 # Checks for identifiers.
217 AC_TYPE_OFF_T
218 AC_MSG_CHECKING(for void)
219 AC_TRY_COMPILE(, [void *foo = 0;], 
220   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_VOID)], [AC_MSG_RESULT(no)])
221 AC_MSG_CHECKING(for const)
222 AC_TRY_COMPILE(, [const int foo = 0;], 
223   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CONST)], [AC_MSG_RESULT(no)])
224 AC_MSG_CHECKING(for time_t)
225 AC_TRY_COMPILE([#include <time.h>], [time_t t = 0;],
226   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIME_T)], [AC_MSG_RESULT(no)])
227
228 # Checks for library functions.
229 AC_TYPE_SIGNAL
230 AC_CHECK_FUNCS([fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod])
231
232 # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
233 AC_MSG_CHECKING(for memcpy)
234 AC_TRY_LINK([
235 #if HAVE_STRING_H
236 #include <string.h>
237 #endif], [memcpy(0,0,0);],
238   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MEMCPY)], [AC_MSG_RESULT(no)])
239
240 AC_MSG_CHECKING(for strchr)
241 AC_TRY_LINK([
242 #if HAVE_STRING_H
243 #include <string.h>
244 #endif], [strchr("x",'x');],
245   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRCHR)], [AC_MSG_RESULT(no)])
246
247 AC_MSG_CHECKING(for strstr)
248 AC_TRY_LINK([
249 #if HAVE_STRING_H
250 #include <string.h>
251 #endif], [strstr("x","x");],
252   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRSTR)], [AC_MSG_RESULT(no)])
253
254 # Some systems have termios.h but not the corresponding functions.
255 AC_CHECK_FUNC(tcgetattr, AC_DEFINE(HAVE_TERMIOS_FUNCS))
256
257 AC_MSG_CHECKING(for fileno)
258 AC_TRY_LINK([
259 #if HAVE_STDIO_H
260 #include <stdio.h>
261 #endif], [static int x; x = fileno(stdin);],
262   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FILENO)], [AC_MSG_RESULT(no)])
263
264 AC_MSG_CHECKING(for strerror)
265 AC_TRY_LINK([
266 #if HAVE_STDIO_H
267 #include <stdio.h>
268 #endif
269 #if HAVE_STRING_H
270 #include <string.h>
271 #endif
272 #if HAVE_ERRNO_H
273 #include <errno.h>
274 #endif], [static char *x; x = strerror(0);],
275   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRERROR)], [AC_MSG_RESULT(no)])
276
277 AC_MSG_CHECKING(for sys_errlist)
278 AC_TRY_LINK(, [extern char *sys_errlist[]; static char **x; x = sys_errlist;], 
279   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYS_ERRLIST)], [AC_MSG_RESULT(no)])
280
281 AC_CHECK_TYPES([sigset_t],,,[#include <signal.h>])
282
283 AC_MSG_CHECKING(for sigemptyset)
284 AC_TRY_LINK([
285 #include <signal.h>
286 ], [sigset_t s; sigemptyset(&s);],
287   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGEMPTYSET)], [AC_MSG_RESULT(no)])
288
289 have_errno=no
290 AC_MSG_CHECKING(for errno)
291 AC_TRY_LINK([
292 #if HAVE_ERRNO_H
293 #include <errno.h>
294 #endif], [static int x; x = errno;], 
295   [AC_MSG_RESULT(yes - in errno.h); AC_DEFINE(HAVE_ERRNO) have_errno=yes])
296 if test $have_errno = no; then
297 AC_TRY_LINK([
298 #if HAVE_ERRNO_H
299 #include <errno.h>
300 #endif], [extern int errno; static int x; x = errno;], 
301   [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_ERRNO) AC_DEFINE(MUST_DEFINE_ERRNO)],
302   [AC_MSG_RESULT(no)])
303 fi
304
305 AC_MSG_CHECKING(for locale)
306 AC_TRY_LINK([#include <locale.h>
307 #include <ctype.h>
308 #include <langinfo.h>], [setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);],
309   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LOCALE)], [AC_MSG_RESULT(no)])
310 AC_MSG_CHECKING(for ctype functions)
311 AC_TRY_LINK([
312 #if HAVE_CTYPE_H
313 #include <ctype.h>
314 #endif], [static int x; x = isupper(x); x = tolower(x); x = toupper(x);],
315   [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_UPPER_LOWER)], [AC_MSG_RESULT(no)])
316
317 # Checks for external variable ospeed in the termcap library.
318 have_ospeed=no
319 AC_MSG_CHECKING(termcap for ospeed)
320 AC_TRY_LINK([
321 #include <sys/types.h>
322 #if HAVE_TERMIOS_H
323 #include <termios.h>
324 #endif
325 #if HAVE_TERMCAP_H
326 #include <termcap.h>
327 #endif], [ospeed = 0;],
328 [AC_MSG_RESULT(yes - in termcap.h); AC_DEFINE(HAVE_OSPEED) have_ospeed=yes])
329 if test $have_ospeed = no; then
330 AC_TRY_LINK(, [extern short ospeed; ospeed = 0;], 
331   [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_OSPEED) AC_DEFINE(MUST_DEFINE_OSPEED)],
332   [AC_MSG_RESULT(no)])
333 fi
334
335 # Compile in secure mode?
336 AC_ARG_WITH(secure,
337   [  --with-secure  Compile in secure mode],
338   AC_DEFINE(SECURE_COMPILE, 1), AC_DEFINE(SECURE_COMPILE, 0))
339
340 # Checks for regular expression functions.
341 have_regex=no
342 have_posix_regex=unknown
343 AC_MSG_CHECKING(for regcomp)
344
345 # Select a regular expression library.
346 WANT_REGEX=auto
347 AC_ARG_WITH(regex,
348   [  --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local}  Select a regular expression library  [auto]],
349   WANT_REGEX="$withval")
350
351 if test $have_regex = no; then
352 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
353 # Some versions of Solaris have a regcomp() function, but it doesn't work!
354 # So we run a test program.  If we're cross-compiling, do it the old way.
355 AC_TRY_RUN([
356 #include <sys/types.h>
357 #include <regex.h>
358 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
359 if (regcomp(&r, "abc", 0)) exit(1);
360 if (regexec(&r, text, 1, &rm, 0)) exit(1);
361 #ifndef __WATCOMC__
362 if (rm.rm_so != 1) exit(1); /* check for correct offset */
363 #else
364 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
365 #endif
366 exit(0); }],
367   have_posix_regex=yes, have_posix_regex=no, have_posix_regex=unknown)
368 if test $have_posix_regex = yes; then
369   AC_MSG_RESULT(using POSIX regcomp)
370   AC_DEFINE(HAVE_POSIX_REGCOMP)
371   have_regex=yes
372 elif test $have_posix_regex = unknown; then
373   AC_TRY_LINK([
374 #include <sys/types.h>
375 #include <regex.h>],
376   [regex_t *r; regfree(r);],
377   AC_MSG_RESULT(using POSIX regcomp)
378   AC_DEFINE(HAVE_POSIX_REGCOMP) have_regex=yes)
379 else
380   AC_MSG_RESULT(no)
381 fi
382 fi
383 fi
384
385 if test $have_regex = no; then
386 if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
387 AC_CHECK_LIB(pcre, pcre_compile, 
388 [AC_MSG_RESULT(using pcre); AC_DEFINE(HAVE_PCRE) LIBS="$LIBS -lpcre" have_regex=yes], [])
389 fi
390 fi
391
392 if test $have_regex = no; then
393 if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
394 AC_CHECK_FUNC(regcmp, 
395 AC_MSG_RESULT(using regcmp); AC_DEFINE(HAVE_REGCMP) have_regex=yes)
396 fi
397 fi
398
399 if test $have_regex = no; then
400 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
401 AC_TRY_LINK([
402 #include "regexp.h"], [regcomp("");],
403 AC_MSG_RESULT(using V8 regcomp); AC_DEFINE(HAVE_V8_REGCOMP) have_regex=yes)
404 fi
405 fi
406
407 if test $have_regex = no && test -f ${srcdir}/regexp.c; then
408 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
409 AC_MSG_RESULT(using V8 regcomp -- local source); AC_DEFINE(HAVE_V8_REGCOMP) AC_DEFINE(HAVE_REGEXEC2) REGEX_O='regexp.$(O)' AC_SUBST(REGEX_O) have_regex=yes
410 fi
411 fi
412
413 if test $have_regex = no; then
414 if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
415 AC_MSG_RESULT(using re_comp); AC_CHECK_FUNC(re_comp, AC_DEFINE(HAVE_RE_COMP) have_regex=yes)
416 fi
417 fi
418
419 if test $have_regex = no; then
420 AC_MSG_RESULT(cannot find regular expression library); AC_DEFINE(NO_REGEX)
421 fi
422
423 AC_ARG_WITH(editor,
424   [  --with-editor=PROGRAM   use PROGRAM as the default editor [vi]],
425   AC_DEFINE_UNQUOTED(EDIT_PGM, "$withval"), AC_DEFINE(EDIT_PGM, "vi"))
426
427 AH_TOP([
428 /* Unix definition file for less.  -*- C -*-
429  *
430  * This file has 3 sections:
431  * User preferences.
432  * Settings always true on Unix.
433  * Settings automatically determined by configure.
434  *
435  * * * * * *  WARNING  * * * * * *
436  * If you edit defines.h by hand, do "touch stamp-h" before you run make
437  * so config.status doesn't overwrite your changes.
438  */
439
440 /* User preferences.  */
441
442 /*
443  * SECURE is 1 if you wish to disable a bunch of features in order to
444  * be safe to run by unprivileged users.
445  * SECURE_COMPILE is set by the --with-secure configure option.
446  */
447 #define SECURE          SECURE_COMPILE
448
449 /*
450  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
451  * (This is possible only if your system supplies the system() function.)
452  */
453 #define SHELL_ESCAPE    (!SECURE)
454
455 /*
456  * EXAMINE is 1 if you wish to allow examining files by name from within less.
457  */
458 #define EXAMINE         (!SECURE)
459
460 /*
461  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
462  * to complete filenames at prompts.
463  */
464 #define TAB_COMPLETE_FILENAME   (!SECURE)
465
466 /*
467  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
468  * previous commands at prompts.
469  */
470 #define CMD_HISTORY     1
471
472 /*
473  * HILITE_SEARCH is 1 if you wish to have search targets to be 
474  * displayed in standout mode.
475  */
476 #define HILITE_SEARCH   1
477
478 /*
479  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
480  * (This is possible only if your system supplies the system() function.)
481  * EDIT_PGM is the name of the (default) editor to be invoked.
482  */
483 #define EDITOR          (!SECURE)
484
485 /*
486  * TAGS is 1 if you wish to support tag files.
487  */
488 #define TAGS            (!SECURE)
489
490 /*
491  * USERFILE is 1 if you wish to allow a .less file to specify 
492  * user-defined key bindings.
493  */
494 #define USERFILE        (!SECURE)
495
496 /*
497  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
498  * This will generally work if your system provides the "popen" function
499  * and the "echo" shell command.
500  */
501 #define GLOB            (!SECURE)
502
503 /*
504  * PIPEC is 1 if you wish to have the "|" command
505  * which allows the user to pipe data into a shell command.
506  */
507 #define PIPEC           (!SECURE)
508
509 /*
510  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
511  */
512 #define LOGFILE         (!SECURE)
513
514 /*
515  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
516  * line options --help and --version.
517  */
518 #define GNU_OPTIONS     1
519
520 /*
521  * ONLY_RETURN is 1 if you want RETURN to be the only input which
522  * will continue past an error message.
523  * Otherwise, any key will continue past an error message.
524  */
525 #define ONLY_RETURN     0
526
527 /*
528  * LESSKEYFILE is the filename of the default lesskey output file 
529  * (in the HOME directory).
530  * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
531  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
532  * (in the HOME directory).
533  * LESSHISTFILE is the filename of the history file
534  * (in the HOME directory).
535  */
536 #define LESSKEYFILE             ".less"
537 #define LESSKEYFILE_SYS         SYSDIR "/sysless"
538 #define DEF_LESSKEYINFILE       ".lesskey"
539 #define LESSHISTFILE            ".lesshst"
540
541
542 /* Settings always true on Unix.  */
543
544 /*
545  * Define MSDOS_COMPILER if compiling under Microsoft C.
546  */
547 #define MSDOS_COMPILER  0
548
549 /*
550  * Pathname separator character.
551  */
552 #define PATHNAME_SEP    "/"
553
554 /*
555  * The value returned from tgetent on success.
556  * Some HP-UX systems return 0 on success.
557  */
558 #define TGETENT_OK  1
559
560 /*
561  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
562  */
563 #define HAVE_SYS_TYPES_H        1
564
565 /*
566  * Define if you have the <sgstat.h> header file.
567  */
568 #undef HAVE_SGSTAT_H
569
570 /*
571  * HAVE_PERROR is 1 if your system has the perror() call.
572  * (Actually, if it has sys_errlist, sys_nerr and errno.)
573  */
574 #define HAVE_PERROR     1
575
576 /*
577  * HAVE_TIME is 1 if your system has the time() call.
578  */
579 #define HAVE_TIME       1
580
581 /*
582  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
583  */
584 #define HAVE_SHELL      1
585
586 /*
587  * Default shell metacharacters and meta-escape character.
588  */
589 #define DEF_METACHARS   "; *?\t\n'\"()<>[]|&^`#\\$%=~"
590 #define DEF_METAESCAPE  "\\"
591
592 /* 
593  * HAVE_DUP is 1 if your system has the dup() call.
594  */
595 #define HAVE_DUP        1
596
597 /* Define to 1 if you have the memcpy() function. */
598 #define HAVE_MEMCPY 1
599
600 /* Define to 1 if you have the strchr() function. */
601 #define HAVE_STRCHR 1
602
603 /* Define to 1 if you have the strstr() function. */
604 #define HAVE_STRSTR 1
605
606 /*
607  * Sizes of various buffers.
608  */
609 #define CMDBUF_SIZE     512     /* Buffer for multichar commands */
610 #define UNGOT_SIZE      100     /* Max chars to unget() */
611 #define LINEBUF_SIZE    1024    /* Max size of line in input file */
612 #define OUTBUF_SIZE     1024    /* Output buffer */
613 #define PROMPT_SIZE     200     /* Max size of prompt string */
614 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
615 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
616 #define TAGLINE_SIZE    512     /* Max size of line in tags file */
617 #define TABSTOP_MAX     32      /* Max number of custom tab stops */
618
619 /* Settings automatically determined by configure.  */
620 ])
621
622 AC_CONFIG_FILES([Makefile])
623 AC_OUTPUT