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