1170260Sdelphij/* defines.h.  Generated from defines.h.in by configure.  */
2128349Stjr/* defines.h.in.  Generated from configure.ac by autoheader.  */
3128349Stjr
4128349Stjr
560789Sps/* Unix definition file for less.  -*- C -*-
660789Sps *
760789Sps * This file has 3 sections:
860789Sps * User preferences.
960789Sps * Settings always true on Unix.
1060789Sps * Settings automatically determined by configure.
1160789Sps *
1260789Sps * * * * * *  WARNING  * * * * * *
1360789Sps * If you edit defines.h by hand, do "touch stamp-h" before you run make
1460789Sps * so config.status doesn't overwrite your changes.
1560789Sps */
16128349Stjr
1760789Sps/* User preferences.  */
1860789Sps
1960789Sps/*
2060789Sps * SECURE is 1 if you wish to disable a bunch of features in order to
2160789Sps * be safe to run by unprivileged users.
22161479Sdelphij * SECURE_COMPILE is set by the --with-secure configure option.
2360789Sps */
24161479Sdelphij#define	SECURE		SECURE_COMPILE
2560789Sps
2660789Sps/*
2760789Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
2860789Sps * (This is possible only if your system supplies the system() function.)
2960789Sps */
3060789Sps#define	SHELL_ESCAPE	(!SECURE)
3160789Sps
3260789Sps/*
3360789Sps * EXAMINE is 1 if you wish to allow examining files by name from within less.
3460789Sps */
3560789Sps#define	EXAMINE		(!SECURE)
3660789Sps
3760789Sps/*
3860789Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
3960789Sps * to complete filenames at prompts.
4060789Sps */
4160789Sps#define	TAB_COMPLETE_FILENAME	(!SECURE)
4260789Sps
4360789Sps/*
4460789Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through
4560789Sps * previous commands at prompts.
4660789Sps */
4760789Sps#define	CMD_HISTORY	1
4860789Sps
4960789Sps/*
50170260Sdelphij * HILITE_SEARCH is 1 if you wish to have search targets to be
5160789Sps * displayed in standout mode.
5260789Sps */
5360789Sps#define	HILITE_SEARCH	1
5460789Sps
5560789Sps/*
5660789Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
5760789Sps * (This is possible only if your system supplies the system() function.)
5860789Sps * EDIT_PGM is the name of the (default) editor to be invoked.
5960789Sps */
6060789Sps#define	EDITOR		(!SECURE)
6160789Sps
6260789Sps/*
6360789Sps * TAGS is 1 if you wish to support tag files.
6460789Sps */
6560789Sps#define	TAGS		(!SECURE)
6660789Sps
6760789Sps/*
68170260Sdelphij * USERFILE is 1 if you wish to allow a .less file to specify
6960789Sps * user-defined key bindings.
7060789Sps */
7160789Sps#define	USERFILE	(!SECURE)
7260789Sps
7360789Sps/*
7460789Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
7560789Sps * This will generally work if your system provides the "popen" function
7660789Sps * and the "echo" shell command.
7760789Sps */
7860789Sps#define	GLOB		(!SECURE)
7960789Sps
8060789Sps/*
8160789Sps * PIPEC is 1 if you wish to have the "|" command
8260789Sps * which allows the user to pipe data into a shell command.
8360789Sps */
8460789Sps#define	PIPEC		(!SECURE)
8560789Sps
8660789Sps/*
87355504Sdelphij * LOGFILE is 1 if you wish to allow the -o option (to create log files).
8860789Sps */
8960789Sps#define	LOGFILE		(!SECURE)
9060789Sps
9160789Sps/*
9260789Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command
9360789Sps * line options --help and --version.
9460789Sps */
9560789Sps#define	GNU_OPTIONS	1
9660789Sps
9760789Sps/*
9860789Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which
9960789Sps * will continue past an error message.
10060789Sps * Otherwise, any key will continue past an error message.
10160789Sps */
10260789Sps#define	ONLY_RETURN	0
10360789Sps
10460789Sps/*
105170260Sdelphij * LESSKEYFILE is the filename of the default lesskey output file
10660789Sps * (in the HOME directory).
10760789Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
108170260Sdelphij * DEF_LESSKEYINFILE is the filename of the default lesskey input
10960789Sps * (in the HOME directory).
110161479Sdelphij * LESSHISTFILE is the filename of the history file
111161479Sdelphij * (in the HOME directory).
11260789Sps */
11360789Sps#define	LESSKEYFILE		".less"
114128350Stjr#define	LESSKEYFILE_SYS		"/etc/lesskey"
11560789Sps#define	DEF_LESSKEYINFILE	".lesskey"
116161479Sdelphij#define LESSHISTFILE		".lesshst"
11760789Sps
118128349Stjr
11960789Sps/* Settings always true on Unix.  */
12060789Sps
12160789Sps/*
12260789Sps * Define MSDOS_COMPILER if compiling under Microsoft C.
12360789Sps */
12460789Sps#define	MSDOS_COMPILER	0
12560789Sps
12660789Sps/*
12760789Sps * Pathname separator character.
12860789Sps */
12960789Sps#define	PATHNAME_SEP	"/"
13060789Sps
13160789Sps/*
132170260Sdelphij * The value returned from tgetent on success.
133170260Sdelphij * Some HP-UX systems return 0 on success.
134170260Sdelphij */
135170260Sdelphij#define TGETENT_OK  1
136170260Sdelphij
137170260Sdelphij/*
138330570Sdelphij * HAVE_ANSI_PROTOS	is 1 if your compiler supports ANSI function prototypes.
139330570Sdelphij */
140330570Sdelphij#define HAVE_ANSI_PROTOS	1
141330570Sdelphij
142330570Sdelphij/*
14360789Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
14460789Sps */
145128349Stjr#define HAVE_SYS_TYPES_H 1
14660789Sps
14760789Sps/*
14860789Sps * Define if you have the <sgstat.h> header file.
14960789Sps */
15060789Sps/* #undef HAVE_SGSTAT_H */
15160789Sps
15260789Sps/*
15360789Sps * HAVE_PERROR is 1 if your system has the perror() call.
15460789Sps * (Actually, if it has sys_errlist, sys_nerr and errno.)
15560789Sps */
15660789Sps#define	HAVE_PERROR	1
15760789Sps
15860789Sps/*
15960789Sps * HAVE_TIME is 1 if your system has the time() call.
16060789Sps */
16160789Sps#define	HAVE_TIME	1
16260789Sps
16360789Sps/*
16460789Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
16560789Sps */
16660789Sps#define	HAVE_SHELL	1
16760789Sps
16860789Sps/*
16960789Sps * Default shell metacharacters and meta-escape character.
17060789Sps */
171330570Sdelphij#define	DEF_METACHARS	"; *?\t\n'\"()<>[]|&^`#\\$%=~{},"
17260789Sps#define	DEF_METAESCAPE	"\\"
17360789Sps
174170260Sdelphij/*
17560789Sps * HAVE_DUP is 1 if your system has the dup() call.
17660789Sps */
17760789Sps#define	HAVE_DUP	1
17860789Sps
179170260Sdelphij/* Define to 1 if you have the memcpy() function. */
180170260Sdelphij#define HAVE_MEMCPY 1
181170260Sdelphij
182170260Sdelphij/* Define to 1 if you have the strchr() function. */
183170260Sdelphij#define HAVE_STRCHR 1
184170260Sdelphij
185170260Sdelphij/* Define to 1 if you have the strstr() function. */
186170260Sdelphij#define HAVE_STRSTR 1
187170260Sdelphij
18860789Sps/*
18960789Sps * Sizes of various buffers.
19060789Sps */
191242618Sdelphij#if 0 /* old sizes for small memory machines */
19260789Sps#define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
19360789Sps#define	UNGOT_SIZE	100	/* Max chars to unget() */
19460789Sps#define	LINEBUF_SIZE	1024	/* Max size of line in input file */
19560789Sps#define	OUTBUF_SIZE	1024	/* Output buffer */
19660789Sps#define	PROMPT_SIZE	200	/* Max size of prompt string */
19760789Sps#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
19860789Sps#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
19960789Sps#define	TAGLINE_SIZE	512	/* Max size of line in tags file */
20089023Sps#define	TABSTOP_MAX	32	/* Max number of custom tab stops */
201242584Sdelphij#else /* more reasonable sizes for modern machines */
202242584Sdelphij#define	CMDBUF_SIZE	2048	/* Buffer for multichar commands */
203242584Sdelphij#define	UNGOT_SIZE	200	/* Max chars to unget() */
204242584Sdelphij#define	LINEBUF_SIZE	1024	/* Initial max size of line in input file */
205242584Sdelphij#define	OUTBUF_SIZE	1024	/* Output buffer */
206242584Sdelphij#define	PROMPT_SIZE	2048	/* Max size of prompt string */
207242584Sdelphij#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
208242584Sdelphij#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
209242584Sdelphij#define	TAGLINE_SIZE	1024	/* Max size of line in tags file */
210242584Sdelphij#define	TABSTOP_MAX	128	/* Max number of custom tab stops */
211242584Sdelphij#endif
212128349Stjr
21360789Sps/* Settings automatically determined by configure.  */
21460789Sps
21560789Sps
216128349Stjr/* Define EDIT_PGM to your editor. */
217128349Stjr#define EDIT_PGM "vi"
21860789Sps
219128349Stjr/* Define HAVE_CONST if your compiler supports the "const" modifier. */
220128349Stjr#define HAVE_CONST 1
22160789Sps
222128349Stjr/* Define to 1 if you have the <ctype.h> header file. */
223128349Stjr#define HAVE_CTYPE_H 1
22460789Sps
225128349Stjr/* Define HAVE_ERRNO if you have the errno variable. */
226128349Stjr#define HAVE_ERRNO 1
22760789Sps
228128349Stjr/* Define to 1 if you have the <errno.h> header file. */
229128349Stjr#define HAVE_ERRNO_H 1
23060789Sps
231161479Sdelphij/* Define to 1 if you have the `fchmod' function. */
232161479Sdelphij#define HAVE_FCHMOD 1
233161479Sdelphij
234128349Stjr/* Define to 1 if you have the <fcntl.h> header file. */
235128349Stjr#define HAVE_FCNTL_H 1
23660789Sps
23760789Sps/* Define HAVE_FILENO if you have the fileno() macro. */
23860789Sps#define HAVE_FILENO 1
23960789Sps
240221718Sdelphij/* Define HAVE_FLOAT if your compiler supports the "double" type. */
241221718Sdelphij#define HAVE_FLOAT 1
242221718Sdelphij
243128349Stjr/* Define to 1 if you have the `fsync' function. */
244128349Stjr#define HAVE_FSYNC 1
24560789Sps
246237613Sdelphij/* GNU regex library */
247237613Sdelphij/* #undef HAVE_GNU_REGEX */
248237613Sdelphij
249128349Stjr/* Define to 1 if you have the <inttypes.h> header file. */
250128349Stjr#define HAVE_INTTYPES_H 1
25160789Sps
252128349Stjr/* Define to 1 if you have the <limits.h> header file. */
253128349Stjr#define HAVE_LIMITS_H 1
254128349Stjr
25560789Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */
25660789Sps#define HAVE_LOCALE 1
25760789Sps
258128349Stjr/* Define to 1 if you have the <memory.h> header file. */
259128349Stjr#define HAVE_MEMORY_H 1
26060789Sps
261369759Sgit2svn/* Define to 1 if you have the `nanosleep' function. */
262369759Sgit2svn#define HAVE_NANOSLEEP 1
263369759Sgit2svn
264128349Stjr/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
265128349Stjr#define HAVE_OSPEED 1
26663132Sps
267128349Stjr/* PCRE (Perl-compatible regular expression) library */
268128349Stjr/* #undef HAVE_PCRE */
26963132Sps
270355504Sdelphij/* PCRE2 (Perl-compatible regular expression) library */
271355504Sdelphij/* #undef HAVE_PCRE2 */
272355504Sdelphij
273369759Sgit2svn/* Define to 1 if you have the `poll' function. */
274369759Sgit2svn#define HAVE_POLL 1
275369759Sgit2svn
276128349Stjr/* Define to 1 if you have the `popen' function. */
277128349Stjr#define HAVE_POPEN 1
27860789Sps
279128349Stjr/* POSIX regcomp() and regex.h */
280128349Stjr#define HAVE_POSIX_REGCOMP 1
28160789Sps
282355504Sdelphij/* Define to 1 if you have the `realpath' function. */
283355504Sdelphij#define HAVE_REALPATH 1
284355504Sdelphij
285128349Stjr/* System V regcmp() */
286128349Stjr/* #undef HAVE_REGCMP */
28789023Sps
288128349Stjr/* */
289128349Stjr/* #undef HAVE_REGEXEC2 */
29060789Sps
291128349Stjr/* BSD re_comp() */
292128349Stjr/* #undef HAVE_RE_COMP */
29360789Sps
294128349Stjr/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
295128349Stjr#define HAVE_SIGEMPTYSET 1
296128349Stjr
297128349Stjr/* Define to 1 if you have the `sigprocmask' function. */
29863132Sps#define HAVE_SIGPROCMASK 1
29963132Sps
300128349Stjr/* Define to 1 if you have the `sigsetmask' function. */
30160789Sps#define HAVE_SIGSETMASK 1
30260789Sps
303170260Sdelphij/* Define to 1 if the system has the type `sigset_t'. */
304170260Sdelphij#define HAVE_SIGSET_T 1
305128349Stjr
306161479Sdelphij/* Define to 1 if you have the `snprintf' function. */
307161479Sdelphij#define HAVE_SNPRINTF 1
308161479Sdelphij
309128349Stjr/* Define to 1 if you have the `stat' function. */
31060789Sps#define HAVE_STAT 1
31160789Sps
312173685Sdelphij/* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
313173685Sdelphij#define HAVE_STAT_INO 1
314173685Sdelphij
315128349Stjr/* Define to 1 if you have the <stdint.h> header file. */
316128349Stjr#define HAVE_STDINT_H 1
31760789Sps
318128349Stjr/* Define to 1 if you have the <stdio.h> header file. */
319128349Stjr#define HAVE_STDIO_H 1
32060789Sps
321128349Stjr/* Define to 1 if you have the <stdlib.h> header file. */
322128349Stjr#define HAVE_STDLIB_H 1
32360789Sps
324128349Stjr/* Define HAVE_STRERROR if you have the strerror() function. */
325128349Stjr#define HAVE_STRERROR 1
32660789Sps
327128349Stjr/* Define to 1 if you have the <strings.h> header file. */
328128349Stjr#define HAVE_STRINGS_H 1
32960789Sps
330128349Stjr/* Define to 1 if you have the <string.h> header file. */
331128349Stjr#define HAVE_STRING_H 1
33260789Sps
333128349Stjr/* Define to 1 if you have the `system' function. */
334128349Stjr#define HAVE_SYSTEM 1
33560789Sps
336128349Stjr/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
337128349Stjr#define HAVE_SYS_ERRLIST 1
33860789Sps
339128349Stjr/* Define to 1 if you have the <sys/ioctl.h> header file. */
34060789Sps#define HAVE_SYS_IOCTL_H 1
34160789Sps
342128349Stjr/* Define to 1 if you have the <sys/stat.h> header file. */
343128349Stjr#define HAVE_SYS_STAT_H 1
344128349Stjr
345128349Stjr/* Define to 1 if you have the <sys/stream.h> header file. */
34660789Sps/* #undef HAVE_SYS_STREAM_H */
34760789Sps
348128349Stjr/* Define to 1 if you have the <sys/types.h> header file. */
349128349Stjr#define HAVE_SYS_TYPES_H 1
350128349Stjr
351128349Stjr/* Define to 1 if you have the <termcap.h> header file. */
35260789Sps#define HAVE_TERMCAP_H 1
35360789Sps
354128349Stjr/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
355128349Stjr#define HAVE_TERMIOS_FUNCS 1
35660789Sps
357128349Stjr/* Define to 1 if you have the <termios.h> header file. */
35860789Sps#define HAVE_TERMIOS_H 1
35960789Sps
360128349Stjr/* Define to 1 if you have the <termio.h> header file. */
361128349Stjr/* #undef HAVE_TERMIO_H */
362128349Stjr
363128349Stjr/* Define to 1 if you have the <time.h> header file. */
36460789Sps#define HAVE_TIME_H 1
36560789Sps
366128349Stjr/* Define HAVE_TIME_T if your system supports the "time_t" type. */
367128349Stjr#define HAVE_TIME_T 1
368128349Stjr
369369759Sgit2svn/* Define to 1 if you have the `ttyname' function. */
370369759Sgit2svn#define HAVE_TTYNAME 1
371369759Sgit2svn
372128349Stjr/* Define to 1 if you have the <unistd.h> header file. */
37360789Sps#define HAVE_UNISTD_H 1
37460789Sps
375128349Stjr/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
376128349Stjr#define HAVE_UPPER_LOWER 1
377128349Stjr
378369759Sgit2svn/* Define to 1 if you have the `usleep' function. */
379369759Sgit2svn#define HAVE_USLEEP 1
380369759Sgit2svn
381128349Stjr/* Henry Spencer V8 regcomp() and regexp.h */
382128349Stjr/* #undef HAVE_V8_REGCOMP */
383128349Stjr
384128349Stjr/* Define to 1 if you have the <values.h> header file. */
38560789Sps/* #undef HAVE_VALUES_H */
38660789Sps
387128349Stjr/* Define HAVE_VOID if your compiler supports the "void" type. */
388128349Stjr#define HAVE_VOID 1
38960789Sps
390173685Sdelphij/* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
391173685Sdelphij#define HAVE_WCTYPE 1
392173685Sdelphij
393173685Sdelphij/* Define to 1 if you have the <wctype.h> header file. */
394173685Sdelphij#define HAVE_WCTYPE_H 1
395173685Sdelphij
396128349Stjr/* Define to 1 if you have the `_setjmp' function. */
397128349Stjr#define HAVE__SETJMP 1
39860789Sps
399128349Stjr/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
400128349Stjr   */
401128349Stjr/* #undef MUST_DEFINE_ERRNO */
402128349Stjr
403128349Stjr/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
404128349Stjr   termcap.h. */
405128349Stjr/* #undef MUST_DEFINE_OSPEED */
406128349Stjr
407128349Stjr/* pattern matching is supported, but without metacharacters. */
408128349Stjr/* #undef NO_REGEX */
409128349Stjr
410128349Stjr/* Define to the address where bug reports for this package should be sent. */
411128349Stjr#define PACKAGE_BUGREPORT ""
412128349Stjr
413128349Stjr/* Define to the full name of this package. */
414128349Stjr#define PACKAGE_NAME "less"
415128349Stjr
416128349Stjr/* Define to the full name and version of this package. */
417128349Stjr#define PACKAGE_STRING "less 1"
418128349Stjr
419128349Stjr/* Define to the one symbol short name of this package. */
420128349Stjr#define PACKAGE_TARNAME "less"
421128349Stjr
422221718Sdelphij/* Define to the home page for this package. */
423221718Sdelphij#define PACKAGE_URL ""
424221718Sdelphij
425128349Stjr/* Define to the version of this package. */
426128349Stjr#define PACKAGE_VERSION "1"
427128349Stjr
428128349Stjr/* Define as the return type of signal handlers (`int' or `void'). */
429128349Stjr#define RETSIGTYPE void
430128349Stjr
431161479Sdelphij/* Define SECURE_COMPILE=1 to build a secure version of less. */
432161479Sdelphij#define SECURE_COMPILE 0
433161479Sdelphij
434128349Stjr/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
435128349Stjr/* #undef STAT_MACROS_BROKEN */
436128349Stjr
437128349Stjr/* Define to 1 if you have the ANSI C header files. */
438128349Stjr#define STDC_HEADERS 1
439128349Stjr
440128349Stjr/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
441128349Stjr#define TIME_WITH_SYS_TIME 1
442128349Stjr
443293190Sdelphij/* Enable large inode numbers on Mac OS X 10.5.  */
444293190Sdelphij#ifndef _DARWIN_USE_64_BIT_INODE
445293190Sdelphij# define _DARWIN_USE_64_BIT_INODE 1
446293190Sdelphij#endif
447293190Sdelphij
448128349Stjr/* Number of bits in a file offset, on hosts where this is settable. */
449128349Stjr/* #undef _FILE_OFFSET_BITS */
450128349Stjr
451128349Stjr/* Define for large files, on AIX-style hosts. */
452128349Stjr/* #undef _LARGE_FILES */
453128349Stjr
454128349Stjr/* Define to empty if `const' does not conform to ANSI C. */
455128349Stjr/* #undef const */
456128349Stjr
457170260Sdelphij/* Define to `long int' if <sys/types.h> does not define. */
458128349Stjr/* #undef off_t */
459128349Stjr
460170260Sdelphij/* Define to `unsigned int' if <sys/types.h> does not define. */
461128349Stjr/* #undef size_t */
462