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 && HAVE_POPEN) 84 85/* 86 * LOGFILE is 1 if you wish to allow the -o 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 LESSKEYINFILE_SYS SYSDIR "/syslesskey" 116#define LESSHISTFILE ".lesshst" 117 118 119/* Settings always true on Unix. */ 120 121/* 122 * Define MSDOS_COMPILER if compiling under Microsoft C. 123 */ 124#define MSDOS_COMPILER 0 125 126/* 127 * Pathname separator character. 128 */ 129#define PATHNAME_SEP "/" 130 131/* 132 * The value returned from tgetent on success. 133 * Some HP-UX systems return 0 on success. 134 */ 135#define TGETENT_OK 1 136 137/* 138 * HAVE_ANSI_PROTOS is 1 if your compiler supports ANSI function prototypes. 139 */ 140#define HAVE_ANSI_PROTOS 1 141 142/* 143 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 144 */ 145#define HAVE_SYS_TYPES_H 1 146 147/* 148 * Define if you have the <sgstat.h> header file. 149 */ 150#undef HAVE_SGSTAT_H 151 152/* 153 * HAVE_PERROR is 1 if your system has the perror() call. 154 * (Actually, if it has sys_errlist, sys_nerr and errno.) 155 */ 156#define HAVE_PERROR 1 157 158/* 159 * HAVE_TIME is 1 if your system has the time() call. 160 */ 161#define HAVE_TIME 1 162 163/* 164 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 165 */ 166#define HAVE_SHELL 1 167 168/* 169 * Default shell metacharacters and meta-escape character. 170 */ 171#define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~{}," 172#define DEF_METAESCAPE "\\" 173 174/* 175 * HAVE_DUP is 1 if your system has the dup() call. 176 */ 177#define HAVE_DUP 1 178 179/* Define to 1 if you have the memcpy() function. */ 180#define HAVE_MEMCPY 1 181 182/* Define to 1 if you have the strchr() function. */ 183#define HAVE_STRCHR 1 184 185/* Define to 1 if you have the strstr() function. */ 186#define HAVE_STRSTR 1 187 188/* Define to 1 to support reading lesskey source files (not just binary). */ 189#define HAVE_LESSKEYSRC 1 190 191/* 192 * Sizes of various buffers. 193 */ 194#if 0 /* old sizes for small memory machines */ 195#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 196#define UNGOT_SIZE 100 /* Max chars to unget() */ 197#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 198#define OUTBUF_SIZE 1024 /* Output buffer */ 199#define PROMPT_SIZE 200 /* Max size of prompt string */ 200#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 201#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 202#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 203#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 204#else /* more reasonable sizes for modern machines */ 205#define CMDBUF_SIZE 2048 /* Buffer for multichar commands */ 206#define UNGOT_SIZE 200 /* Max chars to unget() */ 207#define LINEBUF_SIZE 1024 /* Initial max size of line in input file */ 208#define OUTBUF_SIZE 1024 /* Output buffer */ 209#define PROMPT_SIZE 2048 /* Max size of prompt string */ 210#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 211#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 212#define TAGLINE_SIZE 1024 /* Max size of line in tags file */ 213#define TABSTOP_MAX 128 /* Max number of custom tab stops */ 214#endif 215 216/* Define as the return type of signal handlers (int or void). */ 217#define RETSIGTYPE void 218 219/* Settings automatically determined by configure. */ 220 221 222/* Define EDIT_PGM to your editor. */ 223#undef EDIT_PGM 224 225/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 226#undef HAVE_CONST 227 228/* Define to 1 if you have the <ctype.h> header file. */ 229#undef HAVE_CTYPE_H 230 231/* Define HAVE_ERRNO if you have the errno variable. */ 232#undef HAVE_ERRNO 233 234/* Define to 1 if you have the <errno.h> header file. */ 235#undef HAVE_ERRNO_H 236 237/* Define to 1 if you have the `fchmod' function. */ 238#undef HAVE_FCHMOD 239 240/* Define to 1 if you have the <fcntl.h> header file. */ 241#undef HAVE_FCNTL_H 242 243/* Define HAVE_FILENO if you have the fileno() macro. */ 244#undef HAVE_FILENO 245 246/* Define to 1 if you have the `fsync' function. */ 247#undef HAVE_FSYNC 248 249/* GNU regex library */ 250#undef HAVE_GNU_REGEX 251 252/* Define to 1 if you have the <inttypes.h> header file. */ 253#undef HAVE_INTTYPES_H 254 255/* Define to 1 if you have the <limits.h> header file. */ 256#undef HAVE_LIMITS_H 257 258/* Define to 1 if you have the <linux/magic.h> header file. */ 259#undef HAVE_LINUX_MAGIC_H 260 261/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 262#undef HAVE_LOCALE 263 264/* Define to 1 if you have the `nanosleep' function. */ 265#undef HAVE_NANOSLEEP 266 267/* Define to 1 if you have the <ncursesw/termcap.h> header file. */ 268#undef HAVE_NCURSESW_TERMCAP_H 269 270/* Define to 1 if you have the <ncurses/termcap.h> header file. */ 271#undef HAVE_NCURSES_TERMCAP_H 272 273/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */ 274#undef HAVE_OSPEED 275 276/* PCRE (Perl-compatible regular expression) library */ 277#undef HAVE_PCRE 278 279/* PCRE2 (Perl-compatible regular expression) library */ 280#undef HAVE_PCRE2 281 282/* Define to 1 if you have the `poll' function. */ 283#undef HAVE_POLL 284 285/* Define to 1 if you have the `popen' function. */ 286#undef HAVE_POPEN 287 288/* POSIX regcomp() and regex.h */ 289#undef HAVE_POSIX_REGCOMP 290 291/* Define HAVE_PROCFS if have have fstatfs with f_type and PROC_SUPER_MAGIC. 292 */ 293#undef HAVE_PROCFS 294 295/* Define to 1 if you have the `realpath' function. */ 296#undef HAVE_REALPATH 297 298/* System V regcmp() */ 299#undef HAVE_REGCMP 300 301/* */ 302#undef HAVE_REGEXEC2 303 304/* BSD re_comp() */ 305#undef HAVE_RE_COMP 306 307/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */ 308#undef HAVE_SIGEMPTYSET 309 310/* Define to 1 if you have the `sigprocmask' function. */ 311#undef HAVE_SIGPROCMASK 312 313/* Define to 1 if you have the `sigsetmask' function. */ 314#undef HAVE_SIGSETMASK 315 316/* Define to 1 if the system has the type `sigset_t'. */ 317#undef HAVE_SIGSET_T 318 319/* Define to 1 if you have the `snprintf' function. */ 320#undef HAVE_SNPRINTF 321 322/* Define to 1 if you have the `stat' function. */ 323#undef HAVE_STAT 324 325/* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */ 326#undef HAVE_STAT_INO 327 328/* Define to 1 if you have the <stdckdint.h> header file. */ 329#undef HAVE_STDCKDINT_H 330 331/* Define to 1 if you have the <stdint.h> header file. */ 332#undef HAVE_STDINT_H 333 334/* Define to 1 if you have the <stdio.h> header file. */ 335#undef HAVE_STDIO_H 336 337/* Define to 1 if you have the <stdlib.h> header file. */ 338#undef HAVE_STDLIB_H 339 340/* Define HAVE_STRERROR if you have the strerror() function. */ 341#undef HAVE_STRERROR 342 343/* Define to 1 if you have the <strings.h> header file. */ 344#undef HAVE_STRINGS_H 345 346/* Define to 1 if you have the <string.h> header file. */ 347#undef HAVE_STRING_H 348 349/* Define to 1 if you have the `strsignal' function. */ 350#undef HAVE_STRSIGNAL 351 352/* Define to 1 if you have the `system' function. */ 353#undef HAVE_SYSTEM 354 355/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */ 356#undef HAVE_SYS_ERRLIST 357 358/* Define to 1 if you have the <sys/ioctl.h> header file. */ 359#undef HAVE_SYS_IOCTL_H 360 361/* Define to 1 if you have the <sys/stat.h> header file. */ 362#undef HAVE_SYS_STAT_H 363 364/* Define to 1 if you have the <sys/stream.h> header file. */ 365#undef HAVE_SYS_STREAM_H 366 367/* Define to 1 if you have the <sys/types.h> header file. */ 368#undef HAVE_SYS_TYPES_H 369 370/* Define to 1 if you have the <sys/wait.h> header file. */ 371#undef HAVE_SYS_WAIT_H 372 373/* Define to 1 if you have the <termcap.h> header file. */ 374#undef HAVE_TERMCAP_H 375 376/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */ 377#undef HAVE_TERMIOS_FUNCS 378 379/* Define to 1 if you have the <termios.h> header file. */ 380#undef HAVE_TERMIOS_H 381 382/* Define to 1 if you have the <termio.h> header file. */ 383#undef HAVE_TERMIO_H 384 385/* Define to 1 if you have the <time.h> header file. */ 386#undef HAVE_TIME_H 387 388/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 389#undef HAVE_TIME_T 390 391/* Define to 1 if you have the `ttyname' function. */ 392#undef HAVE_TTYNAME 393 394/* Define to 1 if you have the <unistd.h> header file. */ 395#undef HAVE_UNISTD_H 396 397/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */ 398#undef HAVE_UPPER_LOWER 399 400/* Define to 1 if you have the `usleep' function. */ 401#undef HAVE_USLEEP 402 403/* Henry Spencer V8 regcomp() and regexp.h */ 404#undef HAVE_V8_REGCOMP 405 406/* Define to 1 if you have the <values.h> header file. */ 407#undef HAVE_VALUES_H 408 409/* Define HAVE_VOID if your compiler supports the "void" type. */ 410#undef HAVE_VOID 411 412/* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */ 413#undef HAVE_WCTYPE 414 415/* Define to 1 if you have the <wctype.h> header file. */ 416#undef HAVE_WCTYPE_H 417 418/* Define to 1 if you have the `_setjmp' function. */ 419#undef HAVE__SETJMP 420 421/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h. 422 */ 423#undef MUST_DEFINE_ERRNO 424 425/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in 426 termcap.h. */ 427#undef MUST_DEFINE_OSPEED 428 429/* pattern matching is supported, but without metacharacters. */ 430#undef NO_REGEX 431 432/* Define to the address where bug reports for this package should be sent. */ 433#undef PACKAGE_BUGREPORT 434 435/* Define to the full name of this package. */ 436#undef PACKAGE_NAME 437 438/* Define to the full name and version of this package. */ 439#undef PACKAGE_STRING 440 441/* Define to the one symbol short name of this package. */ 442#undef PACKAGE_TARNAME 443 444/* Define to the home page for this package. */ 445#undef PACKAGE_URL 446 447/* Define to the version of this package. */ 448#undef PACKAGE_VERSION 449 450/* Define SECURE_COMPILE=1 to build a secure version of less. */ 451#undef SECURE_COMPILE 452 453/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 454#undef STAT_MACROS_BROKEN 455 456/* Define to 1 if all of the C90 standard headers exist (not just the ones 457 required in a freestanding environment). This macro is provided for 458 backward compatibility; new code need not use it. */ 459#undef STDC_HEADERS 460 461/* Number of bits in a file offset, on hosts where this is settable. */ 462#undef _FILE_OFFSET_BITS 463 464/* Define for large files, on AIX-style hosts. */ 465#undef _LARGE_FILES 466 467/* Define to empty if `const' does not conform to ANSI C. */ 468#undef const 469 470/* Define to `long int' if <sys/types.h> does not define. */ 471#undef off_t 472 473/* Define to `unsigned int' if <sys/types.h> does not define. */ 474#undef size_t 475