1 /* config.h.in. Generated by hand, don't use autoheader. */
6 /* Location of lastlog file */
7 #undef LASTLOG_LOCATION
9 /* If lastlog is a directory */
12 /* Location of random number pool */
15 /* Are we using the Entropy gathering daemon */
18 /* Define if your ssl headers are included with #include <ssl/header.h> */
21 /* Define if your ssl headers are included with #include <openssl/header.h> */
24 /* Define is utmp.h has a ut_host field */
25 #undef HAVE_HOST_IN_UTMP
27 /* Define is libutil has login() function */
28 #undef HAVE_LIBUTIL_LOGIN
30 /* Define if you want external askpass support */
31 #undef USE_EXTERNAL_ASKPASS
33 /* Define if libc defines __progname */
34 #undef HAVE___PROGNAME
36 /* Define if you want Kerberos 4 support */
39 /* Define if you want AFS support */
42 /* Define if you want S/Key support */
45 /* Define if you want TCP Wrappers support */
48 /* Define if your libraries define login() */
51 /* Define if your libraries define daemon() */
54 /* Define if you want to allow MD5 passwords */
55 #undef HAVE_MD5_PASSWORDS
57 /* Define if you have an old version of PAM which takes only one argument */
69 /* ******************* Shouldn't need to edit below this line ************** */
71 #include <sys/types.h> /* For u_intXX_t */
72 #include <sys/socket.h> /* For SHUT_XXXX */
75 # include <paths.h> /* For _PATH_XXX */
79 # include <utmp.h> /* For _PATH_XXX */
82 #ifdef HAVE_SYS_TIME_H
83 # include <sys/time.h> /* For timersub */
86 #ifdef HAVE_MAILLOCK_H
93 SHUT_RD = 0, /* No more receptions. */
94 #define SHUT_RD SHUT_RD
95 SHUT_WR, /* No more transmissions. */
96 #define SHUT_WR SHUT_WR
97 SHUT_RDWR /* No more receptions or transmissions. */
98 #define SHUT_RDWR SHUT_RDWR
102 /* If sys/types.h does not supply intXX_t, supply them ourselves */
103 /* (or die trying) */
105 # if (SIZEOF_SHORT_INT == 2)
106 # define int16_t short int
108 # error "16 bit int type not found."
110 # if (SIZEOF_INT == 4)
113 # error "32 bit int type not found."
115 # if (SIZEOF_LONG_INT == 8)
116 # define int64_t long int
118 # if (SIZEOF_LONG_LONG_INT == 8)
119 # define int64_t long long int
121 # error "64 bit int type not found."
126 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
127 #ifndef HAVE_U_INTXX_T
128 # ifdef HAVE_UINTXX_T
129 # define u_int16_t uint16_t
130 # define u_int32_t uint32_t
131 # define u_int64_t uint64_t
133 # if (SIZEOF_SHORT_INT == 2)
134 # define u_int16_t unsigned short int
136 # error "16 bit int type not found."
138 # if (SIZEOF_INT == 4)
139 # define u_int32_t unsigned int
141 # error "32 bit int type not found."
143 # if (SIZEOF_LONG_INT == 8)
144 # define u_int64_t unsigned long int
146 # if (SIZEOF_LONG_LONG_INT == 8)
147 # define u_int64_t unsigned long long int
149 # error "64 bit int type not found."
155 /* If quad_t is not supplied, then supply it now. We can rely on int64_t */
156 /* being defined by the above */
158 # define quad_t int64_t
161 #ifndef _PATH_LASTLOG
162 # ifdef LASTLOG_LOCATION
163 # define _PATH_LASTLOG LASTLOG_LOCATION
169 # define _PATH_UTMP UTMP_FILE
171 # define _PATH_UTMP "/var/adm/utmp"
177 # define _PATH_WTMP WTMP_FILE
179 # define _PATH_WTMP "/var/adm/wtmp"
184 # define _PATH_BSHELL "/bin/sh"
187 #ifndef _PATH_STDPATH
188 # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
191 #ifndef _PATH_DEVNULL
192 # define _PATH_DEVNULL "/dev/null"
195 #ifndef _PATH_MAILDIR
197 # define _PATH_MAILDIR MAILDIR
202 # define MAX(a,b) (((a)>(b))?(a):(b))
203 # define MIN(a,b) (((a)<(b))?(a):(b))
207 #define timersub(a, b, result) \
209 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
210 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
211 if ((result)->tv_usec < 0) { \
212 --(result)->tv_sec; \
213 (result)->tv_usec += 1000000; \
220 # define PAM_STRERROR(a,b) pam_strerror((b))
222 # define PAM_STRERROR(a,b) pam_strerror((a),(b))