home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / screen-3.5 / part02 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-25  |  10.6 KB  |  398 lines

  1. /* config.h.  Generated automatically by configure.  */
  2. /* Copyright (c) 1993
  3.  *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
  4.  *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
  5.  * Copyright (c) 1987 Oliver Laumann
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2, or (at your option)
  10.  * any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program (see the file COPYING); if not, write to the
  19.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  ****************************************************************
  22.  * $Id: config.h.in,v 1.4 1993/06/28 16:00:32 mlschroe Exp $ FAU
  23.  */
  24.  
  25.  
  26.  
  27.  
  28.  
  29. /**********************************************************************
  30.  *
  31.  *    User Configuration Section
  32.  */
  33.  
  34.  
  35.  
  36. /*
  37.  * Define HOMESOCKDIR if you want screen to put the named sockets in
  38.  * the user's home directory. Notice that this can cause you problems
  39.  * if some user's HOME directories are NFS-mounted and don't support
  40.  * named sockets. In such a case do not define HOMESOCKDIR and screen
  41.  * will create the socket directories in SOCKDIR. This should be in a
  42.  * common subdirectory, such as /local or /tmp. It makes things a
  43.  * little more secure if you choose a directory which is not writable
  44.  * by everyone or where the "sticky" bit is on, but this isn't required.
  45.  * Screen will name the subdirectories "S-$USER" (e.g /tmp/S-davison).
  46.  * Do not define TMPTEST unless it's for debugging purpose.
  47.  */
  48. #undef HOMESOCKDIR
  49.  
  50. #ifndef HOMESOCKDIR
  51. # ifndef TMPTEST
  52. #  define SOCKDIR "/usr/local/screens"
  53. # else
  54. #  define SOCKDIR "/tmp/testscreens"
  55. # endif
  56. #endif
  57.  
  58. /*
  59.  * Screen sources two startup files. First a global file with a path
  60.  * specified here, second your local $HOME/.screenrc
  61.  * Don't define this, if you don't want it.
  62.  */
  63. #define ETCSCREENRC "/usr/local/etc/screenrc"
  64.  
  65. /* 
  66.  * define PTYMODE if you do not like the default of 0622, which allows 
  67.  * public write to your pty.
  68.  * define PTYGROUP to some numerical group-id if you do not want the
  69.  * tty to be in "your" group.
  70.  * Note, screen is unable to change mode or group of the pty if it
  71.  * is not installed with sufficient privilege. (e.g. set-uid-root)
  72.  */
  73. #undef PTYMODE
  74. #undef PTYGROUP
  75.  
  76. /*
  77.  * If screen is NOT installed set-uid root, screen can provide tty
  78.  * security by exclusively locking the ptys.  While this keeps other
  79.  * users from opening your ptys, it also keeps your own subprocesses
  80.  * from being able to open /dev/tty.  Define LOCKPTY to add this
  81.  * exclusive locking.
  82.  */
  83. #undef LOCKPTY
  84.  
  85. /*
  86.  * If you'd rather see the status line on the first line of your
  87.  * terminal rather than the last, define TOPSTAT.
  88.  */
  89. #undef TOPSTAT
  90.  
  91. /*
  92.  * here come the erlangen extensions to screen:
  93.  * define LOCK if you want to use a lock program for a screenlock.
  94.  * define PASSWORD for secure reattach of your screen.
  95.  * define COPY_PASTE to use the famous hacker's treasure zoo.
  96.  * define POW_DETACH to have a detach_and_logout key.
  97.  * define REMOTE_DETACH (-d option) to move screen between terminals.
  98.  * define AUTO_NUKE to enable Tim MacKenzies clear screen nuking
  99.  * define PSEUDOS to allow window input/output filtering
  100.  * define MULTI to allow multiple attaches.
  101.  * define MULTIUSER to allow other users attach to your session
  102.  *                  (if they are in the acl, of course)
  103.  * (jw)
  104.  */
  105. #undef SIMPLESCREEN
  106. #ifndef SIMPLESCREEN
  107. # define LOCK
  108. # define PASSWORD
  109. # define COPY_PASTE
  110. # define REMOTE_DETACH
  111. # define POW_DETACH
  112. # define AUTO_NUKE
  113. # define PSEUDOS
  114. # define MULTI
  115. # define MULTIUSER
  116. #endif /* SIMPLESCREEN */
  117.  
  118. /*
  119.  * As error messages are mostly meaningless to the user, we
  120.  * try to throw out phrases that are somewhat more familiar
  121.  * to ...well, at least familiar to us NetHack players.
  122.  */
  123. #ifndef NONETHACK
  124. # define NETHACK
  125. #endif /* NONETHACK */
  126.  
  127. /*
  128.  * If screen is installed with permissions to update /etc/utmp (such
  129.  * as if it is installed set-uid root), define UTMPOK.
  130.  */
  131. #define UTMPOK
  132.  
  133. /* Set LOGINDEFAULT to one (1)
  134.  * if you want entries added to /etc/utmp by default, else set it to
  135.  * zero (0).
  136.  */
  137. #define LOGINDEFAULT    1
  138.  
  139.  
  140. /*
  141.  * If UTMPOK is defined and your system (incorrectly) counts logins by
  142.  * counting non-null entries in /etc/utmp (instead of counting non-null
  143.  * entries with no hostname that are not on a pseudo tty), define USRLIMIT
  144.  * to have screen put an upper-limit on the number of entries to write
  145.  * into /etc/utmp.  This helps to keep you from exceeding a limited-user
  146.  * license.
  147.  */
  148. #undef USRLIMIT
  149.  
  150.  
  151.  
  152. /**********************************************************************
  153.  *
  154.  *    End of User Configuration Section
  155.  *
  156.  *      Rest of this file is modified by 'configure'
  157.  *      Change at your own risk!
  158.  *
  159.  */
  160.  
  161. /*
  162.  * Some defines to identify special unix variants
  163.  */
  164. #ifndef SVR4
  165. #undef SVR4
  166. #endif
  167. #ifndef MIPS
  168. #undef MIPS
  169. #endif
  170.  
  171. /*
  172.  * Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).
  173.  */
  174. #define POSIX 1
  175.  
  176. /*
  177.  * Define BSDJOBS if you have BSD-style job control (both process
  178.  * groups and a tty that deals correctly with them).
  179.  */
  180. #define BSDJOBS 1
  181.  
  182. /*
  183.  * Define TERMIO if you have struct termio instead of struct sgttyb.
  184.  * This is usually the case for SVID systems, where BSD uses sgttyb.
  185.  * POSIX systems should define this anyway, even though they use
  186.  * struct termios.
  187.  */
  188. #define TERMIO 1
  189.  
  190. /*
  191.  * Define TERMINFO if your machine emulates the termcap routines
  192.  * with the terminfo database.
  193.  * Thus the .screenrc file is parsed for
  194.  * the command 'terminfo' and not 'termcap'.
  195.  */
  196. #undef TERMINFO
  197.  
  198. /*
  199.  * If your library does not define ospeed, define this.
  200.  */
  201. #undef NEED_OSPEED
  202.  
  203. /*
  204.  * Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)
  205.  */
  206. #ifndef SYSV
  207. #undef SYSV
  208. #endif
  209.  
  210. /*
  211.  * Define SIGVOID if your signal handlers return void.  On older
  212.  * systems, signal returns int, but on newer ones, it returns void.
  213.  */
  214. #define SIGVOID 1 
  215.  
  216. /*
  217.  * Define USESIGSET if you have sigset for BSD 4.1 reliable signals.
  218.  */
  219. #undef USESIGSET
  220.  
  221. /*
  222.  * Define SYSVSIGS if signal handlers must be reinstalled after
  223.  * they have been called.
  224.  */
  225. #undef SYSVSIGS
  226.  
  227. /*
  228.  * Define BSDWAIT if your system defines a 'union wait' in <sys/wait.h>
  229.  *
  230.  * Only allow BSDWAIT i.e. wait3 on nonposix systems, since
  231.  * posix implies wait(3) and waitpid(3). vdlinden@fwi.uva.nl
  232.  * 
  233.  */
  234. #ifndef POSIX
  235. #define BSDWAIT 1
  236. #endif
  237.  
  238. /*
  239.  * On RISCOS we prefer wait2() over wait3(). rouilj@sni-usa.com 
  240.  */
  241. #ifdef BSDWAIT
  242. #undef USE_WAIT2
  243. #endif
  244.  
  245. /*
  246.  * Define DIRENT if your system has <dirent.h> instead of <sys/dir.h>
  247.  */
  248. #define DIRENT 1
  249.  
  250. /*
  251.  * If your system has getutent(), pututline(), etc. to write to the
  252.  * utmp file, define GETUTENT.
  253.  */
  254. #undef GETUTENT
  255.  
  256. /*
  257.  * Define UTHOST if the utmp file has a host field.
  258.  */
  259. #define UTHOST 1
  260.  
  261. /*
  262.  * If ttyslot() breaks getlogin() by returning indexes to utmp entries
  263.  * of type DEAD_PROCESS, then our getlogin() replacement should be
  264.  * selected by defining BUGGYGETLOGIN.
  265.  */
  266. #undef BUGGYGETLOGIN
  267.  
  268. /*
  269.  * If your system does not have the calls setreuid() and setregid(),
  270.  * define NOREUID to force screen to use a forked process to safely
  271.  * create output files without retaining any special privileges.
  272.  * (Output logging will be disabled, however.)
  273.  */
  274. #undef NOREUID
  275.  
  276. /*
  277.  * If you want the "time" command to display the current load average
  278.  * define LOADAV. Maybe you must install screen with the needed
  279.  * privileges to read /dev/kmem.
  280.  * Note that NLIST_ stuff is only checked, when getloadavg() is not available.
  281.  */
  282. #undef LOADAV
  283.  
  284. #define LOADAV_NUM 3
  285. #define LOADAV_TYPE double
  286. #define LOADAV_SCALE 1
  287. #undef LOADAV_GETLOADAVG
  288. #undef LOADAV_UNIX
  289. #undef LOADAV_AVENRUN
  290.  
  291. #undef NLIST_STRUCT
  292. #undef NLIST_NAME_UNION
  293.  
  294. /*
  295.  * If your system has the new format /etc/ttys (like 4.3 BSD) and the
  296.  * getttyent(3) library functions, define GETTTYENT.
  297.  */
  298. #define GETTTYENT 1
  299.  
  300. /*
  301.  * Define USEBCOPY if the bcopy/memcpy from your system's C library
  302.  * supports the overlapping of source and destination blocks.  When
  303.  * undefined, screen uses its own (probably slower) version of bcopy().
  304.  * 
  305.  * SYSV machines may have a working memcpy() -- Oh, this is 
  306.  * quite unlikely. Tell me if you see one. (Juergen)
  307.  * But then, memmove() should work, if at all available.
  308.  */
  309. #define USEBCOPY 1
  310. #define USEMEMCPY 1
  311. #define USEMEMMOVE 1
  312.  
  313. /*
  314.  * If your system has vsprintf() and requires the use of the macros in
  315.  * "varargs.h" to use functions with variable arguments,
  316.  * define USEVARARGS.
  317.  */
  318. #undef USEVARARGS
  319.  
  320. /*
  321.  * If the select return value doesn't treat a descriptor that is
  322.  * usable for reading and writing as two hits, define SELECT_BROKEN.
  323.  */
  324. #undef SELECT_BROKEN
  325.  
  326. /*
  327.  * Define this if your system supports named pipes.
  328.  */
  329. #undef NAMEDPIPE
  330.  
  331. /*
  332.  * Define this if your system exits select() immediatly if a pipe is
  333.  * opened read-only and no writer has opened it.
  334.  */
  335. #undef BROKEN_PIPE
  336.  
  337. /*
  338.  * Define this if the unix-domain socket implementation doesn't
  339.  * create a socket in the filesystem.
  340.  */
  341. #undef SOCK_NOT_IN_FS
  342.  
  343. /*
  344.  * If your system has setenv() and unsetenv() define USESETENV
  345.  */
  346. #define USESETENV 1
  347.  
  348. /*
  349.  * If your system does not come with a setenv()/putenv()/getenv()
  350.  * functions, you may bring in our own code by defining NEEDPUTENV.
  351.  */
  352. #undef NEEDPUTENV
  353.  
  354. /*
  355.  * If the passwords are stored in a shadow file and you want the
  356.  * builtin lock to work properly, define SHADOWPW.
  357.  */
  358. #undef SHADOWPW
  359.  
  360. /*
  361.  * If you are on a SYS V machine that restricts filename length to 14 
  362.  * characters, you may need to enforce that by setting NAME_MAX to 14
  363.  */
  364. #undef NAME_MAX        /* KEEP_UNDEF_HERE override system value */
  365. #undef NAME_MAX
  366.  
  367. /* 
  368.  * define PTYRANGE0 and or PTYRANGE1 if you want to adapt screen
  369.  * to unusual environments. E.g. For SunOs the defaults are "qpr" and 
  370.  * "0123456789abcdef". For SunOs 4.1.2 
  371.  * #define PTYRANGE0 "pqrstuvwxyzPQRST" 
  372.  * is recommended by Dan Jacobson.
  373.  */
  374. #define PTYRANGE0 "pqv"
  375. #define PTYRANGE1 "0123456789abcdef"
  376.  
  377. /*
  378.  * some defines to prevent redeclarations/retypedefs
  379.  */
  380. #define CRYPT_DECLARED 1
  381. #define GETHOSTNAME_DECLARED 1
  382. #define KILLSTUFF_DECLARED 1
  383. #define MEMFUNCS_DECLARED 1
  384. #undef MKNOD_DECLARED
  385. #undef NLIST_DECLARED
  386. #define PUTENV_DECLARED 1
  387. #define REUID_DECLARED 1
  388. #define SETPGID_DECLARED 1
  389. #define VPRNT_DECLARED 1
  390. #define WAITSTUFF_DECLARED 1
  391. #define GETDTABLESIZE_DECLARED 1
  392. #define SELECT_DECLARED 1
  393. #define INDEX_DECLARED 1
  394.  
  395. #define SIG_T_DEFINED 1
  396. #define PID_T_DEFINED 1
  397. #define UID_T_DEFINED 1
  398.