1 /* config.h.in. Generated from configure.in by autoheader. */
6 /* Define to 1 if the `syslog' function returns a non-zero int to denote
10 /* Define to 1 if you want the insults from the "classic" version sudo. */
11 #undef CLASSIC_INSULTS
13 /* Define to 1 if you want insults culled from the twisted minds of CSOps. */
16 /* Define to 1 if you want sudo to display "command not allowed" instead of
17 "command not found" when a command cannot be found. */
18 #undef DONT_LEAK_PATH_INFO
20 /* A colon-separated list of pathnames to be used as the editor for visudo. */
23 /* Define to 1 to enable environment function debugging. */
26 /* Define to 1 if you want visudo to honor the EDITOR and VISUAL env
30 /* If defined, users in this group need not enter a passwd (ie "sudo"). */
33 /* Define to 1 if you want to require fully qualified hosts in sudoers. */
36 /* Define to the type of elements in the array set by `getgroups'. Usually
37 this is either `int' or `gid_t'. */
40 /* Define to 1 if you want insults from the "Goon Show". */
43 /* Define to 1 if you want 2001-like insults. */
46 /* Define to 1 if you use AFS. */
49 /* Define to 1 if you use AIX general authentication. */
52 /* Define to 1 if you have the `asprintf' function. */
55 /* Define to 1 if you have the `authenticate' function. */
56 #undef HAVE_AUTHENTICATE
58 /* Define to 1 if you have the `auth_challenge' function. */
59 #undef HAVE_AUTH_CHALLENGE
61 /* Define to 1 if you have the `bigcrypt' function. */
64 /* Define to 1 if you use BSD authentication. */
65 #undef HAVE_BSD_AUTH_H
67 /* Define to 1 to enable BSM audit support. */
70 /* Define to 1 if you have the `closefrom' function. */
73 /* Define to 1 if you use OSF DCE. */
76 /* Define to 1 if your `DIR' contains dd_fd. */
79 /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you
81 #undef HAVE_DECL_SYS_SIGLIST
83 /* Define to 1 if you have the declaration of `_sys_siglist', and to 0 if you
85 #undef HAVE_DECL__SYS_SIGLIST
87 /* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you
89 #undef HAVE_DECL___SYS_SIGLIST
91 /* Define to 1 if you have the `dgettext' function. */
94 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
98 /* Define to 1 if you have the `dirfd' function or macro. */
101 /* Define to 1 if you have the `dispcrypt' function. */
102 #undef HAVE_DISPCRYPT
104 /* Define to 1 if you have the <dlfcn.h> header file. */
107 /* Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags. */
108 #undef HAVE_EXTENDED_GLOB
110 /* Define to 1 if your system has the F_CLOSEM fcntl. */
111 #undef HAVE_FCNTL_CLOSEM
113 /* Define to 1 if you have the `fgetln' function. */
116 /* Define to 1 if you have the `flock' function. */
119 /* Define to 1 if you have the `fnmatch' function. */
122 /* Define to 1 if you have the `freeifaddrs' function. */
123 #undef HAVE_FREEIFADDRS
125 /* Define to 1 if you have the `fstat' function. */
128 /* Define to 1 if you have the `futime' function. */
131 /* Define to 1 if you have the `futimes' function. */
134 /* Define to 1 if you have the `futimesat' function. */
135 #undef HAVE_FUTIMESAT
137 /* Define to 1 if you use the FWTK authsrv daemon. */
140 /* Define to 1 if you have the `getaddrinfo' function. */
141 #undef HAVE_GETADDRINFO
143 /* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
145 #undef HAVE_GETAUTHUID
147 /* Define to 1 if you have the `getcwd' function. */
150 /* Define to 1 if you have the `getdomainname' function. */
151 #undef HAVE_GETDOMAINNAME
153 /* Define to 1 if you have the `getgroups' function. */
154 #undef HAVE_GETGROUPS
156 /* Define to 1 if you have the `getifaddrs' function. */
157 #undef HAVE_GETIFADDRS
159 /* Define to 1 if you have the `getline' function. */
162 /* Define to 1 if you have the `getprogname' function. */
163 #undef HAVE_GETPROGNAME
165 /* Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow
167 #undef HAVE_GETPRPWNAM
169 /* Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow
171 #undef HAVE_GETPWANAM
173 /* Define to 1 if you have the `getspnam' function (SVR4-style shadow
177 /* Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow
179 #undef HAVE_GETSPWUID
181 /* Define to 1 if you have the `gettimeofday' function. */
182 #undef HAVE_GETTIMEOFDAY
184 /* Define to 1 if you have the `getuserattr' function. */
185 #undef HAVE_GETUSERATTR
187 /* Define to 1 if you have the `getutid' function. */
190 /* Define to 1 if you have the `getutxid' function. */
193 /* Define to 1 if you have the `glob' function. */
196 /* Define to 1 if you have the `grantpt' function. */
199 /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
200 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
202 /* Define to 1 if you have the `gss_krb5_ccache_name' function. */
203 #undef HAVE_GSS_KRB5_CCACHE_NAME
205 /* Define to 1 if your Kerberos is Heimdal. */
208 /* Define to 1 if <netinet/in.h> contains struct in6_addr. */
211 /* Define to 1 if you have the `initgroups' function. */
212 #undef HAVE_INITGROUPS
214 /* Define to 1 if you have the `initprivs' function. */
215 #undef HAVE_INITPRIVS
217 /* Define to 1 if you have the `innetgr' function. */
220 /* Define to 1 if you have the <inttypes.h> header file. */
221 #undef HAVE_INTTYPES_H
223 /* Define if you have isblank(3). */
226 /* Define to 1 if you have the `iscomsec' function. (HP-UX >= 10.x check for
230 /* Define to 1 if you have the `issecure' function. (SunOS 4.x check for
234 /* Define to 1 if you use Kerberos IV. */
237 /* Define to 1 if you use Kerberos V. */
240 /* Define to 1 if you have the `killpg' function. */
243 /* Define to 1 if you have the `krb5_get_init_creds_opt_alloc' function. */
244 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC
246 /* Define to 1 if your `krb5_get_init_creds_opt_free' function takes two
248 #undef HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS
250 /* Define to 1 if you have the `krb5_init_secure_context' function. */
251 #undef HAVE_KRB5_INIT_SECURE_CONTEXT
253 /* Define to 1 if you have the `krb5_verify_user' function. */
254 #undef HAVE_KRB5_VERIFY_USER
256 /* Define to 1 if your LDAP needs <lber.h>. (OpenLDAP does not) */
259 /* Define to 1 if you use LDAP for sudoers. */
262 /* Define to 1 if you have the `ldapssl_init' function. */
263 #undef HAVE_LDAPSSL_INIT
265 /* Define to 1 if you have the `ldapssl_set_strength' function. */
266 #undef HAVE_LDAPSSL_SET_STRENGTH
268 /* Define to 1 if you have the `ldap_create' function. */
269 #undef HAVE_LDAP_CREATE
271 /* Define to 1 if you have the `ldap_initialize' function. */
272 #undef HAVE_LDAP_INITIALIZE
274 /* Define to 1 if you have the `ldap_sasl_bind_s' function. */
275 #undef HAVE_LDAP_SASL_BIND_S
277 /* Define to 1 if you have the `ldap_sasl_interactive_bind_s' function. */
278 #undef HAVE_LDAP_SASL_INTERACTIVE_BIND_S
280 /* Define to 1 if you have the `ldap_search_ext_s' function. */
281 #undef HAVE_LDAP_SEARCH_EXT_S
283 /* Define to 1 if you have the `ldap_ssl_client_init' function. */
284 #undef HAVE_LDAP_SSL_CLIENT_INIT
286 /* Define to 1 if you have the <ldap_ssl.h> header file. */
287 #undef HAVE_LDAP_SSL_H
289 /* Define to 1 if you have the `ldap_start_tls_s' function. */
290 #undef HAVE_LDAP_START_TLS_S
292 /* Define to 1 if you have the `ldap_start_tls_s_np' function. */
293 #undef HAVE_LDAP_START_TLS_S_NP
295 /* Define to 1 if you have the `ldap_str2dn' function. */
296 #undef HAVE_LDAP_STR2DN
298 /* Define to 1 if you have the `ldap_unbind_ext_s' function. */
299 #undef HAVE_LDAP_UNBIND_EXT_S
301 /* Define to 1 if you have the `dl' library (-ldl). */
304 /* Define to 1 to enable Linux audit support. */
305 #undef HAVE_LINUX_AUDIT
307 /* Define to 1 if you have the `lockf' function. */
310 /* Define to 1 if you have the <login_cap.h> header file. */
311 #undef HAVE_LOGIN_CAP_H
313 /* Define to 1 if the system has the type `long long int'. */
314 #undef HAVE_LONG_LONG_INT
316 /* Define to 1 if you have the `lrand48' function. */
319 /* Define to 1 if you have the <maillock.h> header file. */
320 #undef HAVE_MAILLOCK_H
322 /* Define to 1 if you have the <malloc.h> header file. */
325 /* Define to 1 if you have the `mbr_check_membership' function. */
326 #undef HAVE_MBR_CHECK_MEMBERSHIP
328 /* Define to 1 if you have the `memchr' function. */
331 /* Define to 1 if you have the `memcpy' function. */
334 /* Define to 1 if you have the <memory.h> header file. */
337 /* Define to 1 if you have the `memrchr' function. */
340 /* Define to 1 if you have the `memset' function. */
343 /* Define to 1 if you have the `mkstemps' function. */
346 /* Define to 1 if you have the <mps/ldap_ssl.h> header file. */
347 #undef HAVE_MPS_LDAP_SSL_H
349 /* Define to 1 if you have the `nanosleep' function. */
350 #undef HAVE_NANOSLEEP
352 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
355 /* Define to 1 if you have the <netgroup.h> header file. */
356 #undef HAVE_NETGROUP_H
358 /* Define to 1 if you have the `openpty' function. */
361 /* Define to 1 if you use NRL OPIE. */
364 /* Define to 1 if you use PAM authentication. */
367 /* Define to 1 if you use a specific PAM session for sudo -i. */
368 #undef HAVE_PAM_LOGIN
370 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
371 #undef HAVE_PAM_PAM_APPL_H
373 /* Define to 1 if you have the <paths.h> header file. */
376 /* Define to 1 if you have the `posix_openpt' function. */
377 #undef HAVE_POSIX_OPENPT
379 /* Define to 1 if you have the <project.h> header file. */
380 #undef HAVE_PROJECT_H
382 /* Define to 1 if you have the <pty.h> header file. */
385 /* Define to 1 if you have the `random' function. */
388 /* Define to 1 if you have the `regcomp' function. */
391 /* Define to 1 if you have the `revoke' function. */
394 /* Define to 1 if you have the <sasl.h> header file. */
397 /* Define to 1 if you have the <sasl/sasl.h> header file. */
398 #undef HAVE_SASL_SASL_H
400 /* Define if your struct sockadr has an sa_len field. */
403 /* Define to 1 if you use SecurID for authentication. */
406 /* Define to 1 if you have the <security/pam_appl.h> header file. */
407 #undef HAVE_SECURITY_PAM_APPL_H
409 /* Define to 1 to enable SELinux RBAC support. */
412 /* Define to 1 if you have the `setauthdb' function. */
413 #undef HAVE_SETAUTHDB
415 /* Define to 1 if you have the `setenv' function. */
418 /* Define to 1 if you have the `seteuid' function. */
421 /* Define to 1 if you have the `setkeycreatecon' function. */
422 #undef HAVE_SETKEYCREATECON
424 /* Define to 1 if you have the `setlocale' function. */
425 #undef HAVE_SETLOCALE
427 /* Define to 1 if you have the `setresuid' function. */
428 #undef HAVE_SETRESUID
430 /* Define to 1 if you have the `setreuid' function. */
433 /* Define to 1 if you have the `setrlimit' function. */
434 #undef HAVE_SETRLIMIT
436 /* Define to 1 if you have the `setrlimit64' function. */
437 #undef HAVE_SETRLIMIT64
439 /* Define to 1 if you have the `setsid' function. */
442 /* Define to 1 if you have the `set_auth_parameters' function. */
443 #undef HAVE_SET_AUTH_PARAMETERS
445 /* Define to 1 if you have the `sia_ses_init' function. */
446 #undef HAVE_SIA_SES_INIT
448 /* Define to 1 if you have the `sigaction' function. */
449 #undef HAVE_SIGACTION
451 /* Define to 1 if <signal.h> has the sigaction_t typedef. */
452 #undef HAVE_SIGACTION_T
454 /* Define to 1 if you use S/Key. */
457 /* Define to 1 if your S/Key library has skeyaccess(). */
458 #undef HAVE_SKEYACCESS
460 /* Define to 1 if you have the `snprintf' function. */
463 /* Define to 1 if you have the <stdint.h> header file. */
466 /* Define to 1 if you have the <stdlib.h> header file. */
469 /* Define to 1 if you have the `strcasecmp' function. */
470 #undef HAVE_STRCASECMP
472 /* Define to 1 if you have the `strchr' function. */
475 /* Define to 1 if you have the `strerror' function. */
478 /* Define to 1 if you have the `strftime' function. */
481 /* Define to 1 if you have the <strings.h> header file. */
482 #undef HAVE_STRINGS_H
484 /* Define to 1 if you have the <string.h> header file. */
487 /* Define to 1 if you have the `strlcat' function. */
490 /* Define to 1 if you have the `strlcpy' function. */
493 /* Define to 1 if you have the `strrchr' function. */
496 /* Define to 1 if you have the `strsignal' function. */
497 #undef HAVE_STRSIGNAL
499 /* Define to 1 if the system has the type `struct in6_addr'. */
500 #undef HAVE_STRUCT_IN6_ADDR
502 /* Define to 1 if your struct stat has an st_mtim member */
505 /* Define to 1 if your struct stat has an st_mtimespec member */
506 #undef HAVE_ST_MTIMESPEC
508 /* Define to 1 if your struct stat uses an st__tim union */
511 /* Define to 1 if you have the `sysconf' function. */
514 /* Define to 1 if you have the `sysctl' function. */
517 /* Define to 1 if you have the <sys/bsdtypes.h> header file. */
518 #undef HAVE_SYS_BSDTYPES_H
520 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
522 #undef HAVE_SYS_DIR_H
524 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
526 #undef HAVE_SYS_NDIR_H
528 /* Define to 1 if you have the <sys/select.h> header file. */
529 #undef HAVE_SYS_SELECT_H
531 /* Define to 1 if you have the <sys/sockio.h> header file. */
532 #undef HAVE_SYS_SOCKIO_H
534 /* Define to 1 if you have the <sys/stat.h> header file. */
535 #undef HAVE_SYS_STAT_H
537 /* Define to 1 if you have the <sys/stropts.h> header file. */
538 #undef HAVE_SYS_STROPTS_H
540 /* Define to 1 if you have the <sys/types.h> header file. */
541 #undef HAVE_SYS_TYPES_H
543 /* Define to 1 if you have the `tcsetpgrp' function. */
544 #undef HAVE_TCSETPGRP
546 /* Define to 1 if you have the <termios.h> header file and the `tcgetattr'
548 #undef HAVE_TERMIOS_H
550 /* Define to 1 if you have the <termio.h> header file. */
553 /* Define to 1 if you have struct timespec in sys/time.h */
556 /* Define to 1 if you have the `tzset' function. */
559 /* Define to 1 if you have the <unistd.h> header file. */
562 /* Define to 1 if you have the `unsetenv' function. */
565 /* Define to 1 if you have the <util.h> header file. */
568 /* Define to 1 if you have the `utimes' function. */
571 /* Define to 1 if you have the <utime.h> header file. */
574 /* Define to 1 if you have the `vasprintf' function. */
575 #undef HAVE_VASPRINTF
577 /* Define to 1 if you have the `vhangup' function. */
580 /* Define to 1 if you have the `vsnprintf' function. */
581 #undef HAVE_VSNPRINTF
583 /* Define to 1 if you have the `wait3' function. */
586 /* Define to 1 if you have the `waitpid' function. */
589 /* Define to 1 if you have the <zlib.h> header file. */
592 /* Define to 1 if you have the `_getpty' function. */
595 /* Define to 1 if you have the `_innetgr' function. */
598 /* Define to 1 if your crt0.o defines the __progname symbol for you. */
599 #undef HAVE___PROGNAME
601 /* Define to 1 if you want the hostname to be entered into the log file. */
604 /* Define to 1 if you want to ignore '.' and empty PATH elements */
605 #undef IGNORE_DOT_PATH
607 /* The message given when a bad password is entered. */
608 #undef INCORRECT_PASSWORD
610 /* The name of libvas.so */
613 /* The syslog facility sudo will use. */
616 /* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH. */
619 /* Define to 1 if you want a two line OTP (S/Key or OPIE) prompt. */
620 #undef LONG_OTP_PROMPT
622 /* Define to the sub-directory in which libtool stores uninstalled libraries.
626 /* The subject of the mail sent by sudo to the MAILTO user/address. */
629 /* The user or email address that sudo mail is sent to. */
632 /* The max number of chars per log file line (for line wrapping). */
635 /* Define to the max length of a uid_t in string context (excluding the NUL).
639 /* Define to 1 if you don't want sudo to prompt for a password by default. */
640 #undef NO_AUTHENTICATION
642 /* Define to 1 if you don't want users to get the lecture the first they user
646 /* Define to 1 if you don't want to use sudo's PAM session support */
647 #undef NO_PAM_SESSION
649 /* Define to avoid runing the mailer as root. */
650 #undef NO_ROOT_MAILER
652 /* Define to 1 if root should not be allowed to use sudo. */
655 /* Define to 1 if you want a single ticket file instead of per-tty files. */
656 #undef NO_TTY_TICKETS
658 /* Define to the address where bug reports for this package should be sent. */
659 #undef PACKAGE_BUGREPORT
661 /* Define to the full name of this package. */
664 /* Define to the full name and version of this package. */
665 #undef PACKAGE_STRING
667 /* Define to the one symbol short name of this package. */
668 #undef PACKAGE_TARNAME
670 /* Define to the home page for this package. */
673 /* Define to the version of this package. */
674 #undef PACKAGE_VERSION
676 /* The default password prompt. */
679 /* The passwd prompt timeout (in minutes). */
680 #undef PASSWORD_TIMEOUT
682 /* Define to 1 to replace politically incorrect insults with less offensive
686 /* The syslog priority sudo will use for unsuccessful attempts/errors. */
689 /* The syslog priority sudo will use for successful attempts. */
692 /* Define to 1 if the `putenv' has a const argument. */
695 /* Define as the return type of signal handlers (`int' or `void'). */
698 /* The user sudo should run commands as by default. */
701 /* Define to 1 to override the user's path with a built-in one. */
704 /* Define to 1 to send mail when the user is not allowed to run a command. */
705 #undef SEND_MAIL_WHEN_NOT_OK
707 /* Define to 1 to send mail when the user is not allowed to run sudo on this
709 #undef SEND_MAIL_WHEN_NO_HOST
711 /* Define to 1 to send mail when the user is not in the sudoers file. */
712 #undef SEND_MAIL_WHEN_NO_USER
714 /* Define to 1 if the `setpgrp' function takes no argument. */
717 /* Define to 1 if you want sudo to start a shell if given no arguments. */
718 #undef SHELL_IF_NO_ARGS
720 /* Define to 1 if you want sudo to set $HOME in shell mode. */
721 #undef SHELL_SETS_HOME
723 /* The size of `long int', as computed by sizeof. */
724 #undef SIZEOF_LONG_INT
726 /* Define to 1 if you have the ANSI C header files. */
729 /* Define to 1 if the code in interfaces.c does not compile for you. */
730 #undef STUB_LOAD_INTERFACES
732 /* The umask that the root-run prog should use. */
735 /* The number of minutes before sudo asks for a password again. */
738 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
739 #undef TIME_WITH_SYS_TIME
741 /* The number of tries a user gets to enter their password. */
742 #undef TRIES_FOR_PASSWORD
744 /* Define to 1 if the `unsetenv' function returns void instead of `int'. */
747 /* Define to 1 if you want to create ~/.sudo_as_admin_successful if the user
748 is in the admin group the first time they run sudo. */
749 #undef USE_ADMIN_FLAG
751 /* Define to 1 if you want to insult the user for entering an incorrect
755 /* Define to 1 if you use GNU stow packaging. */
758 /* Define to 1 if using a non-Unix group lookup implementation. */
759 #undef USING_NONUNIX_GROUPS
761 /* Define to avoid using the passwd/shadow file for authentication. */
762 #undef WITHOUT_PASSWD
764 /* Define to `signed' or nothing if compiler does not support a signed type
768 /* Define to empty if `const' does not conform to ANSI C. */
771 /* Define if your system lacks the dev_t type. */
774 /* Define to `int' if <sys/types.h> doesn't define. */
777 /* Define if your system lacks the ino_t type. */
780 /* Define to `int' if <sys/types.h> does not define. */
783 /* Define to `int' if <signal.h> does not define. */
786 /* Define to `unsigned int' if <sys/types.h> does not define. */
789 /* Define if your system lacks the ssize_t type. */
792 /* Define to `int' if <sys/types.h> doesn't define. */
795 /* Define to empty if the keyword `volatile' does not work. Warning: valid
796 code using `volatile' can become incorrect without. Disable with care. */
800 * Macros to convert ctime and mtime into timevals.
802 #define timespec2timeval(_ts, _tv) do { \
803 (_tv)->tv_sec = (_ts)->tv_sec; \
804 (_tv)->tv_usec = (_ts)->tv_nsec / 1000; \
809 # define ctim_get(_x, _y) timespec2timeval(&(_x)->st_ctim.st__tim, (_y))
810 # define mtim_get(_x, _y) timespec2timeval(&(_x)->st_mtim.st__tim, (_y))
812 # define ctim_get(_x, _y) timespec2timeval(&(_x)->st_ctim, (_y))
813 # define mtim_get(_x, _y) timespec2timeval(&(_x)->st_mtim, (_y))
816 # ifdef HAVE_ST_MTIMESPEC
817 # define ctim_get(_x, _y) timespec2timeval(&(_x)->st_ctimespec, (_y))
818 # define mtim_get(_x, _y) timespec2timeval(&(_x)->st_mtimespec, (_y))
820 # define ctim_get(_x, _y) do { (_y)->tv_sec = (_x)->st_ctime; (_y)->tv_usec = 0; } while (0)
821 # define mtim_get(_x, _y) do { (_y)->tv_sec = (_x)->st_mtime; (_y)->tv_usec = 0; } while (0)
822 # endif /* HAVE_ST_MTIMESPEC */
823 #endif /* HAVE_ST_MTIM */
826 * Emulate a subset of waitpid() if we don't have it.
829 # define sudo_waitpid(p, s, o) waitpid(p, s, o)
832 # define sudo_waitpid(p, s, o) wait3(s, o, NULL)
836 /* GNU stow needs /etc/sudoers to be a symlink. */
838 # define stat_sudoers stat
840 # define stat_sudoers lstat
843 /* Macros to set/clear/test flags. */
845 #define SET(t, f) ((t) |= (f))
847 #define CLR(t, f) ((t) &= ~(f))
849 #define ISSET(t, f) ((t) & (f))
851 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
852 #if defined(hpux) && !defined(__hpux)
856 #if defined(convex) && !defined(__convex__)
857 # define __convex__ 1
860 /* BSD compatibility on some SVR4 systems. */
863 #endif /* __svr4__ */
865 #endif /* _SUDO_CONFIG_H */