Merge from vendor branch BINUTILS:
[dragonfly.git] / usr.bin / less / defines.h
1 /* $FreeBSD: src/usr.bin/less/defines.h,v 1.1.2.2 2000/07/19 09:24:25 ps Exp $ */
2 /* $DragonFly: src/usr.bin/less/defines.h,v 1.2 2003/06/17 04:29:27 dillon Exp $ */
3 /* defines.h.  Generated automatically by configure.  */
4 /* defines.h.in.  Generated automatically from configure.in by autoheader.  */
5 /* Unix definition file for less.  -*- C -*-
6  *
7  * This file has 3 sections:
8  * User preferences.
9  * Settings always true on Unix.
10  * Settings automatically determined by configure.
11  *
12  * * * * * *  WARNING  * * * * * *
13  * If you edit defines.h by hand, do "touch stamp-h" before you run make
14  * so config.status doesn't overwrite your changes.
15  */
16 \f
17 /* User preferences.  */
18
19 /*
20  * SECURE is 1 if you wish to disable a bunch of features in order to
21  * be safe to run by unprivileged users.
22  */
23 #define SECURE          0
24
25 /*
26  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
27  * (This is possible only if your system supplies the system() function.)
28  */
29 #define SHELL_ESCAPE    (!SECURE)
30
31 /*
32  * EXAMINE is 1 if you wish to allow examining files by name from within less.
33  */
34 #define EXAMINE         (!SECURE)
35
36 /*
37  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
38  * to complete filenames at prompts.
39  */
40 #define TAB_COMPLETE_FILENAME   (!SECURE)
41
42 /*
43  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
44  * previous commands at prompts.
45  */
46 #define CMD_HISTORY     1
47
48 /*
49  * HILITE_SEARCH is 1 if you wish to have search targets to be 
50  * displayed in standout mode.
51  */
52 #define HILITE_SEARCH   1
53
54 /*
55  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
56  * (This is possible only if your system supplies the system() function.)
57  * EDIT_PGM is the name of the (default) editor to be invoked.
58  */
59 #define EDITOR          (!SECURE)
60
61 /*
62  * TAGS is 1 if you wish to support tag files.
63  */
64 #define TAGS            (!SECURE)
65
66 /*
67  * USERFILE is 1 if you wish to allow a .less file to specify 
68  * user-defined key bindings.
69  */
70 #define USERFILE        (!SECURE)
71
72 /*
73  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
74  * This will generally work if your system provides the "popen" function
75  * and the "echo" shell command.
76  */
77 #define GLOB            (!SECURE)
78
79 /*
80  * PIPEC is 1 if you wish to have the "|" command
81  * which allows the user to pipe data into a shell command.
82  */
83 #define PIPEC           (!SECURE)
84
85 /*
86  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
87  */
88 #define LOGFILE         (!SECURE)
89
90 /*
91  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
92  * line options --help and --version.
93  */
94 #define GNU_OPTIONS     1
95
96 /*
97  * ONLY_RETURN is 1 if you want RETURN to be the only input which
98  * will continue past an error message.
99  * Otherwise, any key will continue past an error message.
100  */
101 #define ONLY_RETURN     0
102
103 /*
104  * LESSKEYFILE is the filename of the default lesskey output file 
105  * (in the HOME directory).
106  * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
107  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
108  * (in the HOME directory).
109  */
110 #define LESSKEYFILE             ".less"
111 #define LESSKEYFILE_SYS         "/etc/lesskey"
112 #define DEF_LESSKEYINFILE       ".lesskey"
113
114 \f
115 /* Settings always true on Unix.  */
116
117 /*
118  * Define MSDOS_COMPILER if compiling under Microsoft C.
119  */
120 #define MSDOS_COMPILER  0
121
122 /*
123  * Pathname separator character.
124  */
125 #define PATHNAME_SEP    "/"
126
127 /*
128  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
129  */
130 #define HAVE_SYS_TYPES_H        1
131
132 /*
133  * Define if you have the <sgstat.h> header file.
134  */
135 /* #undef HAVE_SGSTAT_H */
136
137 /*
138  * HAVE_PERROR is 1 if your system has the perror() call.
139  * (Actually, if it has sys_errlist, sys_nerr and errno.)
140  */
141 #define HAVE_PERROR     1
142
143 /*
144  * HAVE_TIME is 1 if your system has the time() call.
145  */
146 #define HAVE_TIME       1
147
148 /*
149  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
150  */
151 #define HAVE_SHELL      1
152
153 /*
154  * Default shell metacharacters and meta-escape character.
155  */
156 #define DEF_METACHARS   "; \t\n'\"()<>|&^`\\"
157 #define DEF_METAESCAPE  "\\"
158
159 /* 
160  * HAVE_DUP is 1 if your system has the dup() call.
161  */
162 #define HAVE_DUP        1
163
164 /*
165  * Sizes of various buffers.
166  */
167 #define CMDBUF_SIZE     512     /* Buffer for multichar commands */
168 #define UNGOT_SIZE      100     /* Max chars to unget() */
169 #define LINEBUF_SIZE    1024    /* Max size of line in input file */
170 #define OUTBUF_SIZE     1024    /* Output buffer */
171 #define PROMPT_SIZE     200     /* Max size of prompt string */
172 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
173 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
174 #define TAGLINE_SIZE    512     /* Max size of line in tags file */
175 \f
176 /* Settings automatically determined by configure.  */
177
178 /* Define to `long' if <sys/types.h> doesn't define.  */
179 /* #undef off_t */
180
181 /* Define if you need to in order for stat and other things to work.  */
182 /* #undef _POSIX_SOURCE */
183
184 /* Define as the return type of signal handlers (int or void).  */
185 #define RETSIGTYPE void
186
187 /* Define if you have the ANSI C header files.  */
188 #define STDC_HEADERS 1
189
190 /*
191  * Regular expression library.
192  * Define exactly one of the following to be 1:
193  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
194  * HAVE_PCRE: PCRE (Perl-compatible regular expression) library
195  * HAVE_RE_COMP: BSD re_comp()
196  * HAVE_REGCMP: System V regcmp()
197  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
198  * NO_REGEX: pattern matching is supported, but without metacharacters.
199  */
200 #define HAVE_POSIX_REGCOMP 1
201 /* #undef HAVE_PCRE */
202 /* #undef HAVE_RE_COMP */
203 /* #undef HAVE_REGCMP */
204 /* #undef HAVE_V8_REGCOMP */
205 /* #undef NO_REGEX */
206 /* #undef HAVE_REGEXEC2 */
207
208 /* Define HAVE_VOID if your compiler supports the "void" type. */
209 #define HAVE_VOID 1
210
211 /* Define HAVE_CONST if your compiler supports the "const" modifier. */
212 #define HAVE_CONST 1
213
214 /* Define HAVE_TIME_T if your system supports the "time_t" type. */
215 #define HAVE_TIME_T 1
216
217 /* Define HAVE_STRERROR if you have the strerror() function. */
218 #define HAVE_STRERROR 1
219
220 /* Define HAVE_FILENO if you have the fileno() macro. */
221 #define HAVE_FILENO 1
222
223 /* Define HAVE_ERRNO if you have the errno variable */
224 /* Define MUST_DEFINE_ERRNO if you have errno but it is not define 
225  * in errno.h */
226 #define HAVE_ERRNO 1
227 /* #undef MUST_DEFINE_ERRNO */
228
229 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
230 #define HAVE_SYS_ERRLIST 1
231
232 /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
233 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
234  * in termcap.h. */
235 #define HAVE_OSPEED 1
236 /* #undef MUST_DEFINE_OSPEED */
237
238 /* Define HAVE_LOCALE if you have locale.h and setlocale. */
239 #define HAVE_LOCALE 1
240
241 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
242 #define HAVE_TERMIOS_FUNCS 1
243
244 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
245 #define HAVE_UPPER_LOWER 1
246
247 /* Define HAVE_SIGSET_T you have the sigset_t type */
248 /* #undef HAVE_SIGSET_T */
249
250 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */
251 #define HAVE_SIGEMPTYSET 1
252
253 /* Define EDIT_PGM to your editor. */
254 #define EDIT_PGM "vi"
255
256 /* Define if you have the _setjmp function.  */
257 #define HAVE__SETJMP 1
258
259 /* Define if you have the memcpy function.  */
260 #define HAVE_MEMCPY 1
261
262 /* Define if you have the popen function.  */
263 #define HAVE_POPEN 1
264
265 /* Define if you have the sigprocmask function.  */
266 #define HAVE_SIGPROCMASK 1
267
268 /* Define if you have the sigsetmask function.  */
269 #define HAVE_SIGSETMASK 1
270
271 /* Define if you have the stat function.  */
272 #define HAVE_STAT 1
273
274 /* Define if you have the strchr function.  */
275 #define HAVE_STRCHR 1
276
277 /* Define if you have the strstr function.  */
278 #define HAVE_STRSTR 1
279
280 /* Define if you have the system function.  */
281 #define HAVE_SYSTEM 1
282
283 /* Define if you have the <ctype.h> header file.  */
284 #define HAVE_CTYPE_H 1
285
286 /* Define if you have the <errno.h> header file.  */
287 #define HAVE_ERRNO_H 1
288
289 /* Define if you have the <fcntl.h> header file.  */
290 #define HAVE_FCNTL_H 1
291
292 /* Define if you have the <limits.h> header file.  */
293 #define HAVE_LIMITS_H 1
294
295 /* Define if you have the <stdio.h> header file.  */
296 #define HAVE_STDIO_H 1
297
298 /* Define if you have the <stdlib.h> header file.  */
299 #define HAVE_STDLIB_H 1
300
301 /* Define if you have the <string.h> header file.  */
302 #define HAVE_STRING_H 1
303
304 /* Define if you have the <sys/ioctl.h> header file.  */
305 #define HAVE_SYS_IOCTL_H 1
306
307 /* Define if you have the <sys/ptem.h> header file.  */
308 /* #undef HAVE_SYS_PTEM_H */
309
310 /* Define if you have the <sys/stream.h> header file.  */
311 /* #undef HAVE_SYS_STREAM_H */
312
313 /* Define if you have the <termcap.h> header file.  */
314 #define HAVE_TERMCAP_H 1
315
316 /* Define if you have the <termio.h> header file.  */
317 /* #undef HAVE_TERMIO_H */
318
319 /* Define if you have the <termios.h> header file.  */
320 #define HAVE_TERMIOS_H 1
321
322 /* Define if you have the <time.h> header file.  */
323 #define HAVE_TIME_H 1
324
325 /* Define if you have the <unistd.h> header file.  */
326 #define HAVE_UNISTD_H 1
327
328 /* Define if you have the <values.h> header file.  */
329 /* #undef HAVE_VALUES_H */
330
331 /* Define if you have the PW library (-lPW).  */
332 /* #undef HAVE_LIBPW */
333
334 /* Define if you have the gen library (-lgen).  */
335 /* #undef HAVE_LIBGEN */
336
337 /* Define if you have the intl library (-lintl).  */
338 /* #undef HAVE_LIBINTL */