defines.h revision 237613
160789Sps/* $FreeBSD: head/usr.bin/less/defines.h 237613 2012-06-26 23:17:33Z delphij $ */
2170260Sdelphij/* defines.h.  Generated from defines.h.in by configure.  */
3128349Stjr/* defines.h.in.  Generated from configure.ac by autoheader.  */
4128349Stjr
5128349Stjr
660789Sps/* Unix definition file for less.  -*- C -*-
760789Sps *
860789Sps * This file has 3 sections:
960789Sps * User preferences.
1060789Sps * Settings always true on Unix.
1160789Sps * Settings automatically determined by configure.
1260789Sps *
1360789Sps * * * * * *  WARNING  * * * * * *
1460789Sps * If you edit defines.h by hand, do "touch stamp-h" before you run make
1560789Sps * so config.status doesn't overwrite your changes.
1660789Sps */
17128349Stjr
1860789Sps/* User preferences.  */
1960789Sps
2060789Sps/*
2160789Sps * SECURE is 1 if you wish to disable a bunch of features in order to
2260789Sps * be safe to run by unprivileged users.
23161479Sdelphij * SECURE_COMPILE is set by the --with-secure configure option.
2460789Sps */
25161479Sdelphij#define	SECURE		SECURE_COMPILE
2660789Sps
2760789Sps/*
2860789Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
2960789Sps * (This is possible only if your system supplies the system() function.)
3060789Sps */
3160789Sps#define	SHELL_ESCAPE	(!SECURE)
3260789Sps
3360789Sps/*
3460789Sps * EXAMINE is 1 if you wish to allow examining files by name from within less.
3560789Sps */
3660789Sps#define	EXAMINE		(!SECURE)
3760789Sps
3860789Sps/*
3960789Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
4060789Sps * to complete filenames at prompts.
4160789Sps */
4260789Sps#define	TAB_COMPLETE_FILENAME	(!SECURE)
4360789Sps
4460789Sps/*
4560789Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through
4660789Sps * previous commands at prompts.
4760789Sps */
4860789Sps#define	CMD_HISTORY	1
4960789Sps
5060789Sps/*
51170260Sdelphij * HILITE_SEARCH is 1 if you wish to have search targets to be
5260789Sps * displayed in standout mode.
5360789Sps */
5460789Sps#define	HILITE_SEARCH	1
5560789Sps
5660789Sps/*
5760789Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
5860789Sps * (This is possible only if your system supplies the system() function.)
5960789Sps * EDIT_PGM is the name of the (default) editor to be invoked.
6060789Sps */
6160789Sps#define	EDITOR		(!SECURE)
6260789Sps
6360789Sps/*
6460789Sps * TAGS is 1 if you wish to support tag files.
6560789Sps */
6660789Sps#define	TAGS		(!SECURE)
6760789Sps
6860789Sps/*
69170260Sdelphij * USERFILE is 1 if you wish to allow a .less file to specify
7060789Sps * user-defined key bindings.
7160789Sps */
7260789Sps#define	USERFILE	(!SECURE)
7360789Sps
7460789Sps/*
7560789Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
7660789Sps * This will generally work if your system provides the "popen" function
7760789Sps * and the "echo" shell command.
7860789Sps */
7960789Sps#define	GLOB		(!SECURE)
8060789Sps
8160789Sps/*
8260789Sps * PIPEC is 1 if you wish to have the "|" command
8360789Sps * which allows the user to pipe data into a shell command.
8460789Sps */
8560789Sps#define	PIPEC		(!SECURE)
8660789Sps
8760789Sps/*
8860789Sps * LOGFILE is 1 if you wish to allow the -l option (to create log files).
8960789Sps */
9060789Sps#define	LOGFILE		(!SECURE)
9160789Sps
9260789Sps/*
9360789Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command
9460789Sps * line options --help and --version.
9560789Sps */
9660789Sps#define	GNU_OPTIONS	1
9760789Sps
9860789Sps/*
9960789Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which
10060789Sps * will continue past an error message.
10160789Sps * Otherwise, any key will continue past an error message.
10260789Sps */
10360789Sps#define	ONLY_RETURN	0
10460789Sps
10560789Sps/*
106170260Sdelphij * LESSKEYFILE is the filename of the default lesskey output file
10760789Sps * (in the HOME directory).
10860789Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
109170260Sdelphij * DEF_LESSKEYINFILE is the filename of the default lesskey input
11060789Sps * (in the HOME directory).
111161479Sdelphij * LESSHISTFILE is the filename of the history file
112161479Sdelphij * (in the HOME directory).
11360789Sps */
11460789Sps#define	LESSKEYFILE		".less"
115128350Stjr#define	LESSKEYFILE_SYS		"/etc/lesskey"
11660789Sps#define	DEF_LESSKEYINFILE	".lesskey"
117161479Sdelphij#define LESSHISTFILE		".lesshst"
11860789Sps
119128349Stjr
12060789Sps/* Settings always true on Unix.  */
12160789Sps
12260789Sps/*
12360789Sps * Define MSDOS_COMPILER if compiling under Microsoft C.
12460789Sps */
12560789Sps#define	MSDOS_COMPILER	0
12660789Sps
12760789Sps/*
12860789Sps * Pathname separator character.
12960789Sps */
13060789Sps#define	PATHNAME_SEP	"/"
13160789Sps
13260789Sps/*
133170260Sdelphij * The value returned from tgetent on success.
134170260Sdelphij * Some HP-UX systems return 0 on success.
135170260Sdelphij */
136170260Sdelphij#define TGETENT_OK  1
137170260Sdelphij
138170260Sdelphij/*
13960789Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
14060789Sps */
141128349Stjr#define HAVE_SYS_TYPES_H 1
14260789Sps
14360789Sps/*
14460789Sps * Define if you have the <sgstat.h> header file.
14560789Sps */
14660789Sps/* #undef HAVE_SGSTAT_H */
14760789Sps
14860789Sps/*
14960789Sps * HAVE_PERROR is 1 if your system has the perror() call.
15060789Sps * (Actually, if it has sys_errlist, sys_nerr and errno.)
15160789Sps */
15260789Sps#define	HAVE_PERROR	1
15360789Sps
15460789Sps/*
15560789Sps * HAVE_TIME is 1 if your system has the time() call.
15660789Sps */
15760789Sps#define	HAVE_TIME	1
15860789Sps
15960789Sps/*
16060789Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
16160789Sps */
16260789Sps#define	HAVE_SHELL	1
16360789Sps
16460789Sps/*
16560789Sps * Default shell metacharacters and meta-escape character.
16660789Sps */
167170260Sdelphij#define	DEF_METACHARS	"; *?\t\n'\"()<>[]|&^`#\\$%=~"
16860789Sps#define	DEF_METAESCAPE	"\\"
16960789Sps
170170260Sdelphij/*
17160789Sps * HAVE_DUP is 1 if your system has the dup() call.
17260789Sps */
17360789Sps#define	HAVE_DUP	1
17460789Sps
175170260Sdelphij/* Define to 1 if you have the memcpy() function. */
176170260Sdelphij#define HAVE_MEMCPY 1
177170260Sdelphij
178170260Sdelphij/* Define to 1 if you have the strchr() function. */
179170260Sdelphij#define HAVE_STRCHR 1
180170260Sdelphij
181170260Sdelphij/* Define to 1 if you have the strstr() function. */
182170260Sdelphij#define HAVE_STRSTR 1
183170260Sdelphij
18460789Sps/*
18560789Sps * Sizes of various buffers.
18660789Sps */
18760789Sps#define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
18860789Sps#define	UNGOT_SIZE	100	/* Max chars to unget() */
18960789Sps#define	LINEBUF_SIZE	1024	/* Max size of line in input file */
19060789Sps#define	OUTBUF_SIZE	1024	/* Output buffer */
19160789Sps#define	PROMPT_SIZE	200	/* Max size of prompt string */
19260789Sps#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
19360789Sps#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
19460789Sps#define	TAGLINE_SIZE	512	/* Max size of line in tags file */
19589023Sps#define	TABSTOP_MAX	32	/* Max number of custom tab stops */
196128349Stjr
19760789Sps/* Settings automatically determined by configure.  */
19860789Sps
19960789Sps
200128349Stjr/* Define EDIT_PGM to your editor. */
201128349Stjr#define EDIT_PGM "vi"
20260789Sps
203128349Stjr/* Define HAVE_CONST if your compiler supports the "const" modifier. */
204128349Stjr#define HAVE_CONST 1
20560789Sps
206128349Stjr/* Define to 1 if you have the <ctype.h> header file. */
207128349Stjr#define HAVE_CTYPE_H 1
20860789Sps
209128349Stjr/* Define HAVE_ERRNO if you have the errno variable. */
210128349Stjr#define HAVE_ERRNO 1
21160789Sps
212128349Stjr/* Define to 1 if you have the <errno.h> header file. */
213128349Stjr#define HAVE_ERRNO_H 1
21460789Sps
215161479Sdelphij/* Define to 1 if you have the `fchmod' function. */
216161479Sdelphij#define HAVE_FCHMOD 1
217161479Sdelphij
218128349Stjr/* Define to 1 if you have the <fcntl.h> header file. */
219128349Stjr#define HAVE_FCNTL_H 1
22060789Sps
22160789Sps/* Define HAVE_FILENO if you have the fileno() macro. */
22260789Sps#define HAVE_FILENO 1
22360789Sps
224221718Sdelphij/* Define HAVE_FLOAT if your compiler supports the "double" type. */
225221718Sdelphij#define HAVE_FLOAT 1
226221718Sdelphij
227128349Stjr/* Define to 1 if you have the `fsync' function. */
228128349Stjr#define HAVE_FSYNC 1
22960789Sps
230237613Sdelphij/* GNU regex library */
231237613Sdelphij/* #undef HAVE_GNU_REGEX */
232237613Sdelphij
233128349Stjr/* Define to 1 if you have the <inttypes.h> header file. */
234128349Stjr#define HAVE_INTTYPES_H 1
23560789Sps
236128349Stjr/* Define to 1 if you have the <limits.h> header file. */
237128349Stjr#define HAVE_LIMITS_H 1
238128349Stjr
23960789Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */
24060789Sps#define HAVE_LOCALE 1
24160789Sps
242128349Stjr/* Define to 1 if you have the <memory.h> header file. */
243128349Stjr#define HAVE_MEMORY_H 1
24460789Sps
245128349Stjr/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
246128349Stjr#define HAVE_OSPEED 1
24763132Sps
248128349Stjr/* PCRE (Perl-compatible regular expression) library */
249128349Stjr/* #undef HAVE_PCRE */
25063132Sps
251128349Stjr/* Define to 1 if you have the `popen' function. */
252128349Stjr#define HAVE_POPEN 1
25360789Sps
254128349Stjr/* POSIX regcomp() and regex.h */
255128349Stjr#define HAVE_POSIX_REGCOMP 1
25660789Sps
257128349Stjr/* System V regcmp() */
258128349Stjr/* #undef HAVE_REGCMP */
25989023Sps
260128349Stjr/* */
261128349Stjr/* #undef HAVE_REGEXEC2 */
26260789Sps
263128349Stjr/* BSD re_comp() */
264128349Stjr/* #undef HAVE_RE_COMP */
26560789Sps
266128349Stjr/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
267128349Stjr#define HAVE_SIGEMPTYSET 1
268128349Stjr
269128349Stjr/* Define to 1 if you have the `sigprocmask' function. */
27063132Sps#define HAVE_SIGPROCMASK 1
27163132Sps
272128349Stjr/* Define to 1 if you have the `sigsetmask' function. */
27360789Sps#define HAVE_SIGSETMASK 1
27460789Sps
275170260Sdelphij/* Define to 1 if the system has the type `sigset_t'. */
276170260Sdelphij#define HAVE_SIGSET_T 1
277128349Stjr
278161479Sdelphij/* Define to 1 if you have the `snprintf' function. */
279161479Sdelphij#define HAVE_SNPRINTF 1
280161479Sdelphij
281128349Stjr/* Define to 1 if you have the `stat' function. */
28260789Sps#define HAVE_STAT 1
28360789Sps
284173685Sdelphij/* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
285173685Sdelphij#define HAVE_STAT_INO 1
286173685Sdelphij
287128349Stjr/* Define to 1 if you have the <stdint.h> header file. */
288128349Stjr#define HAVE_STDINT_H 1
28960789Sps
290128349Stjr/* Define to 1 if you have the <stdio.h> header file. */
291128349Stjr#define HAVE_STDIO_H 1
29260789Sps
293128349Stjr/* Define to 1 if you have the <stdlib.h> header file. */
294128349Stjr#define HAVE_STDLIB_H 1
29560789Sps
296128349Stjr/* Define HAVE_STRERROR if you have the strerror() function. */
297128349Stjr#define HAVE_STRERROR 1
29860789Sps
299128349Stjr/* Define to 1 if you have the <strings.h> header file. */
300128349Stjr#define HAVE_STRINGS_H 1
30160789Sps
302128349Stjr/* Define to 1 if you have the <string.h> header file. */
303128349Stjr#define HAVE_STRING_H 1
30460789Sps
305128349Stjr/* Define to 1 if you have the `system' function. */
306128349Stjr#define HAVE_SYSTEM 1
30760789Sps
308128349Stjr/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
309128349Stjr#define HAVE_SYS_ERRLIST 1
31060789Sps
311128349Stjr/* Define to 1 if you have the <sys/ioctl.h> header file. */
31260789Sps#define HAVE_SYS_IOCTL_H 1
31360789Sps
314128349Stjr/* Define to 1 if you have the <sys/stat.h> header file. */
315128349Stjr#define HAVE_SYS_STAT_H 1
316128349Stjr
317128349Stjr/* Define to 1 if you have the <sys/stream.h> header file. */
31860789Sps/* #undef HAVE_SYS_STREAM_H */
31960789Sps
320128349Stjr/* Define to 1 if you have the <sys/types.h> header file. */
321128349Stjr#define HAVE_SYS_TYPES_H 1
322128349Stjr
323128349Stjr/* Define to 1 if you have the <termcap.h> header file. */
32460789Sps#define HAVE_TERMCAP_H 1
32560789Sps
326128349Stjr/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
327128349Stjr#define HAVE_TERMIOS_FUNCS 1
32860789Sps
329128349Stjr/* Define to 1 if you have the <termios.h> header file. */
33060789Sps#define HAVE_TERMIOS_H 1
33160789Sps
332128349Stjr/* Define to 1 if you have the <termio.h> header file. */
333128349Stjr/* #undef HAVE_TERMIO_H */
334128349Stjr
335128349Stjr/* Define to 1 if you have the <time.h> header file. */
33660789Sps#define HAVE_TIME_H 1
33760789Sps
338128349Stjr/* Define HAVE_TIME_T if your system supports the "time_t" type. */
339128349Stjr#define HAVE_TIME_T 1
340128349Stjr
341128349Stjr/* Define to 1 if you have the <unistd.h> header file. */
34260789Sps#define HAVE_UNISTD_H 1
34360789Sps
344128349Stjr/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
345128349Stjr#define HAVE_UPPER_LOWER 1
346128349Stjr
347128349Stjr/* Henry Spencer V8 regcomp() and regexp.h */
348128349Stjr/* #undef HAVE_V8_REGCOMP */
349128349Stjr
350128349Stjr/* Define to 1 if you have the <values.h> header file. */
35160789Sps/* #undef HAVE_VALUES_H */
35260789Sps
353128349Stjr/* Define HAVE_VOID if your compiler supports the "void" type. */
354128349Stjr#define HAVE_VOID 1
35560789Sps
356173685Sdelphij/* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
357173685Sdelphij#define HAVE_WCTYPE 1
358173685Sdelphij
359173685Sdelphij/* Define to 1 if you have the <wctype.h> header file. */
360173685Sdelphij#define HAVE_WCTYPE_H 1
361173685Sdelphij
362128349Stjr/* Define to 1 if you have the `_setjmp' function. */
363128349Stjr#define HAVE__SETJMP 1
36460789Sps
365128349Stjr/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
366128349Stjr   */
367128349Stjr/* #undef MUST_DEFINE_ERRNO */
368128349Stjr
369128349Stjr/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
370128349Stjr   termcap.h. */
371128349Stjr/* #undef MUST_DEFINE_OSPEED */
372128349Stjr
373128349Stjr/* pattern matching is supported, but without metacharacters. */
374128349Stjr/* #undef NO_REGEX */
375128349Stjr
376128349Stjr/* Define to the address where bug reports for this package should be sent. */
377128349Stjr#define PACKAGE_BUGREPORT ""
378128349Stjr
379128349Stjr/* Define to the full name of this package. */
380128349Stjr#define PACKAGE_NAME "less"
381128349Stjr
382128349Stjr/* Define to the full name and version of this package. */
383128349Stjr#define PACKAGE_STRING "less 1"
384128349Stjr
385128349Stjr/* Define to the one symbol short name of this package. */
386128349Stjr#define PACKAGE_TARNAME "less"
387128349Stjr
388221718Sdelphij/* Define to the home page for this package. */
389221718Sdelphij#define PACKAGE_URL ""
390221718Sdelphij
391128349Stjr/* Define to the version of this package. */
392128349Stjr#define PACKAGE_VERSION "1"
393128349Stjr
394128349Stjr/* Define as the return type of signal handlers (`int' or `void'). */
395128349Stjr#define RETSIGTYPE void
396128349Stjr
397161479Sdelphij/* Define SECURE_COMPILE=1 to build a secure version of less. */
398161479Sdelphij#define SECURE_COMPILE 0
399161479Sdelphij
400128349Stjr/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
401128349Stjr/* #undef STAT_MACROS_BROKEN */
402128349Stjr
403128349Stjr/* Define to 1 if you have the ANSI C header files. */
404128349Stjr#define STDC_HEADERS 1
405128349Stjr
406128349Stjr/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
407128349Stjr#define TIME_WITH_SYS_TIME 1
408128349Stjr
409128349Stjr/* Number of bits in a file offset, on hosts where this is settable. */
410128349Stjr/* #undef _FILE_OFFSET_BITS */
411128349Stjr
412128349Stjr/* Define for large files, on AIX-style hosts. */
413128349Stjr/* #undef _LARGE_FILES */
414128349Stjr
415128349Stjr/* Define to empty if `const' does not conform to ANSI C. */
416128349Stjr/* #undef const */
417128349Stjr
418170260Sdelphij/* Define to `long int' if <sys/types.h> does not define. */
419128349Stjr/* #undef off_t */
420128349Stjr
421170260Sdelphij/* Define to `unsigned int' if <sys/types.h> does not define. */
422128349Stjr/* #undef size_t */
423