874c15057a2b60805586a5d26323e430172a12f6
[platform/upstream/less.git] / defines.h.in
1 /* defines.h.in.  Generated from configure.ac by autoheader.  */
2
3
4 /* Unix definition file for less.  -*- C -*-
5  *
6  * This file has 3 sections:
7  * User preferences.
8  * Settings always true on Unix.
9  * Settings automatically determined by configure.
10  *
11  * * * * * *  WARNING  * * * * * *
12  * If you edit defines.h by hand, do "touch stamp-h" before you run make
13  * so config.status doesn't overwrite your changes.
14  */
15
16 /* User preferences.  */
17
18 /*
19  * SECURE is 1 if you wish to disable a bunch of features in order to
20  * be safe to run by unprivileged users.
21  * SECURE_COMPILE is set by the --with-secure configure option.
22  */
23 #define SECURE          SECURE_COMPILE
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  * LESSHISTFILE is the filename of the history file
110  * (in the HOME directory).
111  */
112 #define LESSKEYFILE             ".less"
113 #define LESSKEYFILE_SYS         SYSDIR "/sysless"
114 #define DEF_LESSKEYINFILE       ".lesskey"
115 #define LESSHISTFILE            ".lesshst"
116
117
118 /* Settings always true on Unix.  */
119
120 /*
121  * Define MSDOS_COMPILER if compiling under Microsoft C.
122  */
123 #define MSDOS_COMPILER  0
124
125 /*
126  * Pathname separator character.
127  */
128 #define PATHNAME_SEP    "/"
129
130 /*
131  * The value returned from tgetent on success.
132  * Some HP-UX systems return 0 on success.
133  */
134 #define TGETENT_OK  1
135
136 /*
137  * HAVE_ANSI_PROTOS     is 1 if your compiler supports ANSI function prototypes.
138  */
139 #define HAVE_ANSI_PROTOS        1
140
141 /*
142  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
143  */
144 #define HAVE_SYS_TYPES_H        1
145
146 /*
147  * Define if you have the <sgstat.h> header file.
148  */
149 #undef HAVE_SGSTAT_H
150
151 /*
152  * HAVE_PERROR is 1 if your system has the perror() call.
153  * (Actually, if it has sys_errlist, sys_nerr and errno.)
154  */
155 #define HAVE_PERROR     1
156
157 /*
158  * HAVE_TIME is 1 if your system has the time() call.
159  */
160 #define HAVE_TIME       1
161
162 /*
163  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
164  */
165 #define HAVE_SHELL      1
166
167 /*
168  * Default shell metacharacters and meta-escape character.
169  */
170 #define DEF_METACHARS   "; *?\t\n'\"()<>[]|&^`#\\$%=~{},"
171 #define DEF_METAESCAPE  "\\"
172
173 /* 
174  * HAVE_DUP is 1 if your system has the dup() call.
175  */
176 #define HAVE_DUP        1
177
178 /* Define to 1 if you have the memcpy() function. */
179 #define HAVE_MEMCPY 1
180
181 /* Define to 1 if you have the strchr() function. */
182 #define HAVE_STRCHR 1
183
184 /* Define to 1 if you have the strstr() function. */
185 #define HAVE_STRSTR 1
186
187 /*
188  * Sizes of various buffers.
189  */
190 #if 0 /* old sizes for small memory machines */
191 #define CMDBUF_SIZE     512     /* Buffer for multichar commands */
192 #define UNGOT_SIZE      100     /* Max chars to unget() */
193 #define LINEBUF_SIZE    1024    /* Max size of line in input file */
194 #define OUTBUF_SIZE     1024    /* Output buffer */
195 #define PROMPT_SIZE     200     /* Max size of prompt string */
196 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
197 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
198 #define TAGLINE_SIZE    512     /* Max size of line in tags file */
199 #define TABSTOP_MAX     32      /* Max number of custom tab stops */
200 #else /* more reasonable sizes for modern machines */
201 #define CMDBUF_SIZE     2048    /* Buffer for multichar commands */
202 #define UNGOT_SIZE      200     /* Max chars to unget() */
203 #define LINEBUF_SIZE    1024    /* Initial max size of line in input file */
204 #define OUTBUF_SIZE     1024    /* Output buffer */
205 #define PROMPT_SIZE     2048    /* Max size of prompt string */
206 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
207 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
208 #define TAGLINE_SIZE    1024    /* Max size of line in tags file */
209 #define TABSTOP_MAX     128     /* Max number of custom tab stops */
210 #endif
211
212 /* Settings automatically determined by configure.  */
213
214
215 /* Define EDIT_PGM to your editor. */
216 #undef EDIT_PGM
217
218 /* Define HAVE_CONST if your compiler supports the "const" modifier. */
219 #undef HAVE_CONST
220
221 /* Define to 1 if you have the <ctype.h> header file. */
222 #undef HAVE_CTYPE_H
223
224 /* Define HAVE_ERRNO if you have the errno variable. */
225 #undef HAVE_ERRNO
226
227 /* Define to 1 if you have the <errno.h> header file. */
228 #undef HAVE_ERRNO_H
229
230 /* Define to 1 if you have the `fchmod' function. */
231 #undef HAVE_FCHMOD
232
233 /* Define to 1 if you have the <fcntl.h> header file. */
234 #undef HAVE_FCNTL_H
235
236 /* Define HAVE_FILENO if you have the fileno() macro. */
237 #undef HAVE_FILENO
238
239 /* Define HAVE_FLOAT if your compiler supports the "double" type. */
240 #undef HAVE_FLOAT
241
242 /* Define to 1 if you have the `fsync' function. */
243 #undef HAVE_FSYNC
244
245 /* GNU regex library */
246 #undef HAVE_GNU_REGEX
247
248 /* Define to 1 if you have the <inttypes.h> header file. */
249 #undef HAVE_INTTYPES_H
250
251 /* Define to 1 if you have the <limits.h> header file. */
252 #undef HAVE_LIMITS_H
253
254 /* Define HAVE_LOCALE if you have locale.h and setlocale. */
255 #undef HAVE_LOCALE
256
257 /* Define to 1 if you have the <memory.h> header file. */
258 #undef HAVE_MEMORY_H
259
260 /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
261 #undef HAVE_OSPEED
262
263 /* PCRE (Perl-compatible regular expression) library */
264 #undef HAVE_PCRE
265
266 /* Define to 1 if you have the `popen' function. */
267 #undef HAVE_POPEN
268
269 /* POSIX regcomp() and regex.h */
270 #undef HAVE_POSIX_REGCOMP
271
272 /* System V regcmp() */
273 #undef HAVE_REGCMP
274
275 /* */
276 #undef HAVE_REGEXEC2
277
278 /* BSD re_comp() */
279 #undef HAVE_RE_COMP
280
281 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
282 #undef HAVE_SIGEMPTYSET
283
284 /* Define to 1 if you have the `sigprocmask' function. */
285 #undef HAVE_SIGPROCMASK
286
287 /* Define to 1 if you have the `sigsetmask' function. */
288 #undef HAVE_SIGSETMASK
289
290 /* Define to 1 if the system has the type `sigset_t'. */
291 #undef HAVE_SIGSET_T
292
293 /* Define to 1 if you have the `snprintf' function. */
294 #undef HAVE_SNPRINTF
295
296 /* Define to 1 if you have the `stat' function. */
297 #undef HAVE_STAT
298
299 /* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
300 #undef HAVE_STAT_INO
301
302 /* Define to 1 if you have the <stdint.h> header file. */
303 #undef HAVE_STDINT_H
304
305 /* Define to 1 if you have the <stdio.h> header file. */
306 #undef HAVE_STDIO_H
307
308 /* Define to 1 if you have the <stdlib.h> header file. */
309 #undef HAVE_STDLIB_H
310
311 /* Define HAVE_STRERROR if you have the strerror() function. */
312 #undef HAVE_STRERROR
313
314 /* Define to 1 if you have the <strings.h> header file. */
315 #undef HAVE_STRINGS_H
316
317 /* Define to 1 if you have the <string.h> header file. */
318 #undef HAVE_STRING_H
319
320 /* Define to 1 if you have the `system' function. */
321 #undef HAVE_SYSTEM
322
323 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
324 #undef HAVE_SYS_ERRLIST
325
326 /* Define to 1 if you have the <sys/ioctl.h> header file. */
327 #undef HAVE_SYS_IOCTL_H
328
329 /* Define to 1 if you have the <sys/stat.h> header file. */
330 #undef HAVE_SYS_STAT_H
331
332 /* Define to 1 if you have the <sys/stream.h> header file. */
333 #undef HAVE_SYS_STREAM_H
334
335 /* Define to 1 if you have the <sys/types.h> header file. */
336 #undef HAVE_SYS_TYPES_H
337
338 /* Define to 1 if you have the <termcap.h> header file. */
339 #undef HAVE_TERMCAP_H
340
341 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
342 #undef HAVE_TERMIOS_FUNCS
343
344 /* Define to 1 if you have the <termios.h> header file. */
345 #undef HAVE_TERMIOS_H
346
347 /* Define to 1 if you have the <termio.h> header file. */
348 #undef HAVE_TERMIO_H
349
350 /* Define to 1 if you have the <time.h> header file. */
351 #undef HAVE_TIME_H
352
353 /* Define HAVE_TIME_T if your system supports the "time_t" type. */
354 #undef HAVE_TIME_T
355
356 /* Define to 1 if you have the <unistd.h> header file. */
357 #undef HAVE_UNISTD_H
358
359 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
360 #undef HAVE_UPPER_LOWER
361
362 /* Henry Spencer V8 regcomp() and regexp.h */
363 #undef HAVE_V8_REGCOMP
364
365 /* Define to 1 if you have the <values.h> header file. */
366 #undef HAVE_VALUES_H
367
368 /* Define HAVE_VOID if your compiler supports the "void" type. */
369 #undef HAVE_VOID
370
371 /* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
372 #undef HAVE_WCTYPE
373
374 /* Define to 1 if you have the <wctype.h> header file. */
375 #undef HAVE_WCTYPE_H
376
377 /* Define to 1 if you have the `_setjmp' function. */
378 #undef HAVE__SETJMP
379
380 /* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
381    */
382 #undef MUST_DEFINE_ERRNO
383
384 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
385    termcap.h. */
386 #undef MUST_DEFINE_OSPEED
387
388 /* pattern matching is supported, but without metacharacters. */
389 #undef NO_REGEX
390
391 /* Define to the address where bug reports for this package should be sent. */
392 #undef PACKAGE_BUGREPORT
393
394 /* Define to the full name of this package. */
395 #undef PACKAGE_NAME
396
397 /* Define to the full name and version of this package. */
398 #undef PACKAGE_STRING
399
400 /* Define to the one symbol short name of this package. */
401 #undef PACKAGE_TARNAME
402
403 /* Define to the home page for this package. */
404 #undef PACKAGE_URL
405
406 /* Define to the version of this package. */
407 #undef PACKAGE_VERSION
408
409 /* Define as the return type of signal handlers (`int' or `void'). */
410 #undef RETSIGTYPE
411
412 /* Define SECURE_COMPILE=1 to build a secure version of less. */
413 #undef SECURE_COMPILE
414
415 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
416 #undef STAT_MACROS_BROKEN
417
418 /* Define to 1 if you have the ANSI C header files. */
419 #undef STDC_HEADERS
420
421 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
422 #undef TIME_WITH_SYS_TIME
423
424 /* Enable large inode numbers on Mac OS X 10.5.  */
425 #ifndef _DARWIN_USE_64_BIT_INODE
426 # define _DARWIN_USE_64_BIT_INODE 1
427 #endif
428
429 /* Number of bits in a file offset, on hosts where this is settable. */
430 #undef _FILE_OFFSET_BITS
431
432 /* Define for large files, on AIX-style hosts. */
433 #undef _LARGE_FILES
434
435 /* Define to empty if `const' does not conform to ANSI C. */
436 #undef const
437
438 /* Define to `long int' if <sys/types.h> does not define. */
439 #undef off_t
440
441 /* Define to `unsigned int' if <sys/types.h> does not define. */
442 #undef size_t