1 |
227 |
jeremybenn |
/* Copyright 2004 Per Bothner
|
2 |
|
|
* Based on config.h from screen-4.0.2.
|
3 |
|
|
* Copyright (c) 1993-2000
|
4 |
|
|
* Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
|
5 |
|
|
* Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
|
6 |
|
|
* Copyright (c) 1987 Oliver Laumann
|
7 |
|
|
*
|
8 |
|
|
* This program is free software; you can redistribute it and/or modify
|
9 |
|
|
* it under the terms of the GNU General Public License as published by
|
10 |
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
11 |
|
|
* any later version.
|
12 |
|
|
*
|
13 |
|
|
* This program is distributed in the hope that it will be useful,
|
14 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 |
|
|
* GNU General Public License for more details.
|
17 |
|
|
*
|
18 |
|
|
* You should have received a copy of the GNU General Public License
|
19 |
|
|
* along with this program (see the file COPYING); if not, write to the
|
20 |
|
|
* Free Software Foundation, Inc.,
|
21 |
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
22 |
|
|
*
|
23 |
|
|
****************************************************************
|
24 |
|
|
* $Id: config.h.in,v 1.12 1994/05/31 12:31:36 mlschroe Exp $ FAU
|
25 |
|
|
*/
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
/**********************************************************************
|
32 |
|
|
*
|
33 |
|
|
* User Configuration Section
|
34 |
|
|
*/
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
/*
|
38 |
|
|
* define PTYMODE if you do not like the default of 0622, which allows
|
39 |
|
|
* public write to your pty.
|
40 |
|
|
* define PTYGROUP to some numerical group-id if you do not want the
|
41 |
|
|
* tty to be in "your" group.
|
42 |
|
|
* Note, screen is unable to change mode or group of the pty if it
|
43 |
|
|
* is not installed with sufficient privilege. (e.g. set-uid-root)
|
44 |
|
|
* define PTYROFS if the /dev/pty devices are mounted on a read-only
|
45 |
|
|
* filesystem so screen should not even attempt to set mode or group
|
46 |
|
|
* even if running as root (e.g. on TiVo).
|
47 |
|
|
*/
|
48 |
|
|
#undef PTYMODE
|
49 |
|
|
#undef PTYGROUP
|
50 |
|
|
#undef PTYROFS
|
51 |
|
|
|
52 |
|
|
/*
|
53 |
|
|
* If screen is NOT installed set-uid root, screen can provide tty
|
54 |
|
|
* security by exclusively locking the ptys. While this keeps other
|
55 |
|
|
* users from opening your ptys, it also keeps your own subprocesses
|
56 |
|
|
* from being able to open /dev/tty. Define LOCKPTY to add this
|
57 |
|
|
* exclusive locking.
|
58 |
|
|
*/
|
59 |
|
|
#undef LOCKPTY
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
/**********************************************************************
|
63 |
|
|
*
|
64 |
|
|
* End of User Configuration Section
|
65 |
|
|
*
|
66 |
|
|
* Rest of this file is modified by 'configure'
|
67 |
|
|
* Change at your own risk!
|
68 |
|
|
*
|
69 |
|
|
*/
|
70 |
|
|
|
71 |
|
|
/*
|
72 |
|
|
* Some defines to identify special unix variants
|
73 |
|
|
*/
|
74 |
|
|
#ifndef SVR4
|
75 |
|
|
#undef SVR4
|
76 |
|
|
#endif
|
77 |
|
|
|
78 |
|
|
#ifndef _POSIX_SOURCE
|
79 |
|
|
#undef _POSIX_SOURCE
|
80 |
|
|
#endif
|
81 |
|
|
|
82 |
|
|
/*
|
83 |
|
|
* Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).
|
84 |
|
|
*/
|
85 |
|
|
#undef POSIX
|
86 |
|
|
|
87 |
|
|
/*
|
88 |
|
|
* Define TERMIO if you have struct termio instead of struct sgttyb.
|
89 |
|
|
* This is usually the case for SVID systems, where BSD uses sgttyb.
|
90 |
|
|
* POSIX systems should define this anyway, even though they use
|
91 |
|
|
* struct termios.
|
92 |
|
|
*/
|
93 |
|
|
#undef TERMIO
|
94 |
|
|
|
95 |
|
|
/*
|
96 |
|
|
* Define CYTERMIO if you have cyrillic termio modes.
|
97 |
|
|
*/
|
98 |
|
|
#undef CYTERMIO
|
99 |
|
|
|
100 |
|
|
/*
|
101 |
|
|
* Define TERMINFO if your machine emulates the termcap routines
|
102 |
|
|
* with the terminfo database.
|
103 |
|
|
* Thus the .screenrc file is parsed for
|
104 |
|
|
* the command 'terminfo' and not 'termcap'.
|
105 |
|
|
*/
|
106 |
|
|
#undef TERMINFO
|
107 |
|
|
|
108 |
|
|
/*
|
109 |
|
|
* If your library does not define ospeed, define this.
|
110 |
|
|
*/
|
111 |
|
|
#undef NEED_OSPEED
|
112 |
|
|
|
113 |
|
|
/*
|
114 |
|
|
* Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)
|
115 |
|
|
*/
|
116 |
|
|
#ifndef SYSV
|
117 |
|
|
#undef SYSV
|
118 |
|
|
#endif
|
119 |
|
|
|
120 |
|
|
/*
|
121 |
|
|
* Define SIGVOID if your signal handlers return void. On older
|
122 |
|
|
* systems, signal returns int, but on newer ones, it returns void.
|
123 |
|
|
*/
|
124 |
|
|
#undef SIGVOID
|
125 |
|
|
|
126 |
|
|
/*
|
127 |
|
|
* Define USESIGSET if you have sigset for BSD 4.1 reliable signals.
|
128 |
|
|
*/
|
129 |
|
|
#undef USESIGSET
|
130 |
|
|
|
131 |
|
|
/*
|
132 |
|
|
* Define SYSVSIGS if signal handlers must be reinstalled after
|
133 |
|
|
* they have been called.
|
134 |
|
|
*/
|
135 |
|
|
#undef SYSVSIGS
|
136 |
|
|
|
137 |
|
|
/*
|
138 |
|
|
* Define BSDWAIT if your system defines a 'union wait' in
|
139 |
|
|
*
|
140 |
|
|
* Only allow BSDWAIT i.e. wait3 on nonposix systems, since
|
141 |
|
|
* posix implies wait(3) and waitpid(3). vdlinden@fwi.uva.nl
|
142 |
|
|
*
|
143 |
|
|
*/
|
144 |
|
|
#ifndef POSIX
|
145 |
|
|
#undef BSDWAIT
|
146 |
|
|
#endif
|
147 |
|
|
|
148 |
|
|
/*
|
149 |
|
|
* On RISCOS we prefer wait2() over wait3(). rouilj@sni-usa.com
|
150 |
|
|
*/
|
151 |
|
|
#ifdef BSDWAIT
|
152 |
|
|
#undef USE_WAIT2
|
153 |
|
|
#endif
|
154 |
|
|
|
155 |
|
|
/*
|
156 |
|
|
* Define if you have the utempter utmp helper program
|
157 |
|
|
*/
|
158 |
|
|
#undef HAVE_UTEMPTER
|
159 |
|
|
|
160 |
|
|
/*
|
161 |
|
|
* If ttyslot() breaks getlogin() by returning indexes to utmp entries
|
162 |
|
|
* of type DEAD_PROCESS, then our getlogin() replacement should be
|
163 |
|
|
* selected by defining BUGGYGETLOGIN.
|
164 |
|
|
*/
|
165 |
|
|
#undef BUGGYGETLOGIN
|
166 |
|
|
|
167 |
|
|
/*
|
168 |
|
|
* If your system has the calls setreuid() and setregid(),
|
169 |
|
|
* define HAVE_SETREUID. Otherwise screen will use a forked process to
|
170 |
|
|
* safely create output files without retaining any special privileges.
|
171 |
|
|
*/
|
172 |
|
|
#undef HAVE_SETREUID
|
173 |
|
|
|
174 |
|
|
/*
|
175 |
|
|
* If your system supports BSD4.4's seteuid() and setegid(), define
|
176 |
|
|
* HAVE_SETEUID.
|
177 |
|
|
*/
|
178 |
|
|
#undef HAVE_SETEUID
|
179 |
|
|
|
180 |
|
|
/*
|
181 |
|
|
* If you want the "time" command to display the current load average
|
182 |
|
|
* define LOADAV. Maybe you must install screen with the needed
|
183 |
|
|
* privileges to read /dev/kmem.
|
184 |
|
|
* Note that NLIST_ stuff is only checked, when getloadavg() is not available.
|
185 |
|
|
*/
|
186 |
|
|
#undef LOADAV
|
187 |
|
|
|
188 |
|
|
#undef LOADAV_NUM
|
189 |
|
|
#undef LOADAV_TYPE
|
190 |
|
|
#undef LOADAV_SCALE
|
191 |
|
|
#undef LOADAV_GETLOADAVG
|
192 |
|
|
#undef LOADAV_UNIX
|
193 |
|
|
#undef LOADAV_AVENRUN
|
194 |
|
|
#undef LOADAV_USE_NLIST64
|
195 |
|
|
|
196 |
|
|
#undef NLIST_DECLARED
|
197 |
|
|
#undef NLIST_STRUCT
|
198 |
|
|
#undef NLIST_NAME_UNION
|
199 |
|
|
|
200 |
|
|
/*
|
201 |
|
|
* If your system has the new format /etc/ttys (like 4.3 BSD) and the
|
202 |
|
|
* getttyent(3) library functions, define GETTTYENT.
|
203 |
|
|
*/
|
204 |
|
|
#undef GETTTYENT
|
205 |
|
|
|
206 |
|
|
/*
|
207 |
|
|
* Define USEBCOPY if the bcopy/memcpy from your system's C library
|
208 |
|
|
* supports the overlapping of source and destination blocks. When
|
209 |
|
|
* undefined, screen uses its own (probably slower) version of bcopy().
|
210 |
|
|
*
|
211 |
|
|
* SYSV machines may have a working memcpy() -- Oh, this is
|
212 |
|
|
* quite unlikely. Tell me if you see one.
|
213 |
|
|
* "But then, memmove() should work, if at all available" he thought...
|
214 |
|
|
* Boing, never say "works everywhere" unless you checked SCO UNIX.
|
215 |
|
|
* Their memove fails the test in the configure script. Sigh. (Juergen)
|
216 |
|
|
*/
|
217 |
|
|
#undef USEBCOPY
|
218 |
|
|
#undef USEMEMCPY
|
219 |
|
|
#undef USEMEMMOVE
|
220 |
|
|
|
221 |
|
|
/*
|
222 |
|
|
* If your system has vsprintf() and requires the use of the macros in
|
223 |
|
|
* "varargs.h" to use functions with variable arguments,
|
224 |
|
|
* define USEVARARGS.
|
225 |
|
|
*/
|
226 |
|
|
#undef USEVARARGS
|
227 |
|
|
|
228 |
|
|
/*
|
229 |
|
|
* If your system has strerror() define this.
|
230 |
|
|
*/
|
231 |
|
|
#undef HAVE_STRERROR
|
232 |
|
|
|
233 |
|
|
/*
|
234 |
|
|
* If the select return value doesn't treat a descriptor that is
|
235 |
|
|
* usable for reading and writing as two hits, define SELECT_BROKEN.
|
236 |
|
|
*/
|
237 |
|
|
#undef SELECT_BROKEN
|
238 |
|
|
|
239 |
|
|
/*
|
240 |
|
|
* Define this if your system supports named pipes.
|
241 |
|
|
*/
|
242 |
|
|
#undef NAMEDPIPE
|
243 |
|
|
|
244 |
|
|
/*
|
245 |
|
|
* Define this if your system exits select() immediatly if a pipe is
|
246 |
|
|
* opened read-only and no writer has opened it.
|
247 |
|
|
*/
|
248 |
|
|
#undef BROKEN_PIPE
|
249 |
|
|
|
250 |
|
|
/*
|
251 |
|
|
* Define this if the unix-domain socket implementation doesn't
|
252 |
|
|
* create a socket in the filesystem.
|
253 |
|
|
*/
|
254 |
|
|
#undef SOCK_NOT_IN_FS
|
255 |
|
|
|
256 |
|
|
/*
|
257 |
|
|
* If your system has setenv() and unsetenv() define USESETENV
|
258 |
|
|
*/
|
259 |
|
|
#undef USESETENV
|
260 |
|
|
|
261 |
|
|
/*
|
262 |
|
|
* If your system does not come with a setenv()/putenv()/getenv()
|
263 |
|
|
* functions, you may bring in our own code by defining NEEDPUTENV.
|
264 |
|
|
*/
|
265 |
|
|
#undef NEEDPUTENV
|
266 |
|
|
|
267 |
|
|
/*
|
268 |
|
|
* If the passwords are stored in a shadow file and you want the
|
269 |
|
|
* builtin lock to work properly, define SHADOWPW.
|
270 |
|
|
*/
|
271 |
|
|
#undef SHADOWPW
|
272 |
|
|
|
273 |
|
|
/*
|
274 |
|
|
* If you are on a SYS V machine that restricts filename length to 14
|
275 |
|
|
* characters, you may need to enforce that by setting NAME_MAX to 14
|
276 |
|
|
*/
|
277 |
|
|
#undef NAME_MAX /* KEEP_UNDEF_HERE override system value */
|
278 |
|
|
#undef NAME_MAX
|
279 |
|
|
|
280 |
|
|
/*
|
281 |
|
|
* define HAVE_RENAME if your system has a rename() function
|
282 |
|
|
*/
|
283 |
|
|
#undef HAVE_RENAME
|
284 |
|
|
|
285 |
|
|
/*
|
286 |
|
|
* define HAVE__EXIT if your system has the _exit() call.
|
287 |
|
|
*/
|
288 |
|
|
#undef HAVE__EXIT
|
289 |
|
|
|
290 |
|
|
/*
|
291 |
|
|
* define HAVE_LSTAT if your system has symlinks and the lstat() call.
|
292 |
|
|
*/
|
293 |
|
|
#undef HAVE_LSTAT
|
294 |
|
|
|
295 |
|
|
/*
|
296 |
|
|
* define HAVE_UTIMES if your system has the utimes() call.
|
297 |
|
|
*/
|
298 |
|
|
#undef HAVE_UTIMES
|
299 |
|
|
|
300 |
|
|
/*
|
301 |
|
|
* define HAVE_FCHOWN if your system has the fchown() call.
|
302 |
|
|
*/
|
303 |
|
|
#undef HAVE_FCHOWN
|
304 |
|
|
|
305 |
|
|
/*
|
306 |
|
|
* define HAVE_FCHMOD if your system has the fchmod() call.
|
307 |
|
|
*/
|
308 |
|
|
#undef HAVE_FCHMOD
|
309 |
|
|
|
310 |
|
|
/*
|
311 |
|
|
* define HAVE_VSNPRINTF if your system has vsnprintf() (GNU lib).
|
312 |
|
|
*/
|
313 |
|
|
#undef HAVE_VSNPRINTF
|
314 |
|
|
|
315 |
|
|
/*
|
316 |
|
|
* define HAVE_GETCWD if your system has the getcwd() call.
|
317 |
|
|
*/
|
318 |
|
|
#undef HAVE_GETCWD
|
319 |
|
|
|
320 |
|
|
/*
|
321 |
|
|
* define HAVE_SETLOCALE if your system has the setlocale() call.
|
322 |
|
|
*/
|
323 |
|
|
#undef HAVE_SETLOCALE
|
324 |
|
|
|
325 |
|
|
/*
|
326 |
|
|
* define HAVE_STRFTIME if your system has the strftime() call.
|
327 |
|
|
*/
|
328 |
|
|
#undef HAVE_STRFTIME
|
329 |
|
|
|
330 |
|
|
/*
|
331 |
|
|
* define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
|
332 |
|
|
* and defines CODESET.
|
333 |
|
|
*/
|
334 |
|
|
#undef HAVE_NL_LANGINFO
|
335 |
|
|
|
336 |
|
|
/*
|
337 |
|
|
* Newer versions of Solaris include fdwalk, which can greatly improve
|
338 |
|
|
* the startup time of screen; otherwise screen spends a lot of time
|
339 |
|
|
* closing file descriptors.
|
340 |
|
|
*/
|
341 |
|
|
#undef HAVE_FDWALK
|
342 |
|
|
|
343 |
|
|
/*
|
344 |
|
|
* define HAVE_DEV_PTC if you have a /dev/ptc character special
|
345 |
|
|
* device.
|
346 |
|
|
*/
|
347 |
|
|
#undef HAVE_DEV_PTC
|
348 |
|
|
|
349 |
|
|
/*
|
350 |
|
|
* define HAVE_SVR4_PTYS if you have a /dev/ptmx character special
|
351 |
|
|
* device and support the ptsname(), grantpt(), unlockpt() functions.
|
352 |
|
|
*/
|
353 |
|
|
#undef HAVE_SVR4_PTYS
|
354 |
|
|
|
355 |
|
|
/*
|
356 |
|
|
* define HAVE_GETPT if you have the getpt() function.
|
357 |
|
|
*/
|
358 |
|
|
#undef HAVE_GETPT
|
359 |
|
|
|
360 |
|
|
/*
|
361 |
|
|
* define HAVE_OPENPTY if your system has the openpty() call.
|
362 |
|
|
*/
|
363 |
|
|
#undef HAVE_OPENPTY
|
364 |
|
|
|
365 |
|
|
/*
|
366 |
|
|
* define PTYRANGE0 and or PTYRANGE1 if you want to adapt screen
|
367 |
|
|
* to unusual environments. E.g. For SunOs the defaults are "qpr" and
|
368 |
|
|
* "0123456789abcdef". For SunOs 4.1.2
|
369 |
|
|
* #define PTYRANGE0 "pqrstuvwxyzPQRST"
|
370 |
|
|
* is recommended by Dan Jacobson.
|
371 |
|
|
*/
|
372 |
|
|
#undef PTYRANGE0
|
373 |
|
|
#undef PTYRANGE1
|
374 |
|
|
|
375 |
|
|
#define USEVARARGS
|