defines.h revision 128349
160789Sps/* $FreeBSD: head/usr.bin/less/defines.h 128349 2004-04-17 07:46:08Z tjr $ */
2128349Stjr/* defines.h.  Generated 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.
2360789Sps */
2460789Sps#define	SECURE		0
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/*
50128349Stjr * 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/*
68128349Stjr * 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/*
8760789Sps * LOGFILE is 1 if you wish to allow the -l 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/*
105128349Stjr * 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.
108128349Stjr * DEF_LESSKEYINFILE is the filename of the default lesskey input
10960789Sps * (in the HOME directory).
11060789Sps */
11160789Sps#define	LESSKEYFILE		".less"
112128349Stjr#define	LESSKEYFILE_SYS		SYSDIR "/sysless"
11360789Sps#define	DEF_LESSKEYINFILE	".lesskey"
11460789Sps
115128349Stjr
11660789Sps/* Settings always true on Unix.  */
11760789Sps
11860789Sps/*
11960789Sps * Define MSDOS_COMPILER if compiling under Microsoft C.
12060789Sps */
12160789Sps#define	MSDOS_COMPILER	0
12260789Sps
12360789Sps/*
12460789Sps * Pathname separator character.
12560789Sps */
12660789Sps#define	PATHNAME_SEP	"/"
12760789Sps
12860789Sps/*
12960789Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
13060789Sps */
131128349Stjr#define HAVE_SYS_TYPES_H 1
13260789Sps
13360789Sps/*
13460789Sps * Define if you have the <sgstat.h> header file.
13560789Sps */
13660789Sps/* #undef HAVE_SGSTAT_H */
13760789Sps
13860789Sps/*
13960789Sps * HAVE_PERROR is 1 if your system has the perror() call.
14060789Sps * (Actually, if it has sys_errlist, sys_nerr and errno.)
14160789Sps */
14260789Sps#define	HAVE_PERROR	1
14360789Sps
14460789Sps/*
14560789Sps * HAVE_TIME is 1 if your system has the time() call.
14660789Sps */
14760789Sps#define	HAVE_TIME	1
14860789Sps
14960789Sps/*
15060789Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
15160789Sps */
15260789Sps#define	HAVE_SHELL	1
15360789Sps
15460789Sps/*
15560789Sps * Default shell metacharacters and meta-escape character.
15660789Sps */
157128349Stjr#define	DEF_METACHARS	"; *?\t\n'\"()<>|&^`#\\"
15860789Sps#define	DEF_METAESCAPE	"\\"
15960789Sps
160128349Stjr/*
16160789Sps * HAVE_DUP is 1 if your system has the dup() call.
16260789Sps */
16360789Sps#define	HAVE_DUP	1
16460789Sps
16560789Sps/*
16660789Sps * Sizes of various buffers.
16760789Sps */
16860789Sps#define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
16960789Sps#define	UNGOT_SIZE	100	/* Max chars to unget() */
17060789Sps#define	LINEBUF_SIZE	1024	/* Max size of line in input file */
17160789Sps#define	OUTBUF_SIZE	1024	/* Output buffer */
17260789Sps#define	PROMPT_SIZE	200	/* Max size of prompt string */
17360789Sps#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
17460789Sps#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
17560789Sps#define	TAGLINE_SIZE	512	/* Max size of line in tags file */
17689023Sps#define	TABSTOP_MAX	32	/* Max number of custom tab stops */
177128349Stjr
17860789Sps/* Settings automatically determined by configure.  */
17960789Sps
18060789Sps
181128349Stjr/* Define EDIT_PGM to your editor. */
182128349Stjr#define EDIT_PGM "vi"
18360789Sps
184128349Stjr/* Define HAVE_CONST if your compiler supports the "const" modifier. */
185128349Stjr#define HAVE_CONST 1
18660789Sps
187128349Stjr/* Define to 1 if you have the <ctype.h> header file. */
188128349Stjr#define HAVE_CTYPE_H 1
18960789Sps
190128349Stjr/* Define HAVE_ERRNO if you have the errno variable. */
191128349Stjr#define HAVE_ERRNO 1
19260789Sps
193128349Stjr/* Define to 1 if you have the <errno.h> header file. */
194128349Stjr#define HAVE_ERRNO_H 1
19560789Sps
196128349Stjr/* Define to 1 if you have the <fcntl.h> header file. */
197128349Stjr#define HAVE_FCNTL_H 1
19860789Sps
19960789Sps/* Define HAVE_FILENO if you have the fileno() macro. */
20060789Sps#define HAVE_FILENO 1
20160789Sps
202128349Stjr/* Define to 1 if you have the `fsync' function. */
203128349Stjr#define HAVE_FSYNC 1
20460789Sps
205128349Stjr/* Define to 1 if you have the <inttypes.h> header file. */
206128349Stjr#define HAVE_INTTYPES_H 1
20760789Sps
208128349Stjr/* Define to 1 if you have the `gen' library (-lgen). */
209128349Stjr/* #undef HAVE_LIBGEN */
21060789Sps
211128349Stjr/* Define to 1 if you have the `intl' library (-lintl). */
212128349Stjr/* #undef HAVE_LIBINTL */
213128349Stjr
214128349Stjr/* Define to 1 if you have the `PW' library (-lPW). */
215128349Stjr/* #undef HAVE_LIBPW */
216128349Stjr
217128349Stjr/* Define to 1 if you have the <limits.h> header file. */
218128349Stjr#define HAVE_LIMITS_H 1
219128349Stjr
22060789Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */
22160789Sps#define HAVE_LOCALE 1
22260789Sps
223128349Stjr/* Define to 1 if you have the `memcpy' function. */
224128349Stjr#define HAVE_MEMCPY 1
22560789Sps
226128349Stjr/* Define to 1 if you have the <memory.h> header file. */
227128349Stjr#define HAVE_MEMORY_H 1
22860789Sps
229128349Stjr/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
230128349Stjr#define HAVE_OSPEED 1
23163132Sps
232128349Stjr/* PCRE (Perl-compatible regular expression) library */
233128349Stjr/* #undef HAVE_PCRE */
23463132Sps
235128349Stjr/* Define to 1 if you have the `popen' function. */
236128349Stjr#define HAVE_POPEN 1
23760789Sps
238128349Stjr/* POSIX regcomp() and regex.h */
239128349Stjr#define HAVE_POSIX_REGCOMP 1
24060789Sps
241128349Stjr/* System V regcmp() */
242128349Stjr/* #undef HAVE_REGCMP */
24389023Sps
244128349Stjr/* */
245128349Stjr/* #undef HAVE_REGEXEC2 */
24660789Sps
247128349Stjr/* BSD re_comp() */
248128349Stjr/* #undef HAVE_RE_COMP */
24960789Sps
250128349Stjr/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
251128349Stjr#define HAVE_SIGEMPTYSET 1
252128349Stjr
253128349Stjr/* Define to 1 if you have the `sigprocmask' function. */
25463132Sps#define HAVE_SIGPROCMASK 1
25563132Sps
256128349Stjr/* Define to 1 if you have the `sigsetmask' function. */
25760789Sps#define HAVE_SIGSETMASK 1
25860789Sps
259128349Stjr/* Define HAVE_SIGSET_T you have the sigset_t type. */
260128349Stjr/* #undef HAVE_SIGSET_T */
261128349Stjr
262128349Stjr/* Define to 1 if you have the `stat' function. */
26360789Sps#define HAVE_STAT 1
26460789Sps
265128349Stjr/* Define to 1 if you have the <stdint.h> header file. */
266128349Stjr#define HAVE_STDINT_H 1
26760789Sps
268128349Stjr/* Define to 1 if you have the <stdio.h> header file. */
269128349Stjr#define HAVE_STDIO_H 1
27060789Sps
271128349Stjr/* Define to 1 if you have the <stdlib.h> header file. */
272128349Stjr#define HAVE_STDLIB_H 1
27360789Sps
274128349Stjr/* Define to 1 if you have the `strchr' function. */
275128349Stjr#define HAVE_STRCHR 1
27660789Sps
277128349Stjr/* Define HAVE_STRERROR if you have the strerror() function. */
278128349Stjr#define HAVE_STRERROR 1
27960789Sps
280128349Stjr/* Define to 1 if you have the <strings.h> header file. */
281128349Stjr#define HAVE_STRINGS_H 1
28260789Sps
283128349Stjr/* Define to 1 if you have the <string.h> header file. */
284128349Stjr#define HAVE_STRING_H 1
28560789Sps
286128349Stjr/* Define to 1 if you have the `strstr' function. */
287128349Stjr#define HAVE_STRSTR 1
28860789Sps
289128349Stjr/* Define to 1 if you have the `system' function. */
290128349Stjr#define HAVE_SYSTEM 1
29160789Sps
292128349Stjr/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
293128349Stjr#define HAVE_SYS_ERRLIST 1
29460789Sps
295128349Stjr/* Define to 1 if you have the <sys/ioctl.h> header file. */
29660789Sps#define HAVE_SYS_IOCTL_H 1
29760789Sps
298128349Stjr/* Define to 1 if you have the <sys/ptem.h> header file. */
29960789Sps/* #undef HAVE_SYS_PTEM_H */
30060789Sps
301128349Stjr/* Define to 1 if you have the <sys/stat.h> header file. */
302128349Stjr#define HAVE_SYS_STAT_H 1
303128349Stjr
304128349Stjr/* Define to 1 if you have the <sys/stream.h> header file. */
30560789Sps/* #undef HAVE_SYS_STREAM_H */
30660789Sps
307128349Stjr/* Define to 1 if you have the <sys/types.h> header file. */
308128349Stjr#define HAVE_SYS_TYPES_H 1
309128349Stjr
310128349Stjr/* Define to 1 if you have the <termcap.h> header file. */
31160789Sps#define HAVE_TERMCAP_H 1
31260789Sps
313128349Stjr/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
314128349Stjr#define HAVE_TERMIOS_FUNCS 1
31560789Sps
316128349Stjr/* Define to 1 if you have the <termios.h> header file. */
31760789Sps#define HAVE_TERMIOS_H 1
31860789Sps
319128349Stjr/* Define to 1 if you have the <termio.h> header file. */
320128349Stjr/* #undef HAVE_TERMIO_H */
321128349Stjr
322128349Stjr/* Define to 1 if you have the <time.h> header file. */
32360789Sps#define HAVE_TIME_H 1
32460789Sps
325128349Stjr/* Define HAVE_TIME_T if your system supports the "time_t" type. */
326128349Stjr#define HAVE_TIME_T 1
327128349Stjr
328128349Stjr/* Define to 1 if you have the <unistd.h> header file. */
32960789Sps#define HAVE_UNISTD_H 1
33060789Sps
331128349Stjr/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
332128349Stjr#define HAVE_UPPER_LOWER 1
333128349Stjr
334128349Stjr/* Henry Spencer V8 regcomp() and regexp.h */
335128349Stjr/* #undef HAVE_V8_REGCOMP */
336128349Stjr
337128349Stjr/* Define to 1 if you have the <values.h> header file. */
33860789Sps/* #undef HAVE_VALUES_H */
33960789Sps
340128349Stjr/* Define HAVE_VOID if your compiler supports the "void" type. */
341128349Stjr#define HAVE_VOID 1
34260789Sps
343128349Stjr/* Define to 1 if you have the `_setjmp' function. */
344128349Stjr#define HAVE__SETJMP 1
34560789Sps
346128349Stjr/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
347128349Stjr   */
348128349Stjr/* #undef MUST_DEFINE_ERRNO */
349128349Stjr
350128349Stjr/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
351128349Stjr   termcap.h. */
352128349Stjr/* #undef MUST_DEFINE_OSPEED */
353128349Stjr
354128349Stjr/* pattern matching is supported, but without metacharacters. */
355128349Stjr/* #undef NO_REGEX */
356128349Stjr
357128349Stjr/* Define to the address where bug reports for this package should be sent. */
358128349Stjr#define PACKAGE_BUGREPORT ""
359128349Stjr
360128349Stjr/* Define to the full name of this package. */
361128349Stjr#define PACKAGE_NAME "less"
362128349Stjr
363128349Stjr/* Define to the full name and version of this package. */
364128349Stjr#define PACKAGE_STRING "less 1"
365128349Stjr
366128349Stjr/* Define to the one symbol short name of this package. */
367128349Stjr#define PACKAGE_TARNAME "less"
368128349Stjr
369128349Stjr/* Define to the version of this package. */
370128349Stjr#define PACKAGE_VERSION "1"
371128349Stjr
372128349Stjr/* Define as the return type of signal handlers (`int' or `void'). */
373128349Stjr#define RETSIGTYPE void
374128349Stjr
375128349Stjr/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
376128349Stjr/* #undef STAT_MACROS_BROKEN */
377128349Stjr
378128349Stjr/* Define to 1 if you have the ANSI C header files. */
379128349Stjr#define STDC_HEADERS 1
380128349Stjr
381128349Stjr/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
382128349Stjr#define TIME_WITH_SYS_TIME 1
383128349Stjr
384128349Stjr/* Number of bits in a file offset, on hosts where this is settable. */
385128349Stjr/* #undef _FILE_OFFSET_BITS */
386128349Stjr
387128349Stjr/* Define for large files, on AIX-style hosts. */
388128349Stjr/* #undef _LARGE_FILES */
389128349Stjr
390128349Stjr/* Define to empty if `const' does not conform to ANSI C. */
391128349Stjr/* #undef const */
392128349Stjr
393128349Stjr/* Define to `long' if <sys/types.h> does not define. */
394128349Stjr/* #undef off_t */
395128349Stjr
396128349Stjr/* Define to `unsigned' if <sys/types.h> does not define. */
397128349Stjr/* #undef size_t */
398