Imported Debian patch 1.6.8p5-1
[debian/sudo] / config.h.in
1 /* config.h.in.  Generated from configure.in by autoheader.  */
2
3 #ifndef _SUDO_CONFIG_H
4 #define _SUDO_CONFIG_H
5
6 /* Define to 1 if the `syslog' function returns a non-zero int to denote
7    failure. */
8 #undef BROKEN_SYSLOG
9
10 /* Define to 1 if you want the insults from the "classic" version sudo. */
11 #undef CLASSIC_INSULTS
12
13 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
14    systems. This function is required for `alloca.c' support on those systems.
15    */
16 #undef CRAY_STACKSEG_END
17
18 /* Define to 1 if you want insults culled from the twisted minds of CSOps. */
19 #undef CSOPS_INSULTS
20
21 /* Define to 1 if using `alloca.c'. */
22 #undef C_ALLOCA
23
24 /* Define to 1 if you want sudo to display "command not allowed" instead of
25    "command not found" when a command cannot be found. */
26 #undef DONT_LEAK_PATH_INFO
27
28 /* A colon-separated list of pathnames to be used as the editor for visudo. */
29 #undef EDITOR
30
31 /* Define to 1 if you want visudo to honor the EDITOR and VISUAL env
32    variables. */
33 #undef ENV_EDITOR
34
35 /* If defined, users in this group need not enter a passwd (ie "sudo"). */
36 #undef EXEMPTGROUP
37
38 /* Define to 1 if you want to require fully qualified hosts in sudoers. */
39 #undef FQDN
40
41 /* Define to 1 if you want insults from the "Goon Show". */
42 #undef GOONS_INSULTS
43
44 /* Define to 1 if you want 2001-like insults. */
45 #undef HAL_INSULTS
46
47 /* Define to 1 if you use AFS. */
48 #undef HAVE_AFS
49
50 /* Define to 1 if you have `alloca', as a function or macro. */
51 #undef HAVE_ALLOCA
52
53 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
54    */
55 #undef HAVE_ALLOCA_H
56
57 /* Define to 1 if you have the `asprintf' function. */
58 #undef HAVE_ASPRINTF
59
60 /* Define to 1 if you use AIX general authentication. */
61 #undef HAVE_AUTHENTICATE
62
63 /* Define to 1 if you have the `bigcrypt' function. */
64 #undef HAVE_BIGCRYPT
65
66 /* Define to 1 if you use BSD authentication. */
67 #undef HAVE_BSD_AUTH_H
68
69 /* Define to 1 if you have the `closefrom' function. */
70 #undef HAVE_CLOSEFROM
71
72 /* Define to 1 if you use OSF DCE. */
73 #undef HAVE_DCE
74
75 /* Define to 1 if your `DIR' contains dd_fd. */
76 #undef HAVE_DD_FD
77
78 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
79    */
80 #undef HAVE_DIRENT_H
81
82 /* Define to 1 if you have the `dirfd' function or macro. */
83 #undef HAVE_DIRFD
84
85 /* Define to 1 if you have the `dispcrypt' function. */
86 #undef HAVE_DISPCRYPT
87
88 /* Define to 1 if you have the <err.h> header file. */
89 #undef HAVE_ERR_H
90
91 /* Define to 1 if you have the `flock' function. */
92 #undef HAVE_FLOCK
93
94 /* Define to 1 if you have the `fnmatch' function. */
95 #undef HAVE_FNMATCH
96
97 /* Define to 1 if you have the `freeifaddrs' function. */
98 #undef HAVE_FREEIFADDRS
99
100 /* Define to 1 if you have the `fstat' function. */
101 #undef HAVE_FSTAT
102
103 /* Define to 1 if you have the `futime' function. */
104 #undef HAVE_FUTIME
105
106 /* Define to 1 if you have the `futimes' function. */
107 #undef HAVE_FUTIMES
108
109 /* Define to 1 if you have the `futimesat' function. */
110 #undef HAVE_FUTIMESAT
111
112 /* Define to 1 if you use the FWTK authsrv daemon. */
113 #undef HAVE_FWTK
114
115 /* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
116    passwords) */
117 #undef HAVE_GETAUTHUID
118
119 /* Define to 1 if you have the `getcwd' function. */
120 #undef HAVE_GETCWD
121
122 /* Define to 1 if you have the `getdomainname' function. */
123 #undef HAVE_GETDOMAINNAME
124
125 /* Define to 1 if you have the `getifaddrs' function. */
126 #undef HAVE_GETIFADDRS
127
128 /* Define to 1 if you have the `getprogname' function. */
129 #undef HAVE_GETPROGNAME
130
131 /* Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow
132    passwords) */
133 #undef HAVE_GETPRPWNAM
134
135 /* Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow
136    passwords) */
137 #undef HAVE_GETPWANAM
138
139 /* Define to 1 if you have the `getspnam' function (SVR4-style shadow
140    passwords) */
141 #undef HAVE_GETSPNAM
142
143 /* Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow
144    passwords) */
145 #undef HAVE_GETSPWUID
146
147 /* Define to 1 if you have the `gettimeofday' function. */
148 #undef HAVE_GETTIMEOFDAY
149
150 /* Define to 1 if your Kerberos is Heimdal. */
151 #undef HAVE_HEIMDAL
152
153 /* Define to 1 if you have the `initgroups' function. */
154 #undef HAVE_INITGROUPS
155
156 /* Define to 1 if you have the `initprivs' function. */
157 #undef HAVE_INITPRIVS
158
159 /* Define to 1 if you have the `innetgr' function. */
160 #undef HAVE_INNETGR
161
162 /* Define to 1 if you have the <inttypes.h> header file. */
163 #undef HAVE_INTTYPES_H
164
165 /* Define if you have isblank(3). */
166 #undef HAVE_ISBLANK
167
168 /* Define to 1 if you have the `iscomsec' function. (HP-UX >= 10.x check for
169    shadow enabled) */
170 #undef HAVE_ISCOMSEC
171
172 /* Define to 1 if you have the `issecure' function. (SunOS 4.x check for
173    shadow enabled) */
174 #undef HAVE_ISSECURE
175
176 /* Define to 1 if you use Kerberos IV. */
177 #undef HAVE_KERB4
178
179 /* Define to 1 if you use Kerberos V. */
180 #undef HAVE_KERB5
181
182 /* Define to 1 if your LDAP needs <lber.h>. (OpenLDAP does not) */
183 #undef HAVE_LBER_H
184
185 /* Define to 1 if you use LDAP for sudoers. */
186 #undef HAVE_LDAP
187
188 /* Define to 1 if you have the `ldap_initialize' function. */
189 #undef HAVE_LDAP_INITIALIZE
190
191 /* Define to 1 if you have the `ldap_start_tls_s' function. */
192 #undef HAVE_LDAP_START_TLS_S
193
194 /* Define to 1 if you have the `lockf' function. */
195 #undef HAVE_LOCKF
196
197 /* Define to 1 if you have the <login_cap.h> header file. */
198 #undef HAVE_LOGIN_CAP_H
199
200 /* Define if your compiler supports the "long long" type. */
201 #undef HAVE_LONG_LONG
202
203 /* Define to 1 if you have the `lsearch' function. */
204 #undef HAVE_LSEARCH
205
206 /* Define to 1 if you have the <malloc.h> header file. */
207 #undef HAVE_MALLOC_H
208
209 /* Define to 1 if you have the `memchr' function. */
210 #undef HAVE_MEMCHR
211
212 /* Define to 1 if you have the `memcpy' function. */
213 #undef HAVE_MEMCPY
214
215 /* Define to 1 if you have the <memory.h> header file. */
216 #undef HAVE_MEMORY_H
217
218 /* Define to 1 if you have the `memset' function. */
219 #undef HAVE_MEMSET
220
221 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
222 #undef HAVE_NDIR_H
223
224 /* Define to 1 if you have the <netgroup.h> header file. */
225 #undef HAVE_NETGROUP_H
226
227 /* Define to 1 if you use NRL OPIE. */
228 #undef HAVE_OPIE
229
230 /* Define to 1 if you use PAM authentication. */
231 #undef HAVE_PAM
232
233 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
234 #undef HAVE_PAM_PAM_APPL_H
235
236 /* Define to 1 if you have the <paths.h> header file. */
237 #undef HAVE_PATHS_H
238
239 /* Define if your struct sockadr has an sa_len field. */
240 #undef HAVE_SA_LEN
241
242 /* Define to 1 if you use SecurID for authentication. */
243 #undef HAVE_SECURID
244
245 /* Define to 1 if you have the `seteuid' function. */
246 #undef HAVE_SETEUID
247
248 /* Define to 1 if you have the `setresuid' function. */
249 #undef HAVE_SETRESUID
250
251 /* Define to 1 if you have the `setreuid' function. */
252 #undef HAVE_SETREUID
253
254 /* Define to 1 if you have the `setrlimit' function. */
255 #undef HAVE_SETRLIMIT
256
257 /* Define to 1 if you have the `set_auth_parameters' function. */
258 #undef HAVE_SET_AUTH_PARAMETERS
259
260 /* Define to 1 if you use SIA authentication. */
261 #undef HAVE_SIA
262
263 /* Define to 1 if you have the `sigaction' function. */
264 #undef HAVE_SIGACTION
265
266 /* Define to 1 if <signal.h> has the sigaction_t typedef. */
267 #undef HAVE_SIGACTION_T
268
269 /* Define to 1 if the system has the type `sig_atomic_t'. */
270 #undef HAVE_SIG_ATOMIC_T
271
272 /* Define to 1 if you use S/Key. */
273 #undef HAVE_SKEY
274
275 /* Define to 1 if your S/Key library has skeyaccess(). */
276 #undef HAVE_SKEYACCESS
277
278 /* Define to 1 if you have the `snprintf' function. */
279 #undef HAVE_SNPRINTF
280
281 /* Define to 1 if you have the <stdint.h> header file. */
282 #undef HAVE_STDINT_H
283
284 /* Define to 1 if you have the <stdlib.h> header file. */
285 #undef HAVE_STDLIB_H
286
287 /* Define to 1 if you have the `strcasecmp' function. */
288 #undef HAVE_STRCASECMP
289
290 /* Define to 1 if you have the `strchr' function. */
291 #undef HAVE_STRCHR
292
293 /* Define to 1 if you have the `strerror' function. */
294 #undef HAVE_STRERROR
295
296 /* Define to 1 if you have the `strftime' function. */
297 #undef HAVE_STRFTIME
298
299 /* Define to 1 if you have the <strings.h> header file. */
300 #undef HAVE_STRINGS_H
301
302 /* Define to 1 if you have the <string.h> header file. */
303 #undef HAVE_STRING_H
304
305 /* Define to 1 if you have the `strlcat' function. */
306 #undef HAVE_STRLCAT
307
308 /* Define to 1 if you have the `strlcpy' function. */
309 #undef HAVE_STRLCPY
310
311 /* Define to 1 if you have the `strrchr' function. */
312 #undef HAVE_STRRCHR
313
314 /* Define to 1 if your struct stat has an st_mtim member */
315 #undef HAVE_ST_MTIM
316
317 /* Define to 1 if your struct stat has an st_mtimespec member */
318 #undef HAVE_ST_MTIMESPEC
319
320 /* Define to 1 if you have the `sysconf' function. */
321 #undef HAVE_SYSCONF
322
323 /* Define to 1 if you have the <sys/bsdtypes.h> header file. */
324 #undef HAVE_SYS_BSDTYPES_H
325
326 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
327    */
328 #undef HAVE_SYS_DIR_H
329
330 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
331    */
332 #undef HAVE_SYS_NDIR_H
333
334 /* Define to 1 if you have the <sys/select.h> header file. */
335 #undef HAVE_SYS_SELECT_H
336
337 /* Define to 1 if you have the <sys/sockio.h> header file. */
338 #undef HAVE_SYS_SOCKIO_H
339
340 /* Define to 1 if you have the <sys/stat.h> header file. */
341 #undef HAVE_SYS_STAT_H
342
343 /* Define to 1 if you have the <sys/types.h> header file. */
344 #undef HAVE_SYS_TYPES_H
345
346 /* Define to 1 if you have the <termios.h> header file and the `tcgetattr'
347    function. */
348 #undef HAVE_TERMIOS_H
349
350 /* Define to 1 if you have the <termio.h> header file. */
351 #undef HAVE_TERMIO_H
352
353 /* Define to 1 if you have struct timespec in sys/time.h */
354 #undef HAVE_TIMESPEC
355
356 /* Define to 1 if you have a timespecsub macro or function that takes
357    two arguments (not three) */
358 #undef HAVE_TIMESPECSUB2
359
360 /* Define to 1 if you have the `tzset' function. */
361 #undef HAVE_TZSET
362
363 /* Define to 1 if you have the <unistd.h> header file. */
364 #undef HAVE_UNISTD_H
365
366 /* Define to 1 if you have the `utimes' function. */
367 #undef HAVE_UTIMES
368
369 /* Define to 1 if you have the <utime.h> header file. */
370 #undef HAVE_UTIME_H
371
372 /* Define to 1 if you have the `vasprintf' function. */
373 #undef HAVE_VASPRINTF
374
375 /* Define to 1 if you have the `vsnprintf' function. */
376 #undef HAVE_VSNPRINTF
377
378 /* Define to 1 if you have the `wait3' function. */
379 #undef HAVE_WAIT3
380
381 /* Define to 1 if you have the `waitpid' function. */
382 #undef HAVE_WAITPID
383
384 /* Define to 1 if you have the `_innetgr' function. */
385 #undef HAVE__INNETGR
386
387 /* Define to 1 if your crt0.o defines the __progname symbol for you. */
388 #undef HAVE___PROGNAME
389
390 /* Define to 1 if you want the hostname to be entered into the log file. */
391 #undef HOST_IN_LOG
392
393 /* Define to 1 if you want to ignore '.' and empty PATH elements */
394 #undef IGNORE_DOT_PATH
395
396 /* The message given when a bad password is entered. */
397 #undef INCORRECT_PASSWORD
398
399 /* The syslog facility sudo will use. */
400 #undef LOGFAC
401
402 /* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH. */
403 #undef LOGGING
404
405 /* Define if sizeof(long) == sizeof(long long). */
406 #undef LONG_IS_QUAD
407
408 /* Define to 1 if you want a two line OTP (S/Key or OPIE) prompt. */
409 #undef LONG_OTP_PROMPT
410
411 /* The subject of the mail sent by sudo to the MAILTO user/address. */
412 #undef MAILSUBJECT
413
414 /* The user or email address that sudo mail is sent to. */
415 #undef MAILTO
416
417 /* The max number of chars per log file line (for line wrapping). */
418 #undef MAXLOGFILELEN
419
420 /* Define to the max length of a uid_t in string context (excluding the NUL).
421    */
422 #undef MAX_UID_T_LEN
423
424 /* Define to 1 if you don't want sudo to prompt for a password by default. */
425 #undef NO_AUTHENTICATION
426
427 /* Define to 1 if you don't want users to get the lecture the first they user
428    sudo. */
429 #undef NO_LECTURE
430
431 /* Define to avoid runing the mailer as root. */
432 #undef NO_ROOT_MAILER
433
434 /* Define to 1 if root should not be allowed to use sudo. */
435 #undef NO_ROOT_SUDO
436
437 /* Define to avoid using POSIX saved ids. */
438 #undef NO_SAVED_IDS
439
440 /* The default password prompt. */
441 #undef PASSPROMPT
442
443 /* The passwd prompt timeout (in minutes). */
444 #undef PASSWORD_TIMEOUT
445
446 /* Define to 1 to replace politically incorrect insults with less offensive
447    ones. */
448 #undef PC_INSULTS
449
450 /* The syslog priority sudo will use for unsuccessful attempts/errors. */
451 #undef PRI_FAILURE
452
453 /* The syslog priority sudo will use for successful attempts. */
454 #undef PRI_SUCCESS
455
456 /* Define as the return type of signal handlers (`int' or `void'). */
457 #undef RETSIGTYPE
458
459 /* The user sudo should run commands as by default. */
460 #undef RUNAS_DEFAULT
461
462 /* Define to 1 to override the user's path with a built-in one. */
463 #undef SECURE_PATH
464
465 /* Define to 1 to send mail when the user is not allowed to run a command. */
466 #undef SEND_MAIL_WHEN_NOT_OK
467
468 /* Define to 1 to send mail when the user is not allowed to run sudo on this
469    host. */
470 #undef SEND_MAIL_WHEN_NO_HOST
471
472 /* Define to 1 to send mail when the user is not in the sudoers file. */
473 #undef SEND_MAIL_WHEN_NO_USER
474
475 /* Define to 1 if you want sudo to start a shell if given no arguments. */
476 #undef SHELL_IF_NO_ARGS
477
478 /* Define to 1 if you want sudo to set $HOME in shell mode. */
479 #undef SHELL_SETS_HOME
480
481 /* If using the C implementation of alloca, define if you know the
482    direction of stack growth for your system; otherwise it will be
483    automatically deduced at run-time.
484         STACK_DIRECTION > 0 => grows toward higher addresses
485         STACK_DIRECTION < 0 => grows toward lower addresses
486         STACK_DIRECTION = 0 => direction of growth unknown */
487 #undef STACK_DIRECTION
488
489 /* Define to 1 if you have the ANSI C header files. */
490 #undef STDC_HEADERS
491
492 /* Define to 1 if the code in interfaces.c does not compile for you. */
493 #undef STUB_LOAD_INTERFACES
494
495 /* The umask that the root-run prog should use. */
496 #undef SUDO_UMASK
497
498 /* The number of minutes before sudo asks for a password again. */
499 #undef TIMEOUT
500
501 /* The number of tries a user gets to enter their password. */
502 #undef TRIES_FOR_PASSWORD
503
504 /* Define to 1 if you wish to use execv() instead of execvp() when running
505    programs. */
506 #undef USE_EXECV
507
508 /* Define to 1 if you want to insult the user for entering an incorrect
509    password. */
510 #undef USE_INSULTS
511
512 /* Define to 1 if you use GNU stow packaging. */
513 #undef USE_STOW
514
515 /* Define to 1 if you want a different ticket file for each tty. */
516 #undef USE_TTY_TICKETS
517
518 /* Define to "void" if your compiler supports void pointers, else use "char".
519    */
520 #undef VOID
521
522 /* Define to avoid using the passwd/shadow file for authentication. */
523 #undef WITHOUT_PASSWD
524
525 /* Enable non-POSIX extensions on AIX. */
526 #ifndef _ALL_SOURCE
527 # undef _ALL_SOURCE
528 #endif
529
530 /* Enable non-POSIX extensions on ConvexOS. */
531 #ifndef _CONVEX_SOURCE
532 # undef _CONVEX_SOURCE
533 #endif
534
535 /* Enable GNU extensions on systems that have them. */
536 #ifndef _GNU_SOURCE
537 # define _GNU_SOURCE    1
538 #endif
539
540 /* Define to empty if `const' does not conform to ANSI C. */
541 #undef const
542
543 /* Define if your system lacks the dev_t type. */
544 #undef dev_t
545
546 /* Define to `int' if <sys/types.h> doesn't define. */
547 #undef gid_t
548
549 /* Define if your system lacks the ino_t type. */
550 #undef ino_t
551
552 /* Define to `int' if <sys/types.h> does not define. */
553 #undef mode_t
554
555 /* Define to `int' if <signal.h> does not define. */
556 #undef sig_atomic_t
557
558 /* Define if your system lacks the size_t type. */
559 #undef size_t
560
561 /* Define if your system lacks the ssize_t type. */
562 #undef ssize_t
563
564 /* Define to `int' if <sys/types.h> doesn't define. */
565 #undef uid_t
566
567 /* Define to empty if the keyword `volatile' does not work. Warning: valid
568    code using `volatile' can become incorrect without. Disable with care. */
569 #undef volatile
570
571 /*
572  * Macros to pull sec and nsec parts of mtime from struct stat.
573  */
574 #ifdef HAVE_ST_MTIM
575 # define mtim_getsec(_x)        ((_x).st_mtim.tv_sec)
576 # define mtim_getnsec(_x)       ((_x).st_mtim.tv_nsec)
577 #else
578 # ifdef HAVE_ST_MTIMESPEC
579 #  define mtim_getsec(_x)       ((_x).st_mtimespec.tv_sec)
580 #  define mtim_getnsec(_x)      ((_x).st_mtimespec.tv_nsec)
581 # else
582 #  define mtim_getsec(_x)       ((_x).st_mtime)
583 #  define mtim_getnsec(_x)      (0)
584 # endif /* HAVE_ST_MTIMESPEC */
585 #endif /* HAVE_ST_MTIM */
586
587 /*
588  * Emulate a subset of waitpid() if we don't have it.
589  */
590 #ifdef HAVE_WAITPID
591 # define sudo_waitpid(p, s, o)  waitpid(p, s, o)
592 #else
593 # ifdef HAVE_WAIT3
594 #  define sudo_waitpid(p, s, o) wait3(s, o, NULL)
595 # endif
596 #endif
597
598 /* GNU stow needs /etc/sudoers to be a symlink. */
599 #ifdef USE_STOW
600 # define stat_sudoers   stat
601 #else
602 # define stat_sudoers   lstat
603 #endif
604
605 #ifdef USE_EXECV
606 # define EXECV  execv
607 #else
608 # define EXECV  execvp
609 #endif /* USE_EXECV */
610
611 /* Macros to set/clear/test flags. */
612 #undef SET
613 #define SET(t, f)       ((t) |= (f))
614 #undef CLR
615 #define CLR(t, f)       ((t) &= ~(f))
616 #undef ISSET
617 #define ISSET(t, f)     ((t) & (f))
618
619 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
620 #if defined(hpux) && !defined(__hpux)
621 # define __hpux         1
622 #endif /* hpux */
623
624 #if defined(convex) && !defined(__convex__)
625 # define __convex__     1
626 #endif /* convex */
627
628 /* BSD compatibility on some SVR4 systems. */
629 #ifdef __svr4__
630 # define BSD_COMP
631 #endif /* __svr4__ */
632
633 #endif /* _SUDO_CONFIG_H */