home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / text / less-278.lha / less-278 / src.lha / source / defines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-02  |  6.7 KB  |  260 lines

  1. /* defines.h.  Generated automatically by configure.  */
  2. /* defines.h.in.  Generated automatically from configure.in by autoheader.  */
  3. /* Unix definition file for less.  -*- C -*-
  4.  *
  5.  * This file has 3 sections:
  6.  * User preferences.
  7.  * Settings always true on Unix.
  8.  * Settings automatically determined by configure.
  9.  *
  10.  * * * * * *  WARNING  * * * * * *
  11.  * If you edit defines.h by hand, do "touch stamp-h" before you run make
  12.  * so config.status doesn't overwrite your changes.
  13.  */
  14.  
  15. /* User preferences.  */
  16.  
  17. /*
  18.  * SECURE is 1 if you wish to disable a bunch of features in order to
  19.  * be safe to run by unprivileged users.
  20.  */
  21. #define    SECURE        0
  22.  
  23. /*
  24.  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
  25.  * (This is possible only if your system supplies the system() function.)
  26.  */
  27. #define    SHELL_ESCAPE    (!SECURE)
  28.  
  29. /*
  30.  * EXAMINE is 1 if you wish to allow examining files by name from within less.
  31.  */
  32. #define    EXAMINE        (!SECURE)
  33.  
  34. /*
  35.  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
  36.  * to complete filenames at prompts.
  37.  */
  38. #define    TAB_COMPLETE_FILENAME    (!SECURE)
  39.  
  40. /*
  41.  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
  42.  * previous commands at prompts.
  43.  */
  44. #define    CMD_HISTORY    1
  45.  
  46. /*
  47.  * HILITE_SEARCH is 1 if you wish to have search targets to be 
  48.  * displayed in standout mode.
  49.  */
  50. #define    HILITE_SEARCH    1
  51.  
  52. /*
  53.  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
  54.  * (This is possible only if your system supplies the system() function.)
  55.  * EDIT_PGM is the name of the (default) editor to be invoked.
  56.  */
  57. #define    EDITOR        (!SECURE)
  58. #define    EDIT_PGM    "vi"
  59.  
  60. /*
  61.  * TAGS is 1 if you wish to support tag files.
  62.  */
  63. #define    TAGS        (!SECURE)
  64.  
  65. /*
  66.  * USERFILE is 1 if you wish to allow a .less file to specify 
  67.  * user-defined key bindings.
  68.  */
  69. #define    USERFILE    (!SECURE)
  70.  
  71. /*
  72.  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
  73.  * This will generally work if your system provides the "popen" function
  74.  * and the "echo" shell command.
  75.  */
  76. #define    GLOB        (!SECURE)
  77.  
  78. /*
  79.  * PIPEC is 1 if you wish to have the "|" command
  80.  * which allows the user to pipe data into a shell command.
  81.  */
  82. #define    PIPEC        (!SECURE)
  83.  
  84. /*
  85.  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
  86.  */
  87. #define    LOGFILE        (!SECURE)
  88.  
  89. /*
  90.  * ONLY_RETURN is 1 if you want RETURN to be the only input which
  91.  * will continue past an error message.
  92.  * Otherwise, any key will continue past an error message.
  93.  */
  94. #define    ONLY_RETURN    0
  95.  
  96. /*
  97.  * LESSKEYFILE is the filename of the default lesskey output file 
  98.  * (in the HOME directory).
  99.  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
  100.  * (in the HOME directory).
  101.  */
  102. #define    LESSKEYFILE        ".less"
  103. #define    DEF_LESSKEYINFILE    ".lesskey"
  104.  
  105.  
  106. /* Settings always true on Unix.  */
  107.  
  108. /*
  109.  * Define MSOFTC if compiling under Microsoft C.
  110.  */
  111. #define    MSOFTC    0
  112.  
  113. /*
  114.  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
  115.  */
  116. #define HAVE_SYS_TYPES_H    1
  117.  
  118. /*
  119.  * HAVE_STAT is 1 if your system has the stat() call.
  120.  */
  121. #define    HAVE_STAT    1
  122.  
  123. /*
  124.  * HAVE_PERROR is 1 if your system has the perror() call.
  125.  * (Actually, if it has sys_errlist, sys_nerr and errno.)
  126.  */
  127. #define    HAVE_PERROR    1
  128.  
  129. /*
  130.  * HAVE_TIME is 1 if your system has the time() call.
  131.  */
  132. #define    HAVE_TIME    1
  133.  
  134. /*
  135.  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
  136.  */
  137. #define    HAVE_SHELL    1
  138.  
  139. /* Settings automatically determined by configure.  */
  140.  
  141. /* Define to `long' if <sys/types.h> doesn't define.  */
  142. /* #undef off_t */
  143.  
  144. /* Define if you need to in order for stat and other things to work.  */
  145. /* #undef _POSIX_SOURCE */
  146.  
  147. /* Define as the return type of signal handlers (int or void).  */
  148. #define RETSIGTYPE void
  149.  
  150. /* Define if you have the ANSI C header files.  */
  151. /* #undef STDC_HEADERS */
  152.  
  153. /*
  154.  * Regular expression library.
  155.  * Define exactly one of the following to be 1:
  156.  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
  157.  * HAVE_RE_COMP: BSD re_comp()
  158.  * HAVE_REGCMP: System V regcmp()
  159.  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
  160.  * NO_REGEX: pattern matching is supported, but without metacharacters.
  161.  */
  162. /* #undef HAVE_POSIX_REGCOMP */
  163. /* #undef HAVE_RE_COMP */
  164. /* #undef HAVE_REGCMP */
  165. #define HAVE_V8_REGCOMP 1
  166. /* #undef NO_REGEX */
  167.  
  168. /* Define HAVE_VOID if your compiler supports the "void" type. */
  169. #define HAVE_VOID 1
  170.  
  171. /* Define HAVE_TIME_T if your system supports the "time_t" type. */
  172. #define HAVE_TIME_T 1
  173.  
  174. /* Define HAVE_STRERROR if you have the strerror() function. */
  175. #define HAVE_STRERROR 1
  176.  
  177. /* Define HAVE_FILENO if you have the fileno() macro. */
  178. #define HAVE_FILENO 1
  179.  
  180. /* Define HAVE_ERRNO if you have the errno variable */
  181. #define HAVE_ERRNO 1
  182.  
  183. /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
  184. #define HAVE_SYS_ERRLIST 1
  185.  
  186. /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
  187. #define HAVE_OSPEED 1
  188. /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
  189.  * in termcap.h. */
  190. #define MUST_DEFINE_OSPEED 1
  191.  
  192. /* Define HAVE_LOCALE if you have locale.h and setlocale. */
  193. /* #undef HAVE_LOCALE */
  194.  
  195. /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
  196. #define HAVE_TERMIOS_FUNCS 1
  197.  
  198. /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
  199. #define HAVE_UPPER_LOWER 1
  200.  
  201. /* Define if you have the _setjmp function.  */
  202. #define HAVE__SETJMP 1
  203.  
  204. /* Define if you have the memcpy function.  */
  205. #define HAVE_MEMCPY 1
  206.  
  207. /* Define if you have the sigsetmask function.  */
  208. #define HAVE_SIGSETMASK 1
  209.  
  210. /* Define if you have the strchr function.  */
  211. #define HAVE_STRCHR 1
  212.  
  213. /* Define if you have the system function.  */
  214. #define HAVE_SYSTEM 1
  215.  
  216. /* Define if you have the <ctype.h> header file.  */
  217. #define HAVE_CTYPE_H 1
  218.  
  219. /* Define if you have the <errno.h> header file.  */
  220. #define HAVE_ERRNO_H 1
  221.  
  222. /* Define if you have the <fcntl.h> header file.  */
  223. #define HAVE_FCNTL_H 1
  224.  
  225. /* Define if you have the <stdio.h> header file.  */
  226. #define HAVE_STDIO_H 1
  227.  
  228. /* Define if you have the <sys/ioctl.h> header file.  */
  229. #define HAVE_SYS_IOCTL_H 1
  230.  
  231. /* Define if you have the <sys/ptem.h> header file.  */
  232. /* #undef HAVE_SYS_PTEM_H */
  233.  
  234. /* Define if you have the <sys/stream.h> header file.  */
  235. /* #undef HAVE_SYS_STREAM_H */
  236.  
  237. /* Define if you have the <termcap.h> header file.  */
  238. /* #undef HAVE_TERMCAP_H */
  239.  
  240. /* Define if you have the <termio.h> header file.  */
  241. /* #undef HAVE_TERMIO_H */
  242.  
  243. /* Define if you have the <termios.h> header file.  */
  244. #define HAVE_TERMIOS_H 1
  245.  
  246. /* Define if you have the <time.h> header file.  */
  247. #define HAVE_TIME_H 1
  248.  
  249. /* Define if you have the <unistd.h> header file.  */
  250. #define HAVE_UNISTD_H 1
  251.  
  252. /* Define if you have the <values.h> header file.  */
  253. #define HAVE_VALUES_H 1
  254.  
  255. /* Define if you have the gen library (-lgen).  */
  256. /* #undef HAVE_LIBGEN */
  257.  
  258. /* Define if you have the intl library (-lintl).  */
  259. /* #undef HAVE_LIBINTL */
  260.