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 enable environment debugging. */
38 /* Define to 1 if you want visudo to honor the EDITOR and VISUAL env
42 /* If defined, users in this group need not enter a passwd (ie "sudo"). */
45 /* Define to 1 if you want to require fully qualified hosts in sudoers. */
48 /* Define to 1 if you want insults from the "Goon Show". */
51 /* Define to 1 if you want 2001-like insults. */
54 /* Define to 1 if you use AFS. */
57 /* Define to 1 if you use AIX general authentication. */
60 /* Define to 1 if you have `alloca', as a function or macro. */
63 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
67 /* Define to 1 if you have the `asprintf' function. */
70 /* Define to 1 if you have the `bigcrypt' function. */
73 /* Define to 1 if you use BSD authentication. */
74 #undef HAVE_BSD_AUTH_H
76 /* Define to 1 to enable BSM auditing. */
79 /* Define to 1 if you have the `closefrom' function. */
82 /* Define to 1 if you use OSF DCE. */
85 /* Define to 1 if your `DIR' contains dd_fd. */
88 /* Define to 1 if you have the `dgettext' function. */
91 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
95 /* Define to 1 if you have the `dirfd' function or macro. */
98 /* Define to 1 if you have the `dispcrypt' function. */
101 /* Define to 1 if you have the <dlfcn.h> header file. */
104 /* Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags. */
105 #undef HAVE_EXTENDED_GLOB
107 /* Define to 1 if your system has the F_CLOSEM fcntl. */
108 #undef HAVE_FCNTL_CLOSEM
110 /* Define to 1 if you have the `flock' function. */
113 /* Define to 1 if you have the `fnmatch' function. */
116 /* Define to 1 if you have the `freeifaddrs' function. */
117 #undef HAVE_FREEIFADDRS
119 /* Define to 1 if you have the `fstat' function. */
122 /* Define to 1 if you have the `futime' function. */
125 /* Define to 1 if you have the `futimes' function. */
128 /* Define to 1 if you have the `futimesat' function. */
129 #undef HAVE_FUTIMESAT
131 /* Define to 1 if you use the FWTK authsrv daemon. */
134 /* Define to 1 if you have the `getaddrinfo' function. */
135 #undef HAVE_GETADDRINFO
137 /* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
139 #undef HAVE_GETAUTHUID
141 /* Define to 1 if you have the `getcwd' function. */
144 /* Define to 1 if you have the `getdomainname' function. */
145 #undef HAVE_GETDOMAINNAME
147 /* Define to 1 if you have the `getgroups' function. */
148 #undef HAVE_GETGROUPS
150 /* Define to 1 if you have the `getifaddrs' function. */
151 #undef HAVE_GETIFADDRS
153 /* Define to 1 if you have the `getprogname' function. */
154 #undef HAVE_GETPROGNAME
156 /* Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow
158 #undef HAVE_GETPRPWNAM
160 /* Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow
162 #undef HAVE_GETPWANAM
164 /* Define to 1 if you have the `getspnam' function (SVR4-style shadow
168 /* Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow
170 #undef HAVE_GETSPWUID
172 /* Define to 1 if you have the `gettimeofday' function. */
173 #undef HAVE_GETTIMEOFDAY
175 /* Define to 1 if you have the `getuserattr' function. */
176 #undef HAVE_GETUSERATTR
178 /* Define to 1 if you have the `glob' function. */
181 /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
182 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
184 /* Define to 1 if you have the `gss_krb5_ccache_name' function. */
185 #undef HAVE_GSS_KRB5_CCACHE_NAME
187 /* Define to 1 if your Kerberos is Heimdal. */
190 /* Define to 1 if <netinet/in.h> contains struct in6_addr. */
193 /* Define to 1 if you have the `initgroups' function. */
194 #undef HAVE_INITGROUPS
196 /* Define to 1 if you have the `initprivs' function. */
197 #undef HAVE_INITPRIVS
199 /* Define to 1 if you have the `innetgr' function. */
202 /* Define to 1 if you have the <inttypes.h> header file. */
203 #undef HAVE_INTTYPES_H
205 /* Define if you have isblank(3). */
208 /* Define to 1 if you have the `iscomsec' function. (HP-UX >= 10.x check for
212 /* Define to 1 if you have the `issecure' function. (SunOS 4.x check for
216 /* Define to 1 if you use Kerberos IV. */
219 /* Define to 1 if you use Kerberos V. */
222 /* Define to 1 if you have the `krb5_get_init_creds_opt_alloc' function. */
223 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
225 /* Define to 1 if your `krb5_get_init_creds_opt_alloc' function takes two arguments. */
226 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS
228 /* Define to 1 if you have the `krb5_init_secure_context' function. */
229 #undef HAVE_KRB5_INIT_SECURE_CONTEXT
231 /* Define to 1 if you have the `krb5_verify_user' function. */
232 #undef HAVE_KRB5_VERIFY_USER
234 /* Define to 1 if your LDAP needs <lber.h>. (OpenLDAP does not) */
237 /* Define to 1 if you use LDAP for sudoers. */
240 /* Define to 1 if you have the `ldap_create' function. */
241 #undef HAVE_LDAP_CREATE
243 /* Define to 1 if you have the `ldap_initialize' function. */
244 #undef HAVE_LDAP_INITIALIZE
246 /* Define to 1 if you have the `ldap_sasl_bind_s' function. */
247 #undef HAVE_LDAP_SASL_BIND_S
249 /* Define to 1 if you have the `ldap_sasl_interactive_bind_s' function. */
250 #undef HAVE_LDAP_SASL_INTERACTIVE_BIND_S
252 /* Define to 1 if you have the `ldap_search_ext_s' function. */
253 #undef HAVE_LDAP_SEARCH_EXT_S
255 /* Define to 1 if you have the `ldap_ssl_client_init' function. */
256 #undef HAVE_LDAP_SSL_CLIENT_INIT
258 /* Define to 1 if you have the <ldap_ssl.h> header file. */
259 #undef HAVE_LDAP_SSL_H
261 /* Define to 1 if you have the `ldap_start_tls_s' function. */
262 #undef HAVE_LDAP_START_TLS_S
264 /* Define to 1 if you have the `ldap_start_tls_s_np' function. */
265 #undef HAVE_LDAP_START_TLS_S_NP
267 /* Define to 1 if you have the `ldap_str2dn' function. */
268 #undef HAVE_LDAP_STR2DN
270 /* Define to 1 if you have the `ldap_unbind_ext_s' function. */
271 #undef HAVE_LDAP_UNBIND_EXT_S
273 /* Define to 1 if you have the `ldapssl_init' function. */
274 #undef HAVE_LDAPSSL_INIT
276 /* Define to 1 if you have the `ldapssl_set_strength' function. */
277 #undef HAVE_LDAPSSL_SET_STRENGTH
279 /* Define to 1 if you have the `lockf' function. */
282 /* Define to 1 if you have the <login_cap.h> header file. */
283 #undef HAVE_LOGIN_CAP_H
285 /* Define if your compiler supports the "long long" type. */
286 #undef HAVE_LONG_LONG
288 /* Define to 1 if you have the `lrand48' function. */
291 /* Define to 1 if you have the <malloc.h> header file. */
294 /* Define to 1 if you have the `memchr' function. */
297 /* Define to 1 if you have the `memcpy' function. */
300 /* Define to 1 if you have the <memory.h> header file. */
303 /* Define to 1 if you have the `memrchr' function. */
306 /* Define to 1 if you have the `memset' function. */
309 /* Define to 1 if you have the `mkstemp' function. */
312 /* Define to 1 if you have the <mps/ldap_ssl.h> header file. */
313 #undef HAVE_MPS_LDAP_SSL_H
315 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
318 /* Define to 1 if you have the <netgroup.h> header file. */
319 #undef HAVE_NETGROUP_H
321 /* Define to 1 if you use NRL OPIE. */
324 /* Define to 1 if you use PAM authentication. */
327 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
328 #undef HAVE_PAM_PAM_APPL_H
330 /* Define to 1 if you have the <paths.h> header file. */
333 /* Define to 1 if you have the <project.h> header file. */
334 #undef HAVE_PROJECT_H
336 /* Define to 1 if you have the `random' function. */
339 /* Define to 1 if you have the <sasl/sasl.h> header file. */
340 #undef HAVE_SASL_SASL_H
342 /* Define if your struct sockadr has an sa_len field. */
345 /* Define to 1 if you use SecurID for authentication. */
348 /* Define to 1 to enable SELinux RBAC support. */
351 /* Define to 1 if you have the `setenv' function. */
354 /* Define to 1 if you have the `seteuid' function. */
357 /* Define to 1 if you have the `setlocale' function. */
358 #undef HAVE_SETLOCALE
360 /* Define to 1 if you have the `setresuid' function. */
361 #undef HAVE_SETRESUID
363 /* Define to 1 if you have the `setreuid' function. */
366 /* Define to 1 if you have the `setrlimit' function. */
367 #undef HAVE_SETRLIMIT
369 /* Define to 1 if you have the `setsid' function. */
372 /* Define to 1 if you have the `set_auth_parameters' function. */
373 #undef HAVE_SET_AUTH_PARAMETERS
375 /* Define to 1 if you have the `sia_ses_init' function. */
376 #undef HAVE_SIA_SES_INIT
378 /* Define to 1 if you have the `sigaction' function. */
379 #undef HAVE_SIGACTION
381 /* Define to 1 if <signal.h> has the sigaction_t typedef. */
382 #undef HAVE_SIGACTION_T
384 /* Define to 1 if you use S/Key. */
387 /* Define to 1 if your S/Key library has skeyaccess(). */
388 #undef HAVE_SKEYACCESS
390 /* Define to 1 if you have the `snprintf' function. */
393 /* Define to 1 if you have the <stdint.h> header file. */
396 /* Define to 1 if you have the <stdlib.h> header file. */
399 /* Define to 1 if you have the `strcasecmp' function. */
400 #undef HAVE_STRCASECMP
402 /* Define to 1 if you have the `strchr' function. */
405 /* Define to 1 if you have the `strerror' function. */
408 /* Define to 1 if you have the `strftime' function. */
411 /* Define to 1 if you have the <strings.h> header file. */
412 #undef HAVE_STRINGS_H
414 /* Define to 1 if you have the <string.h> header file. */
417 /* Define to 1 if you have the `strlcat' function. */
420 /* Define to 1 if you have the `strlcpy' function. */
423 /* Define to 1 if you have the `strrchr' function. */
426 /* Define to 1 if your struct stat has an st_mtim member */
429 /* Define to 1 if your struct stat uses an st__tim union */
432 /* Define to 1 if your struct stat has an st_mtimespec member */
433 #undef HAVE_ST_MTIMESPEC
435 /* Define to 1 if you have the `sysconf' function. */
438 /* Define to 1 if you have the <sys/bsdtypes.h> header file. */
439 #undef HAVE_SYS_BSDTYPES_H
441 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
443 #undef HAVE_SYS_DIR_H
445 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
447 #undef HAVE_SYS_NDIR_H
449 /* Define to 1 if you have the <sys/select.h> header file. */
450 #undef HAVE_SYS_SELECT_H
452 /* Define to 1 if you have the <sys/sockio.h> header file. */
453 #undef HAVE_SYS_SOCKIO_H
455 /* Define to 1 if you have the <sys/stat.h> header file. */
456 #undef HAVE_SYS_STAT_H
458 /* Define to 1 if you have the <sys/types.h> header file. */
459 #undef HAVE_SYS_TYPES_H
461 /* Define to 1 if you have the <termios.h> header file and the `tcgetattr'
463 #undef HAVE_TERMIOS_H
465 /* Define to 1 if you have the <termio.h> header file. */
468 /* Define to 1 if you have struct timespec in sys/time.h */
471 /* Define to 1 if you have a timespecsub macro or function that takes two
472 arguments (not three) */
473 #undef HAVE_TIMESPECSUB2
475 /* Define to 1 if you have the `tzset' function. */
478 /* Define to 1 if you have the <unistd.h> header file. */
481 /* Define to 1 if you have the `unsetenv' function. */
484 /* Define to 1 if you have the `utimes' function. */
487 /* Define to 1 if you have the <utime.h> header file. */
490 /* Define to 1 if you have the `vasprintf' function. */
491 #undef HAVE_VASPRINTF
493 /* Define to 1 if you have the `vsnprintf' function. */
494 #undef HAVE_VSNPRINTF
496 /* Define to 1 if you have the `wait3' function. */
499 /* Define to 1 if you have the `waitpid' function. */
502 /* Define to 1 if you have the `_innetgr' function. */
505 /* Define to 1 if your crt0.o defines the __progname symbol for you. */
506 #undef HAVE___PROGNAME
508 /* Define to 1 if you want the hostname to be entered into the log file. */
511 /* Define to 1 if you want to ignore '.' and empty PATH elements */
512 #undef IGNORE_DOT_PATH
514 /* The message given when a bad password is entered. */
515 #undef INCORRECT_PASSWORD
517 /* The name of libvas.so */
520 /* The syslog facility sudo will use. */
523 /* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH. */
526 /* Define if sizeof(long) == sizeof(long long). */
529 /* Define to 1 if you want a two line OTP (S/Key or OPIE) prompt. */
530 #undef LONG_OTP_PROMPT
532 /* The subject of the mail sent by sudo to the MAILTO user/address. */
535 /* The user or email address that sudo mail is sent to. */
538 /* The max number of chars per log file line (for line wrapping). */
541 /* Define to the max length of a uid_t in string context (excluding the NUL).
545 /* Define to 1 if you don't want sudo to prompt for a password by default. */
546 #undef NO_AUTHENTICATION
548 /* Define to 1 if you don't want users to get the lecture the first they user
552 /* Define to 1 if you don't want to use sudo's PAM session support. */
553 #undef NO_PAM_SESSION
555 /* Define to avoid runing the mailer as root. */
556 #undef NO_ROOT_MAILER
558 /* Define to 1 if root should not be allowed to use sudo. */
561 /* Define to the address where bug reports for this package should be sent. */
562 #undef PACKAGE_BUGREPORT
564 /* Define to the full name of this package. */
567 /* Define to the full name and version of this package. */
568 #undef PACKAGE_STRING
570 /* Define to the one symbol short name of this package. */
571 #undef PACKAGE_TARNAME
573 /* Define to the version of this package. */
574 #undef PACKAGE_VERSION
576 /* The default password prompt. */
579 /* The passwd prompt timeout (in minutes). */
580 #undef PASSWORD_TIMEOUT
582 /* Define to 1 to replace politically incorrect insults with less offensive
586 /* The syslog priority sudo will use for unsuccessful attempts/errors. */
589 /* The syslog priority sudo will use for successful attempts. */
592 /* Define to 1 if the `putenv' has a const argument. */
595 /* Define as the return type of signal handlers (`int' or `void'). */
598 /* The user sudo should run commands as by default. */
601 /* Define to 1 to override the user's path with a built-in one. */
604 /* Define to 1 to send mail when the user is not allowed to run a command. */
605 #undef SEND_MAIL_WHEN_NOT_OK
607 /* Define to 1 to send mail when the user is not allowed to run sudo on this
609 #undef SEND_MAIL_WHEN_NO_HOST
611 /* Define to 1 to send mail when the user is not in the sudoers file. */
612 #undef SEND_MAIL_WHEN_NO_USER
614 /* Define to 1 if you want sudo to start a shell if given no arguments. */
615 #undef SHELL_IF_NO_ARGS
617 /* Define to 1 if you want sudo to set $HOME in shell mode. */
618 #undef SHELL_SETS_HOME
620 /* If using the C implementation of alloca, define if you know the
621 direction of stack growth for your system; otherwise it will be
622 automatically deduced at run-time.
623 STACK_DIRECTION > 0 => grows toward higher addresses
624 STACK_DIRECTION < 0 => grows toward lower addresses
625 STACK_DIRECTION = 0 => direction of growth unknown */
626 #undef STACK_DIRECTION
628 /* Define to 1 if you have the ANSI C header files. */
631 /* Define to 1 if the code in interfaces.c does not compile for you. */
632 #undef STUB_LOAD_INTERFACES
634 /* The umask that the root-run prog should use. */
637 /* The number of minutes before sudo asks for a password again. */
640 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
641 #undef TIME_WITH_SYS_TIME
643 /* The number of tries a user gets to enter their password. */
644 #undef TRIES_FOR_PASSWORD
646 /* Define to 1 if the `unsetenv' function returns void instead of `int'. */
649 /* Define to 1 if you want to insult the user for entering an incorrect
653 /* Define to 1 if you use GNU stow packaging. */
656 /* Define to 1 if you want a different ticket file for each tty. */
657 #undef USE_TTY_TICKETS
659 /* Define to 1 if using a non-unix group lookup implementation. */
660 #undef USING_NONUNIX_GROUPS
662 /* Define to avoid using the passwd/shadow file for authentication. */
663 #undef WITHOUT_PASSWD
665 /* Define to empty if `const' does not conform to ANSI C. */
668 /* Define if your system lacks the dev_t type. */
671 /* Define to `int' if <sys/types.h> doesn't define. */
674 /* Define if your system lacks the ino_t type. */
677 /* Define to `int' if <sys/types.h> does not define. */
680 /* Define to `int' if <signal.h> does not define. */
683 /* Define if your system lacks the size_t type. */
686 /* Define if your system lacks the ssize_t type. */
689 /* Define to `int' if <sys/types.h> doesn't define. */
692 /* Define to the type of elements in the array set by `getgroups'.
693 Usually this is either `int' or `gid_t'. */
696 /* Define to empty if the keyword `volatile' does not work. Warning: valid
697 code using `volatile' can become incorrect without. Disable with care. */
701 * Macros to pull sec and nsec parts of mtime from struct stat.
702 * We need to be able to convert between timeval and timespec
703 * so the last 3 digits of tv_nsec are not significant.
707 # define mtim_getsec(_x) ((_x).st_mtim.st__tim.tv_sec)
708 # define mtim_getnsec(_x) (((_x).st_mtim.st__tim.tv_nsec / 1000) * 1000)
710 # define mtim_getsec(_x) ((_x).st_mtim.tv_sec)
711 # define mtim_getnsec(_x) (((_x).st_mtim.tv_nsec / 1000) * 1000)
714 # ifdef HAVE_ST_MTIMESPEC
715 # define mtim_getsec(_x) ((_x).st_mtimespec.tv_sec)
716 # define mtim_getnsec(_x) (((_x).st_mtimespec.tv_nsec / 1000) * 1000)
718 # define mtim_getsec(_x) ((_x).st_mtime)
719 # define mtim_getnsec(_x) (0)
720 # endif /* HAVE_ST_MTIMESPEC */
721 #endif /* HAVE_ST_MTIM */
724 * Emulate a subset of waitpid() if we don't have it.
727 # define sudo_waitpid(p, s, o) waitpid(p, s, o)
730 # define sudo_waitpid(p, s, o) wait3(s, o, NULL)
734 /* GNU stow needs /etc/sudoers to be a symlink. */
736 # define stat_sudoers stat
738 # define stat_sudoers lstat
741 /* Macros to set/clear/test flags. */
743 #define SET(t, f) ((t) |= (f))
745 #define CLR(t, f) ((t) &= ~(f))
747 #define ISSET(t, f) ((t) & (f))
749 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
750 #if defined(hpux) && !defined(__hpux)
754 #if defined(convex) && !defined(__convex__)
755 # define __convex__ 1
758 /* BSD compatibility on some SVR4 systems. */
761 #endif /* __svr4__ */
763 #endif /* _SUDO_CONFIG_H */