1 /* config.h.in. Generated from configure.in by autoheader. */
6 /* Define to `signed' or nothing if compiler does not support a signed
10 /* Define to 1 if the `syslog' function returns a non-zero int to denote
14 /* Define to 1 if you want the insults from the "classic" version sudo. */
15 #undef CLASSIC_INSULTS
17 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
18 systems. This function is required for `alloca.c' support on those systems.
20 #undef CRAY_STACKSEG_END
22 /* Define to 1 if you want insults culled from the twisted minds of CSOps. */
25 /* Define to 1 if using `alloca.c'. */
28 /* Define to 1 if you want sudo to display "command not allowed" instead of
29 "command not found" when a command cannot be found. */
30 #undef DONT_LEAK_PATH_INFO
32 /* A colon-separated list of pathnames to be used as the editor for visudo. */
35 /* Define to 1 if you want visudo to honor the EDITOR and VISUAL env
39 /* If defined, users in this group need not enter a passwd (ie "sudo"). */
42 /* Define to 1 if you want to require fully qualified hosts in sudoers. */
45 /* Define to 1 if you want insults from the "Goon Show". */
48 /* Define to 1 if you want 2001-like insults. */
51 /* Define to 1 if you use AFS. */
54 /* Define to 1 if you use AIX general authentication. */
57 /* Define to 1 if you have `alloca', as a function or macro. */
60 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
64 /* Define to 1 if you have the `asprintf' function. */
67 /* Define to 1 if you have the `bigcrypt' function. */
70 /* Define to 1 if you use BSD authentication. */
71 #undef HAVE_BSD_AUTH_H
73 /* Define to 1 if you have the `closefrom' function. */
76 /* Define to 1 if you use OSF DCE. */
79 /* Define to 1 if your `DIR' contains dd_fd. */
82 /* Define to 1 if you have the `dgettext' function. */
85 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
89 /* Define to 1 if you have the `dirfd' function or macro. */
92 /* Define to 1 if you have the `dispcrypt' function. */
95 /* Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags. */
96 #undef HAVE_EXTENDED_GLOB
98 /* Define to 1 if your system has the F_CLOSEM fcntl. */
99 #undef HAVE_FCNTL_CLOSEM
101 /* Define to 1 if you have the `flock' function. */
104 /* Define to 1 if you have the `fnmatch' function. */
107 /* Define to 1 if you have the `freeifaddrs' function. */
108 #undef HAVE_FREEIFADDRS
110 /* Define to 1 if you have the `fstat' function. */
113 /* Define to 1 if you have the `futime' function. */
116 /* Define to 1 if you have the `futimes' function. */
119 /* Define to 1 if you have the `futimesat' function. */
120 #undef HAVE_FUTIMESAT
122 /* Define to 1 if you use the FWTK authsrv daemon. */
125 /* Define to 1 if you have the `getaddrinfo' function. */
126 #undef HAVE_GETADDRINFO
128 /* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
130 #undef HAVE_GETAUTHUID
132 /* Define to 1 if you have the `getcwd' function. */
135 /* Define to 1 if you have the `getdomainname' function. */
136 #undef HAVE_GETDOMAINNAME
138 /* Define to 1 if you have the `getgroups' function. */
139 #undef HAVE_GETGROUPS
141 /* Define to 1 if you have the `getifaddrs' function. */
142 #undef HAVE_GETIFADDRS
144 /* Define to 1 if you have the `getprogname' function. */
145 #undef HAVE_GETPROGNAME
147 /* Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow
149 #undef HAVE_GETPRPWNAM
151 /* Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow
153 #undef HAVE_GETPWANAM
155 /* Define to 1 if you have the `getspnam' function (SVR4-style shadow
159 /* Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow
161 #undef HAVE_GETSPWUID
163 /* Define to 1 if you have the `gettimeofday' function. */
164 #undef HAVE_GETTIMEOFDAY
166 /* Define to 1 if you have the `getuserattr' function. */
167 #undef HAVE_GETUSERATTR
169 /* Define to 1 if you have the `glob' function. */
172 /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
173 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
175 /* Define to 1 if you have the `gss_krb5_ccache_name' function. */
176 #undef HAVE_GSS_KRB5_CCACHE_NAME
178 /* Define to 1 if your Kerberos is Heimdal. */
181 /* Define to 1 if <netinet/in.h> contains struct in6_addr. */
184 /* Define to 1 if you have the `initgroups' function. */
185 #undef HAVE_INITGROUPS
187 /* Define to 1 if you have the `initprivs' function. */
188 #undef HAVE_INITPRIVS
190 /* Define to 1 if you have the `innetgr' function. */
193 /* Define to 1 if you have the <inttypes.h> header file. */
194 #undef HAVE_INTTYPES_H
196 /* Define if you have isblank(3). */
199 /* Define to 1 if you have the `iscomsec' function. (HP-UX >= 10.x check for
203 /* Define to 1 if you have the `issecure' function. (SunOS 4.x check for
207 /* Define to 1 if you use Kerberos IV. */
210 /* Define to 1 if you use Kerberos V. */
213 /* Define to 1 if you have the `krb5_get_init_creds_opt_alloc' function. */
214 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
216 /* Define to 1 if your `krb5_get_init_creds_opt_alloc' function takes two arguments. */
217 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS
219 /* Define to 1 if you have the `krb5_init_secure_context' function. */
220 #undef HAVE_KRB5_INIT_SECURE_CONTEXT
222 /* Define to 1 if you have the `krb5_verify_user' function. */
223 #undef HAVE_KRB5_VERIFY_USER
225 /* Define to 1 if your LDAP needs <lber.h>. (OpenLDAP does not) */
228 /* Define to 1 if you use LDAP for sudoers. */
231 /* Define to 1 if you have the `ldap_create' function. */
232 #undef HAVE_LDAP_CREATE
234 /* Define to 1 if you have the `ldap_initialize' function. */
235 #undef HAVE_LDAP_INITIALIZE
237 /* Define to 1 if you have the `ldap_sasl_bind_s' function. */
238 #undef HAVE_LDAP_SASL_BIND_S
240 /* Define to 1 if you have the `ldap_sasl_interactive_bind_s' function. */
241 #undef HAVE_LDAP_SASL_INTERACTIVE_BIND_S
243 /* Define to 1 if you have the `ldap_search_ext_s' function. */
244 #undef HAVE_LDAP_SEARCH_EXT_S
246 /* Define to 1 if you have the <ldap_ssl.h> header file. */
247 #undef HAVE_LDAP_SSL_H
249 /* Define to 1 if you have the `ldap_start_tls_s' function. */
250 #undef HAVE_LDAP_START_TLS_S
252 /* Define to 1 if you have the `ldap_str2dn' function. */
253 #undef HAVE_LDAP_STR2DN
255 /* Define to 1 if you have the `ldap_unbind_ext_s' function. */
256 #undef HAVE_LDAP_UNBIND_EXT_S
258 /* Define to 1 if you have the `ldapssl_init' function. */
259 #undef HAVE_LDAPSSL_INIT
261 /* Define to 1 if you have the `ldapssl_set_strength' function. */
262 #undef HAVE_LDAPSSL_SET_STRENGTH
264 /* Define to 1 if you have the `lockf' function. */
267 /* Define to 1 if you have the <login_cap.h> header file. */
268 #undef HAVE_LOGIN_CAP_H
270 /* Define if your compiler supports the "long long" type. */
271 #undef HAVE_LONG_LONG
273 /* Define to 1 if you have the `lrand48' function. */
276 /* Define to 1 if you have the <malloc.h> header file. */
279 /* Define to 1 if you have the `memchr' function. */
282 /* Define to 1 if you have the `memcpy' function. */
285 /* Define to 1 if you have the <memory.h> header file. */
288 /* Define to 1 if you have the `memrchr' function. */
291 /* Define to 1 if you have the `memset' function. */
294 /* Define to 1 if you have the `mkstemp' function. */
297 /* Define to 1 if you have the <mps/ldap_ssl.h> header file. */
298 #undef HAVE_MPS_LDAP_SSL_H
300 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
303 /* Define to 1 if you have the <netgroup.h> header file. */
304 #undef HAVE_NETGROUP_H
306 /* Define to 1 if you use NRL OPIE. */
309 /* Define to 1 if you use PAM authentication. */
312 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
313 #undef HAVE_PAM_PAM_APPL_H
315 /* Define to 1 if you have the <paths.h> header file. */
318 /* Define to 1 if you have the <project.h> header file. */
319 #undef HAVE_PROJECT_H
321 /* Define to 1 if you have the `random' function. */
324 /* Define to 1 if you have the <sasl/sasl.h> header file. */
325 #undef HAVE_SASL_SASL_H
327 /* Define if your struct sockadr has an sa_len field. */
330 /* Define to 1 if you use SecurID for authentication. */
333 /* Define to 1 to enable SELinux RBAC support. */
336 /* Define to 1 if you have the `seteuid' function. */
339 /* Define to 1 if you have the `setlocale' function. */
340 #undef HAVE_SETLOCALE
342 /* Define to 1 if you have the `setresuid' function. */
343 #undef HAVE_SETRESUID
345 /* Define to 1 if you have the `setreuid' function. */
348 /* Define to 1 if you have the `setrlimit' function. */
349 #undef HAVE_SETRLIMIT
351 /* Define to 1 if you have the `setsid' function. */
354 /* Define to 1 if you have the `set_auth_parameters' function. */
355 #undef HAVE_SET_AUTH_PARAMETERS
357 /* Define to 1 if you have the `sia_ses_init' function. */
358 #undef HAVE_SIA_SES_INIT
360 /* Define to 1 if you have the `sigaction' function. */
361 #undef HAVE_SIGACTION
363 /* Define to 1 if <signal.h> has the sigaction_t typedef. */
364 #undef HAVE_SIGACTION_T
366 /* Define to 1 if you use S/Key. */
369 /* Define to 1 if your S/Key library has skeyaccess(). */
370 #undef HAVE_SKEYACCESS
372 /* Define to 1 if you have the `snprintf' function. */
375 /* Define to 1 if you have the <stdint.h> header file. */
378 /* Define to 1 if you have the <stdlib.h> header file. */
381 /* Define to 1 if you have the `strcasecmp' function. */
382 #undef HAVE_STRCASECMP
384 /* Define to 1 if you have the `strchr' function. */
387 /* Define to 1 if you have the `strerror' function. */
390 /* Define to 1 if you have the `strftime' function. */
393 /* Define to 1 if you have the <strings.h> header file. */
394 #undef HAVE_STRINGS_H
396 /* Define to 1 if you have the <string.h> header file. */
399 /* Define to 1 if you have the `strlcat' function. */
402 /* Define to 1 if you have the `strlcpy' function. */
405 /* Define to 1 if you have the `strrchr' function. */
408 /* Define to 1 if your struct stat has an st_mtim member */
411 /* Define to 1 if your struct stat uses an st__tim union */
414 /* Define to 1 if your struct stat has an st_mtimespec member */
415 #undef HAVE_ST_MTIMESPEC
417 /* Define to 1 if you have the `sysconf' function. */
420 /* Define to 1 if you have the <sys/bsdtypes.h> header file. */
421 #undef HAVE_SYS_BSDTYPES_H
423 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
425 #undef HAVE_SYS_DIR_H
427 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
429 #undef HAVE_SYS_NDIR_H
431 /* Define to 1 if you have the <sys/select.h> header file. */
432 #undef HAVE_SYS_SELECT_H
434 /* Define to 1 if you have the <sys/sockio.h> header file. */
435 #undef HAVE_SYS_SOCKIO_H
437 /* Define to 1 if you have the <sys/stat.h> header file. */
438 #undef HAVE_SYS_STAT_H
440 /* Define to 1 if you have the <sys/types.h> header file. */
441 #undef HAVE_SYS_TYPES_H
443 /* Define to 1 if you have the <termios.h> header file and the `tcgetattr'
445 #undef HAVE_TERMIOS_H
447 /* Define to 1 if you have the <termio.h> header file. */
450 /* Define to 1 if you have struct timespec in sys/time.h */
453 /* Define to 1 if you have a timespecsub macro or function that takes two
454 arguments (not three) */
455 #undef HAVE_TIMESPECSUB2
457 /* Define to 1 if you have the `tzset' function. */
460 /* Define to 1 if you have the <unistd.h> header file. */
463 /* Define to 1 if you have the `utimes' function. */
466 /* Define to 1 if you have the <utime.h> header file. */
469 /* Define to 1 if you have the `vasprintf' function. */
470 #undef HAVE_VASPRINTF
472 /* Define to 1 if you have the `vsnprintf' function. */
473 #undef HAVE_VSNPRINTF
475 /* Define to 1 if you have the `wait3' function. */
478 /* Define to 1 if you have the `waitpid' function. */
481 /* Define to 1 if you have the `_innetgr' function. */
484 /* Define to 1 if your crt0.o defines the __progname symbol for you. */
485 #undef HAVE___PROGNAME
487 /* Define to 1 if you want the hostname to be entered into the log file. */
490 /* Define to 1 if you want to ignore '.' and empty PATH elements */
491 #undef IGNORE_DOT_PATH
493 /* The message given when a bad password is entered. */
494 #undef INCORRECT_PASSWORD
496 /* The syslog facility sudo will use. */
499 /* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH. */
502 /* Define if sizeof(long) == sizeof(long long). */
505 /* Define to 1 if you want a two line OTP (S/Key or OPIE) prompt. */
506 #undef LONG_OTP_PROMPT
508 /* The subject of the mail sent by sudo to the MAILTO user/address. */
511 /* The user or email address that sudo mail is sent to. */
514 /* The max number of chars per log file line (for line wrapping). */
517 /* Define to the max length of a uid_t in string context (excluding the NUL).
521 /* Define to 1 if you don't want sudo to prompt for a password by default. */
522 #undef NO_AUTHENTICATION
524 /* Define to 1 if you don't want users to get the lecture the first they user
528 /* Define to 1 if you don't want to use sudo's PAM session support. */
529 #undef NO_PAM_SESSION
531 /* Define to avoid runing the mailer as root. */
532 #undef NO_ROOT_MAILER
534 /* Define to 1 if root should not be allowed to use sudo. */
537 /* The default password prompt. */
540 /* The passwd prompt timeout (in minutes). */
541 #undef PASSWORD_TIMEOUT
543 /* Define to 1 to replace politically incorrect insults with less offensive
547 /* The syslog priority sudo will use for unsuccessful attempts/errors. */
550 /* The syslog priority sudo will use for successful attempts. */
553 /* Define as the return type of signal handlers (`int' or `void'). */
556 /* The user sudo should run commands as by default. */
559 /* Define to 1 to override the user's path with a built-in one. */
562 /* Define to 1 to send mail when the user is not allowed to run a command. */
563 #undef SEND_MAIL_WHEN_NOT_OK
565 /* Define to 1 to send mail when the user is not allowed to run sudo on this
567 #undef SEND_MAIL_WHEN_NO_HOST
569 /* Define to 1 to send mail when the user is not in the sudoers file. */
570 #undef SEND_MAIL_WHEN_NO_USER
572 /* Define to 1 if you want sudo to start a shell if given no arguments. */
573 #undef SHELL_IF_NO_ARGS
575 /* Define to 1 if you want sudo to set $HOME in shell mode. */
576 #undef SHELL_SETS_HOME
578 /* If using the C implementation of alloca, define if you know the
579 direction of stack growth for your system; otherwise it will be
580 automatically deduced at run-time.
581 STACK_DIRECTION > 0 => grows toward higher addresses
582 STACK_DIRECTION < 0 => grows toward lower addresses
583 STACK_DIRECTION = 0 => direction of growth unknown */
584 #undef STACK_DIRECTION
586 /* Define to 1 if you have the ANSI C header files. */
589 /* Define to 1 if the code in interfaces.c does not compile for you. */
590 #undef STUB_LOAD_INTERFACES
592 /* The umask that the root-run prog should use. */
595 /* The number of minutes before sudo asks for a password again. */
598 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
599 #undef TIME_WITH_SYS_TIME
601 /* The number of tries a user gets to enter their password. */
602 #undef TRIES_FOR_PASSWORD
604 /* Define to 1 if you want to insult the user for entering an incorrect
608 /* Define to 1 if you use GNU stow packaging. */
611 /* Define to 1 if you want a different ticket file for each tty. */
612 #undef USE_TTY_TICKETS
614 /* Define to avoid using the passwd/shadow file for authentication. */
615 #undef WITHOUT_PASSWD
617 /* Define to empty if `const' does not conform to ANSI C. */
620 /* Define if your system lacks the dev_t type. */
623 /* Define to `int' if <sys/types.h> doesn't define. */
626 /* Define if your system lacks the ino_t type. */
629 /* Define to `int' if <sys/types.h> does not define. */
632 /* Define to `int' if <signal.h> does not define. */
635 /* Define if your system lacks the size_t type. */
638 /* Define if your system lacks the ssize_t type. */
641 /* Define to `int' if <sys/types.h> doesn't define. */
644 /* Define to the type of elements in the array set by `getgroups'.
645 Usually this is either `int' or `gid_t'. */
648 /* Define to empty if the keyword `volatile' does not work. Warning: valid
649 code using `volatile' can become incorrect without. Disable with care. */
653 * Macros to pull sec and nsec parts of mtime from struct stat.
654 * We need to be able to convert between timeval and timespec
655 * so the last 3 digits of tv_nsec are not significant.
659 # define mtim_getsec(_x) ((_x).st_mtim.st__tim.tv_sec)
660 # define mtim_getnsec(_x) (((_x).st_mtim.st__tim.tv_nsec / 1000) * 1000)
662 # define mtim_getsec(_x) ((_x).st_mtim.tv_sec)
663 # define mtim_getnsec(_x) (((_x).st_mtim.tv_nsec / 1000) * 1000)
666 # ifdef HAVE_ST_MTIMESPEC
667 # define mtim_getsec(_x) ((_x).st_mtimespec.tv_sec)
668 # define mtim_getnsec(_x) (((_x).st_mtimespec.tv_nsec / 1000) * 1000)
670 # define mtim_getsec(_x) ((_x).st_mtime)
671 # define mtim_getnsec(_x) (0)
672 # endif /* HAVE_ST_MTIMESPEC */
673 #endif /* HAVE_ST_MTIM */
676 * Emulate a subset of waitpid() if we don't have it.
679 # define sudo_waitpid(p, s, o) waitpid(p, s, o)
682 # define sudo_waitpid(p, s, o) wait3(s, o, NULL)
686 /* GNU stow needs /etc/sudoers to be a symlink. */
688 # define stat_sudoers stat
690 # define stat_sudoers lstat
693 /* Macros to set/clear/test flags. */
695 #define SET(t, f) ((t) |= (f))
697 #define CLR(t, f) ((t) &= ~(f))
699 #define ISSET(t, f) ((t) & (f))
701 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
702 #if defined(hpux) && !defined(__hpux)
706 #if defined(convex) && !defined(__convex__)
707 # define __convex__ 1
710 /* BSD compatibility on some SVR4 systems. */
713 #endif /* __svr4__ */
715 #endif /* _SUDO_CONFIG_H */