defines.h.in revision 170256
1128345Stjr/* defines.h.in. Generated from configure.ac by autoheader. */ 2128345Stjr 3128345Stjr 460786Sps/* Unix definition file for less. -*- C -*- 560786Sps * 660786Sps * This file has 3 sections: 760786Sps * User preferences. 860786Sps * Settings always true on Unix. 960786Sps * Settings automatically determined by configure. 1060786Sps * 1160786Sps * * * * * * WARNING * * * * * * 1260786Sps * If you edit defines.h by hand, do "touch stamp-h" before you run make 1360786Sps * so config.status doesn't overwrite your changes. 1460786Sps */ 15128345Stjr 1660786Sps/* User preferences. */ 1760786Sps 1860786Sps/* 1960786Sps * SECURE is 1 if you wish to disable a bunch of features in order to 2060786Sps * be safe to run by unprivileged users. 21161475Sdelphij * SECURE_COMPILE is set by the --with-secure configure option. 2260786Sps */ 23161475Sdelphij#define SECURE SECURE_COMPILE 2460786Sps 2560786Sps/* 2660786Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 2760786Sps * (This is possible only if your system supplies the system() function.) 2860786Sps */ 2960786Sps#define SHELL_ESCAPE (!SECURE) 3060786Sps 3160786Sps/* 3260786Sps * EXAMINE is 1 if you wish to allow examining files by name from within less. 3360786Sps */ 3460786Sps#define EXAMINE (!SECURE) 3560786Sps 3660786Sps/* 3760786Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 3860786Sps * to complete filenames at prompts. 3960786Sps */ 4060786Sps#define TAB_COMPLETE_FILENAME (!SECURE) 4160786Sps 4260786Sps/* 4360786Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through 4460786Sps * previous commands at prompts. 4560786Sps */ 4660786Sps#define CMD_HISTORY 1 4760786Sps 4860786Sps/* 4960786Sps * HILITE_SEARCH is 1 if you wish to have search targets to be 5060786Sps * displayed in standout mode. 5160786Sps */ 5260786Sps#define HILITE_SEARCH 1 5360786Sps 5460786Sps/* 5560786Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 5660786Sps * (This is possible only if your system supplies the system() function.) 5760786Sps * EDIT_PGM is the name of the (default) editor to be invoked. 5860786Sps */ 5960786Sps#define EDITOR (!SECURE) 6060786Sps 6160786Sps/* 6260786Sps * TAGS is 1 if you wish to support tag files. 6360786Sps */ 6460786Sps#define TAGS (!SECURE) 6560786Sps 6660786Sps/* 6760786Sps * USERFILE is 1 if you wish to allow a .less file to specify 6860786Sps * user-defined key bindings. 6960786Sps */ 7060786Sps#define USERFILE (!SECURE) 7160786Sps 7260786Sps/* 7360786Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 7460786Sps * This will generally work if your system provides the "popen" function 7560786Sps * and the "echo" shell command. 7660786Sps */ 7760786Sps#define GLOB (!SECURE) 7860786Sps 7960786Sps/* 8060786Sps * PIPEC is 1 if you wish to have the "|" command 8160786Sps * which allows the user to pipe data into a shell command. 8260786Sps */ 8360786Sps#define PIPEC (!SECURE) 8460786Sps 8560786Sps/* 8660786Sps * LOGFILE is 1 if you wish to allow the -l option (to create log files). 8760786Sps */ 8860786Sps#define LOGFILE (!SECURE) 8960786Sps 9060786Sps/* 9160786Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command 9260786Sps * line options --help and --version. 9360786Sps */ 9460786Sps#define GNU_OPTIONS 1 9560786Sps 9660786Sps/* 9760786Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which 9860786Sps * will continue past an error message. 9960786Sps * Otherwise, any key will continue past an error message. 10060786Sps */ 10160786Sps#define ONLY_RETURN 0 10260786Sps 10360786Sps/* 10460786Sps * LESSKEYFILE is the filename of the default lesskey output file 10560786Sps * (in the HOME directory). 10660786Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 10760786Sps * DEF_LESSKEYINFILE is the filename of the default lesskey input 10860786Sps * (in the HOME directory). 109161475Sdelphij * LESSHISTFILE is the filename of the history file 110161475Sdelphij * (in the HOME directory). 11160786Sps */ 11260786Sps#define LESSKEYFILE ".less" 11389019Sps#define LESSKEYFILE_SYS SYSDIR "/sysless" 11460786Sps#define DEF_LESSKEYINFILE ".lesskey" 115161475Sdelphij#define LESSHISTFILE ".lesshst" 11660786Sps 117128345Stjr 11860786Sps/* Settings always true on Unix. */ 11960786Sps 12060786Sps/* 12160786Sps * Define MSDOS_COMPILER if compiling under Microsoft C. 12260786Sps */ 12360786Sps#define MSDOS_COMPILER 0 12460786Sps 12560786Sps/* 12660786Sps * Pathname separator character. 12760786Sps */ 12860786Sps#define PATHNAME_SEP "/" 12960786Sps 13060786Sps/* 131170256Sdelphij * The value returned from tgetent on success. 132170256Sdelphij * Some HP-UX systems return 0 on success. 133170256Sdelphij */ 134170256Sdelphij#define TGETENT_OK 1 135170256Sdelphij 136170256Sdelphij/* 13760786Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 13860786Sps */ 13960786Sps#define HAVE_SYS_TYPES_H 1 14060786Sps 14160786Sps/* 14260786Sps * Define if you have the <sgstat.h> header file. 14360786Sps */ 14460786Sps#undef HAVE_SGSTAT_H 14560786Sps 14660786Sps/* 14760786Sps * HAVE_PERROR is 1 if your system has the perror() call. 14860786Sps * (Actually, if it has sys_errlist, sys_nerr and errno.) 14960786Sps */ 15060786Sps#define HAVE_PERROR 1 15160786Sps 15260786Sps/* 15360786Sps * HAVE_TIME is 1 if your system has the time() call. 15460786Sps */ 15560786Sps#define HAVE_TIME 1 15660786Sps 15760786Sps/* 15860786Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 15960786Sps */ 16060786Sps#define HAVE_SHELL 1 16160786Sps 16260786Sps/* 16360786Sps * Default shell metacharacters and meta-escape character. 16460786Sps */ 165170256Sdelphij#define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~" 16660786Sps#define DEF_METAESCAPE "\\" 16760786Sps 16860786Sps/* 16960786Sps * HAVE_DUP is 1 if your system has the dup() call. 17060786Sps */ 17160786Sps#define HAVE_DUP 1 17260786Sps 173170256Sdelphij/* Define to 1 if you have the memcpy() function. */ 174170256Sdelphij#define HAVE_MEMCPY 1 175170256Sdelphij 176170256Sdelphij/* Define to 1 if you have the strchr() function. */ 177170256Sdelphij#define HAVE_STRCHR 1 178170256Sdelphij 179170256Sdelphij/* Define to 1 if you have the strstr() function. */ 180170256Sdelphij#define HAVE_STRSTR 1 181170256Sdelphij 18260786Sps/* 18360786Sps * Sizes of various buffers. 18460786Sps */ 18560786Sps#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 18660786Sps#define UNGOT_SIZE 100 /* Max chars to unget() */ 18760786Sps#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 18860786Sps#define OUTBUF_SIZE 1024 /* Output buffer */ 18960786Sps#define PROMPT_SIZE 200 /* Max size of prompt string */ 19060786Sps#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 19160786Sps#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 19260786Sps#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 19389019Sps#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 194128345Stjr 19560786Sps/* Settings automatically determined by configure. */ 19660786Sps 19760786Sps 198128345Stjr/* Define EDIT_PGM to your editor. */ 199128345Stjr#undef EDIT_PGM 20060786Sps 201128345Stjr/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 202128345Stjr#undef HAVE_CONST 20360786Sps 204128345Stjr/* Define to 1 if you have the <ctype.h> header file. */ 205128345Stjr#undef HAVE_CTYPE_H 20660786Sps 207128345Stjr/* Define HAVE_ERRNO if you have the errno variable. */ 208128345Stjr#undef HAVE_ERRNO 20960786Sps 210128345Stjr/* Define to 1 if you have the <errno.h> header file. */ 211128345Stjr#undef HAVE_ERRNO_H 21260786Sps 213161475Sdelphij/* Define to 1 if you have the `fchmod' function. */ 214161475Sdelphij#undef HAVE_FCHMOD 215161475Sdelphij 216128345Stjr/* Define to 1 if you have the <fcntl.h> header file. */ 217128345Stjr#undef HAVE_FCNTL_H 21860786Sps 21960786Sps/* Define HAVE_FILENO if you have the fileno() macro. */ 22060786Sps#undef HAVE_FILENO 22160786Sps 222128345Stjr/* Define to 1 if you have the `fsync' function. */ 223128345Stjr#undef HAVE_FSYNC 22460786Sps 225128345Stjr/* Define to 1 if you have the <inttypes.h> header file. */ 226128345Stjr#undef HAVE_INTTYPES_H 22760786Sps 228128345Stjr/* Define to 1 if you have the `gen' library (-lgen). */ 229128345Stjr#undef HAVE_LIBGEN 23060786Sps 231128345Stjr/* Define to 1 if you have the `intl' library (-lintl). */ 232128345Stjr#undef HAVE_LIBINTL 233128345Stjr 234128345Stjr/* Define to 1 if you have the `PW' library (-lPW). */ 235128345Stjr#undef HAVE_LIBPW 236128345Stjr 237128345Stjr/* Define to 1 if you have the <limits.h> header file. */ 238128345Stjr#undef HAVE_LIMITS_H 239128345Stjr 24060786Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 24160786Sps#undef HAVE_LOCALE 24260786Sps 243128345Stjr/* Define to 1 if you have the <memory.h> header file. */ 244128345Stjr#undef HAVE_MEMORY_H 24560786Sps 246128345Stjr/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */ 247128345Stjr#undef HAVE_OSPEED 24863128Sps 249128345Stjr/* PCRE (Perl-compatible regular expression) library */ 250128345Stjr#undef HAVE_PCRE 25163128Sps 252128345Stjr/* Define to 1 if you have the `popen' function. */ 253128345Stjr#undef HAVE_POPEN 25460786Sps 255128345Stjr/* POSIX regcomp() and regex.h */ 256128345Stjr#undef HAVE_POSIX_REGCOMP 25760786Sps 258128345Stjr/* System V regcmp() */ 259128345Stjr#undef HAVE_REGCMP 26089019Sps 261128345Stjr/* */ 262128345Stjr#undef HAVE_REGEXEC2 26360786Sps 264128345Stjr/* BSD re_comp() */ 265128345Stjr#undef HAVE_RE_COMP 26660786Sps 267128345Stjr/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */ 268128345Stjr#undef HAVE_SIGEMPTYSET 269128345Stjr 270128345Stjr/* Define to 1 if you have the `sigprocmask' function. */ 27163128Sps#undef HAVE_SIGPROCMASK 27263128Sps 273128345Stjr/* Define to 1 if you have the `sigsetmask' function. */ 27460786Sps#undef HAVE_SIGSETMASK 27560786Sps 276170256Sdelphij/* Define to 1 if the system has the type `sigset_t'. */ 277128345Stjr#undef HAVE_SIGSET_T 278128345Stjr 279161475Sdelphij/* Define to 1 if you have the `snprintf' function. */ 280161475Sdelphij#undef HAVE_SNPRINTF 281161475Sdelphij 282128345Stjr/* Define to 1 if you have the `stat' function. */ 28360786Sps#undef HAVE_STAT 28460786Sps 285128345Stjr/* Define to 1 if you have the <stdint.h> header file. */ 286128345Stjr#undef HAVE_STDINT_H 28760786Sps 288128345Stjr/* Define to 1 if you have the <stdio.h> header file. */ 289128345Stjr#undef HAVE_STDIO_H 29060786Sps 291128345Stjr/* Define to 1 if you have the <stdlib.h> header file. */ 292128345Stjr#undef HAVE_STDLIB_H 29360786Sps 294128345Stjr/* Define HAVE_STRERROR if you have the strerror() function. */ 295128345Stjr#undef HAVE_STRERROR 29660786Sps 297128345Stjr/* Define to 1 if you have the <strings.h> header file. */ 298128345Stjr#undef HAVE_STRINGS_H 29960786Sps 300128345Stjr/* Define to 1 if you have the <string.h> header file. */ 301128345Stjr#undef HAVE_STRING_H 30260786Sps 303128345Stjr/* Define to 1 if you have the `system' function. */ 304128345Stjr#undef HAVE_SYSTEM 30560786Sps 306128345Stjr/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */ 307128345Stjr#undef HAVE_SYS_ERRLIST 30860786Sps 309128345Stjr/* Define to 1 if you have the <sys/ioctl.h> header file. */ 31060786Sps#undef HAVE_SYS_IOCTL_H 31160786Sps 312128345Stjr/* Define to 1 if you have the <sys/stat.h> header file. */ 313128345Stjr#undef HAVE_SYS_STAT_H 314128345Stjr 315128345Stjr/* Define to 1 if you have the <sys/stream.h> header file. */ 31660786Sps#undef HAVE_SYS_STREAM_H 31760786Sps 318128345Stjr/* Define to 1 if you have the <sys/types.h> header file. */ 319128345Stjr#undef HAVE_SYS_TYPES_H 320128345Stjr 321128345Stjr/* Define to 1 if you have the <termcap.h> header file. */ 32260786Sps#undef HAVE_TERMCAP_H 32360786Sps 324128345Stjr/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */ 325128345Stjr#undef HAVE_TERMIOS_FUNCS 32660786Sps 327128345Stjr/* Define to 1 if you have the <termios.h> header file. */ 32860786Sps#undef HAVE_TERMIOS_H 32960786Sps 330128345Stjr/* Define to 1 if you have the <termio.h> header file. */ 331128345Stjr#undef HAVE_TERMIO_H 332128345Stjr 333128345Stjr/* Define to 1 if you have the <time.h> header file. */ 33460786Sps#undef HAVE_TIME_H 33560786Sps 336128345Stjr/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 337128345Stjr#undef HAVE_TIME_T 338128345Stjr 339128345Stjr/* Define to 1 if you have the <unistd.h> header file. */ 34060786Sps#undef HAVE_UNISTD_H 34160786Sps 342128345Stjr/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */ 343128345Stjr#undef HAVE_UPPER_LOWER 344128345Stjr 345128345Stjr/* Henry Spencer V8 regcomp() and regexp.h */ 346128345Stjr#undef HAVE_V8_REGCOMP 347128345Stjr 348128345Stjr/* Define to 1 if you have the <values.h> header file. */ 34960786Sps#undef HAVE_VALUES_H 35060786Sps 351128345Stjr/* Define HAVE_VOID if your compiler supports the "void" type. */ 352128345Stjr#undef HAVE_VOID 35360786Sps 354128345Stjr/* Define to 1 if you have the `_setjmp' function. */ 355128345Stjr#undef HAVE__SETJMP 35660786Sps 357128345Stjr/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h. 358128345Stjr */ 359128345Stjr#undef MUST_DEFINE_ERRNO 360128345Stjr 361128345Stjr/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in 362128345Stjr termcap.h. */ 363128345Stjr#undef MUST_DEFINE_OSPEED 364128345Stjr 365128345Stjr/* pattern matching is supported, but without metacharacters. */ 366128345Stjr#undef NO_REGEX 367128345Stjr 368128345Stjr/* Define to the address where bug reports for this package should be sent. */ 369128345Stjr#undef PACKAGE_BUGREPORT 370128345Stjr 371128345Stjr/* Define to the full name of this package. */ 372128345Stjr#undef PACKAGE_NAME 373128345Stjr 374128345Stjr/* Define to the full name and version of this package. */ 375128345Stjr#undef PACKAGE_STRING 376128345Stjr 377128345Stjr/* Define to the one symbol short name of this package. */ 378128345Stjr#undef PACKAGE_TARNAME 379128345Stjr 380128345Stjr/* Define to the version of this package. */ 381128345Stjr#undef PACKAGE_VERSION 382128345Stjr 383128345Stjr/* Define as the return type of signal handlers (`int' or `void'). */ 384128345Stjr#undef RETSIGTYPE 385128345Stjr 386161475Sdelphij/* Define SECURE_COMPILE=1 to build a secure version of less. */ 387161475Sdelphij#undef SECURE_COMPILE 388161475Sdelphij 389128345Stjr/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 390128345Stjr#undef STAT_MACROS_BROKEN 391128345Stjr 392128345Stjr/* Define to 1 if you have the ANSI C header files. */ 393128345Stjr#undef STDC_HEADERS 394128345Stjr 395128345Stjr/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 396128345Stjr#undef TIME_WITH_SYS_TIME 397128345Stjr 398128345Stjr/* Number of bits in a file offset, on hosts where this is settable. */ 399128345Stjr#undef _FILE_OFFSET_BITS 400128345Stjr 401128345Stjr/* Define for large files, on AIX-style hosts. */ 402128345Stjr#undef _LARGE_FILES 403128345Stjr 404128345Stjr/* Define to empty if `const' does not conform to ANSI C. */ 405128345Stjr#undef const 406128345Stjr 407170256Sdelphij/* Define to `long int' if <sys/types.h> does not define. */ 408128345Stjr#undef off_t 409128345Stjr 410170256Sdelphij/* Define to `unsigned int' if <sys/types.h> does not define. */ 411128345Stjr#undef size_t 412