home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / less-321-src.tgz / tar.out / fsf / less / defines.h.in < prev    next >
Text File  |  1996-09-28  |  8KB  |  307 lines

  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. #define    EDIT_PGM    "vi"
  58.  
  59. /*
  60.  * TAGS is 1 if you wish to support tag files.
  61.  */
  62. #define    TAGS        (!SECURE)
  63.  
  64. /*
  65.  * USERFILE is 1 if you wish to allow a .less file to specify 
  66.  * user-defined key bindings.
  67.  */
  68. #define    USERFILE    (!SECURE)
  69.  
  70. /*
  71.  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
  72.  * This will generally work if your system provides the "popen" function
  73.  * and the "echo" shell command.
  74.  */
  75. #define    GLOB        (!SECURE)
  76.  
  77. /*
  78.  * PIPEC is 1 if you wish to have the "|" command
  79.  * which allows the user to pipe data into a shell command.
  80.  */
  81. #define    PIPEC        (!SECURE)
  82.  
  83. /*
  84.  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
  85.  */
  86. #define    LOGFILE        (!SECURE)
  87.  
  88. /*
  89.  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
  90.  * line options --help and --version.
  91.  */
  92. #define    GNU_OPTIONS    1
  93.  
  94. /*
  95.  * ONLY_RETURN is 1 if you want RETURN to be the only input which
  96.  * will continue past an error message.
  97.  * Otherwise, any key will continue past an error message.
  98.  */
  99. #define    ONLY_RETURN    0
  100.  
  101. /*
  102.  * LESSKEYFILE is the filename of the default lesskey output file 
  103.  * (in the HOME directory).
  104.  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
  105.  * (in the HOME directory).
  106.  */
  107. #define    LESSKEYFILE        ".less"
  108. #define    DEF_LESSKEYINFILE    ".lesskey"
  109.  
  110.  
  111. /* Settings always true on Unix.  */
  112.  
  113. /*
  114.  * Define MSDOS_COMPILER if compiling under Microsoft C.
  115.  */
  116. #define    MSDOS_COMPILER    0
  117.  
  118. /*
  119.  * Pathname separator character.
  120.  */
  121. #define    PATHNAME_SEP    "/"
  122.  
  123. /*
  124.  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
  125.  */
  126. #define HAVE_SYS_TYPES_H    1
  127.  
  128. /*
  129.  * Define if you have the <sgstat.h> header file.
  130.  */
  131. #undef HAVE_SGSTAT_H
  132.  
  133. /*
  134.  * HAVE_STAT is 1 if your system has the stat() call.
  135.  */
  136. #define    HAVE_STAT    1
  137.  
  138. /*
  139.  * HAVE_PERROR is 1 if your system has the perror() call.
  140.  * (Actually, if it has sys_errlist, sys_nerr and errno.)
  141.  */
  142. #define    HAVE_PERROR    1
  143.  
  144. /*
  145.  * HAVE_TIME is 1 if your system has the time() call.
  146.  */
  147. #define    HAVE_TIME    1
  148.  
  149. /*
  150.  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
  151.  */
  152. #define    HAVE_SHELL    1
  153.  
  154. /* 
  155.  * HAVE_DUP is 1 if your system has the dup() call.
  156.  */
  157. #define    HAVE_DUP    1
  158.  
  159. /*
  160.  * Sizes of various buffers.
  161.  */
  162. #define    CMDBUF_SIZE    512    /* Buffer for multichar commands */
  163. #define    UNGOT_SIZE    100    /* Max chars to unget() */
  164. #define    LINEBUF_SIZE    1024    /* Max size of line in input file */
  165. #define    OUTBUF_SIZE    1024    /* Output buffer */
  166. #define    PROMPT_SIZE    200    /* Max size of prompt string */
  167. #define    TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
  168. #define    TERMSBUF_SIZE    1024    /* Buffer to hold termcap strings */
  169. #define    TAGLINE_SIZE    512    /* Max size of line in tags file */
  170.  
  171. /* Settings automatically determined by configure.  */
  172.  
  173. /* Define to `long' if <sys/types.h> doesn't define.  */
  174. #undef off_t
  175.  
  176. /* Define if you need to in order for stat and other things to work.  */
  177. #undef _POSIX_SOURCE
  178.  
  179. /* Define as the return type of signal handlers (int or void).  */
  180. #undef RETSIGTYPE
  181.  
  182. /* Define if you have the ANSI C header files.  */
  183. #undef STDC_HEADERS
  184.  
  185. /*
  186.  * Regular expression library.
  187.  * Define exactly one of the following to be 1:
  188.  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
  189.  * HAVE_RE_COMP: BSD re_comp()
  190.  * HAVE_REGCMP: System V regcmp()
  191.  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
  192.  * NO_REGEX: pattern matching is supported, but without metacharacters.
  193.  */
  194. #undef HAVE_POSIX_REGCOMP
  195. #undef HAVE_RE_COMP
  196. #undef HAVE_REGCMP
  197. #undef HAVE_V8_REGCOMP
  198. #undef NO_REGEX
  199.  
  200. /* Define HAVE_VOID if your compiler supports the "void" type. */
  201. #undef HAVE_VOID
  202.  
  203. /* Define HAVE_CONST if your compiler supports the "const" modifier. */
  204. #undef HAVE_CONST
  205.  
  206. /* Define HAVE_TIME_T if your system supports the "time_t" type. */
  207. #undef HAVE_TIME_T
  208.  
  209. /* Define HAVE_STRERROR if you have the strerror() function. */
  210. #undef HAVE_STRERROR
  211.  
  212. /* Define HAVE_FILENO if you have the fileno() macro. */
  213. #undef HAVE_FILENO
  214.  
  215. /* Define HAVE_ERRNO if you have the errno variable */
  216. /* Define MUST_DEFINE_ERRNO if you have errno but it is not define 
  217.  * in errno.h */
  218. #undef HAVE_ERRNO
  219. #undef MUST_DEFINE_ERRNO
  220.  
  221. /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
  222. #undef HAVE_SYS_ERRLIST
  223.  
  224. /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
  225. /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
  226.  * in termcap.h. */
  227. #undef HAVE_OSPEED
  228. #undef MUST_DEFINE_OSPEED
  229.  
  230. /* Define HAVE_LOCALE if you have locale.h and setlocale. */
  231. #undef HAVE_LOCALE
  232.  
  233. /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
  234. #undef HAVE_TERMIOS_FUNCS
  235.  
  236. /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
  237. #undef HAVE_UPPER_LOWER
  238.  
  239. /* Define if you have the _setjmp function.  */
  240. #undef HAVE__SETJMP
  241.  
  242. /* Define if you have the memcpy function.  */
  243. #undef HAVE_MEMCPY
  244.  
  245. /* Define if you have the sigsetmask function.  */
  246. #undef HAVE_SIGSETMASK
  247.  
  248. /* Define if you have the strchr function.  */
  249. #undef HAVE_STRCHR
  250.  
  251. /* Define if you have the system function.  */
  252. #undef HAVE_SYSTEM
  253.  
  254. /* Define if you have the <ctype.h> header file.  */
  255. #undef HAVE_CTYPE_H
  256.  
  257. /* Define if you have the <errno.h> header file.  */
  258. #undef HAVE_ERRNO_H
  259.  
  260. /* Define if you have the <fcntl.h> header file.  */
  261. #undef HAVE_FCNTL_H
  262.  
  263. /* Define if you have the <limits.h> header file.  */
  264. #undef HAVE_LIMITS_H
  265.  
  266. /* Define if you have the <stdio.h> header file.  */
  267. #undef HAVE_STDIO_H
  268.  
  269. /* Define if you have the <string.h> header file.  */
  270. #undef HAVE_STRING_H
  271.  
  272. /* Define if you have the <sys/ioctl.h> header file.  */
  273. #undef HAVE_SYS_IOCTL_H
  274.  
  275. /* Define if you have the <sys/ptem.h> header file.  */
  276. #undef HAVE_SYS_PTEM_H
  277.  
  278. /* Define if you have the <sys/stream.h> header file.  */
  279. #undef HAVE_SYS_STREAM_H
  280.  
  281. /* Define if you have the <termcap.h> header file.  */
  282. #undef HAVE_TERMCAP_H
  283.  
  284. /* Define if you have the <termio.h> header file.  */
  285. #undef HAVE_TERMIO_H
  286.  
  287. /* Define if you have the <termios.h> header file.  */
  288. #undef HAVE_TERMIOS_H
  289.  
  290. /* Define if you have the <time.h> header file.  */
  291. #undef HAVE_TIME_H
  292.  
  293. /* Define if you have the <unistd.h> header file.  */
  294. #undef HAVE_UNISTD_H
  295.  
  296. /* Define if you have the <values.h> header file.  */
  297. #undef HAVE_VALUES_H
  298.  
  299. /* Define if you have the PW library (-lPW).  */
  300. #undef HAVE_LIBPW
  301.  
  302. /* Define if you have the gen library (-lgen).  */
  303. #undef HAVE_LIBGEN
  304.  
  305. /* Define if you have the intl library (-lintl).  */
  306. #undef HAVE_LIBINTL
  307.