]>
Commit | Line | Data |
---|---|---|
5881cd60 | 1 | /* config.h.in. Generated by hand, don't use autoheader. */ |
2 | ||
d4f11b59 | 3 | /* SSL directory. */ |
4 | #undef ssldir | |
5 | ||
f601d847 | 6 | /* Location of lastlog file */ |
7 | #undef LASTLOG_LOCATION | |
8 | ||
2b942fe0 | 9 | /* If lastlog is a directory */ |
10 | #undef LASTLOG_IS_DIR | |
11 | ||
f601d847 | 12 | /* Location of random number pool */ |
4cca272e | 13 | #undef RANDOM_POOL |
14 | ||
15 | /* Are we using the Entropy gathering daemon */ | |
16 | #undef HAVE_EGD | |
17 | ||
5881cd60 | 18 | /* Define if your ssl headers are included with #include <ssl/header.h> */ |
19 | #undef HAVE_SSL | |
20 | ||
21 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | |
22 | #undef HAVE_OPENSSL | |
4cca272e | 23 | |
24 | /* Define is utmp.h has a ut_host field */ | |
25 | #undef HAVE_HOST_IN_UTMP | |
26 | ||
8946db53 | 27 | /* Define is utmpx.h has a ut_host field */ |
28 | #undef HAVE_HOST_IN_UTMPX | |
29 | ||
4cca272e | 30 | /* Define is libutil has login() function */ |
31 | #undef HAVE_LIBUTIL_LOGIN | |
6a17f9c2 | 32 | |
f601d847 | 33 | /* Define if you want external askpass support */ |
dad9a31e | 34 | #undef USE_EXTERNAL_ASKPASS |
045672f9 | 35 | |
f601d847 | 36 | /* Define if libc defines __progname */ |
37 | #undef HAVE___PROGNAME | |
38 | ||
91b8065d | 39 | /* Define if you want Kerberos 4 support */ |
40 | #undef KRB4 | |
41 | ||
42 | /* Define if you want AFS support */ | |
43 | #undef AFS | |
44 | ||
45 | /* Define if you want S/Key support */ | |
46 | #undef SKEY | |
47 | ||
48 | /* Define if you want TCP Wrappers support */ | |
49 | #undef LIBWRAP | |
50 | ||
beb43d31 | 51 | /* Define if your libraries define login() */ |
52 | #undef HAVE_LOGIN | |
53 | ||
54 | /* Define if your libraries define daemon() */ | |
55 | #undef HAVE_DAEMON | |
56 | ||
caf3bc51 | 57 | /* Define if you want to allow MD5 passwords */ |
58 | #undef HAVE_MD5_PASSWORDS | |
59 | ||
96ad4350 | 60 | /* Define if you have an old version of PAM which takes only one argument */ |
61 | /* to pam_strerror */ | |
62 | #undef HAVE_OLD_PAM | |
63 | ||
2b942fe0 | 64 | /* Data types */ |
65 | #undef HAVE_QUAD_T | |
66 | #undef HAVE_INTXX_T | |
67 | #undef HAVE_U_INTXX_T | |
68 | #undef HAVE_UINTXX_T | |
69 | ||
a408af76 | 70 | /* Define if you have /dev/ptmx */ |
71 | #undef HAVE_DEV_PTMX | |
72 | ||
73 | /* Define if you have /dev/ptc */ | |
74 | #undef HAVE_DEV_PTS_AND_PTC | |
75 | ||
847e8865 | 76 | /* Path to xauth binary */ |
77 | #undef XAUTH_PATH | |
78 | ||
dcf3fbb2 | 79 | @BOTTOM@ |
80 | ||
045672f9 | 81 | /* ******************* Shouldn't need to edit below this line ************** */ |
6a17f9c2 | 82 | |
8b241e50 | 83 | #include <sys/types.h> /* For u_intXX_t */ |
84 | #include <sys/socket.h> /* For SHUT_XXXX */ | |
2b942fe0 | 85 | |
86 | #ifdef HAVE_PATHS_H | |
87 | # include <paths.h> /* For _PATH_XXX */ | |
88 | #endif | |
793edc37 | 89 | |
8b241e50 | 90 | #ifdef HAVE_UTMP_H |
91 | # include <utmp.h> /* For _PATH_XXX */ | |
92 | #endif | |
93 | ||
8946db53 | 94 | #ifdef HAVE_UTMPX_H |
95 | # include <utmpx.h> /* For _PATH_XXX */ | |
96 | #endif | |
97 | ||
b09a984b | 98 | #ifdef HAVE_SYS_TIME_H |
99 | # include <sys/time.h> /* For timersub */ | |
100 | #endif | |
101 | ||
8b241e50 | 102 | #ifdef HAVE_MAILLOCK_H |
103 | #include <maillock.h> | |
104 | #endif | |
105 | ||
6a17f9c2 | 106 | #ifndef SHUT_RDWR |
107 | enum | |
108 | { | |
8946db53 | 109 | SHUT_RD = 0, /* No more receptions. */ |
110 | SHUT_WR, /* No more transmissions. */ | |
111 | SHUT_RDWR /* No more receptions or transmissions. */ | |
6a17f9c2 | 112 | }; |
8946db53 | 113 | # define SHUT_RD SHUT_RD |
114 | # define SHUT_WR SHUT_WR | |
115 | # define SHUT_RDWR SHUT_RDWR | |
6a17f9c2 | 116 | #endif |
92da7197 | 117 | |
2b942fe0 | 118 | /* If sys/types.h does not supply intXX_t, supply them ourselves */ |
119 | /* (or die trying) */ | |
120 | #ifndef HAVE_INTXX_T | |
121 | # if (SIZEOF_SHORT_INT == 2) | |
122 | # define int16_t short int | |
123 | # else | |
124 | # error "16 bit int type not found." | |
125 | # endif | |
126 | # if (SIZEOF_INT == 4) | |
127 | # define int32_t int | |
128 | # else | |
129 | # error "32 bit int type not found." | |
130 | # endif | |
131 | # if (SIZEOF_LONG_INT == 8) | |
132 | # define int64_t long int | |
133 | # else | |
134 | # if (SIZEOF_LONG_LONG_INT == 8) | |
135 | # define int64_t long long int | |
136 | # else | |
137 | # error "64 bit int type not found." | |
138 | # endif | |
139 | # endif | |
92da7197 | 140 | #endif |
141 | ||
2b942fe0 | 142 | /* If sys/types.h does not supply u_intXX_t, supply them ourselves */ |
143 | #ifndef HAVE_U_INTXX_T | |
144 | # ifdef HAVE_UINTXX_T | |
145 | # define u_int16_t uint16_t | |
146 | # define u_int32_t uint32_t | |
147 | # define u_int64_t uint64_t | |
148 | # else | |
149 | # if (SIZEOF_SHORT_INT == 2) | |
150 | # define u_int16_t unsigned short int | |
151 | # else | |
152 | # error "16 bit int type not found." | |
153 | # endif | |
154 | # if (SIZEOF_INT == 4) | |
155 | # define u_int32_t unsigned int | |
156 | # else | |
157 | # error "32 bit int type not found." | |
158 | # endif | |
159 | # if (SIZEOF_LONG_INT == 8) | |
160 | # define u_int64_t unsigned long int | |
161 | # else | |
162 | # if (SIZEOF_LONG_LONG_INT == 8) | |
163 | # define u_int64_t unsigned long long int | |
164 | # else | |
165 | # error "64 bit int type not found." | |
166 | # endif | |
167 | # endif | |
168 | # endif | |
92da7197 | 169 | #endif |
f601d847 | 170 | |
2b942fe0 | 171 | /* If quad_t is not supplied, then supply it now. We can rely on int64_t */ |
172 | /* being defined by the above */ | |
173 | #ifndef HAVE_QUAD_T | |
174 | # define quad_t int64_t | |
793edc37 | 175 | #endif |
176 | ||
8946db53 | 177 | /* If _PATH_LASTLOG is not defined by system headers, set it to the */ |
178 | /* lastlog file detected by autoconf */ | |
f601d847 | 179 | #ifndef _PATH_LASTLOG |
180 | # ifdef LASTLOG_LOCATION | |
181 | # define _PATH_LASTLOG LASTLOG_LOCATION | |
182 | # endif | |
183 | #endif | |
184 | ||
8946db53 | 185 | /* Use utmpx if supported */ |
186 | #ifdef HAVE_UTMPX_H | |
187 | # define UTMP_STR utmpx | |
188 | #else | |
189 | # ifdef HAVE_UTMP_H | |
190 | # define UTMP_STR utmp | |
191 | # endif | |
192 | #endif | |
193 | ||
f601d847 | 194 | #ifndef _PATH_UTMP |
8946db53 | 195 | # ifdef UTMPX_FILE |
196 | # define _PATH_UTMP UTMPX_FILE | |
cf8dd513 | 197 | # else |
8946db53 | 198 | # ifdef UTMP_FILE |
199 | # define _PATH_UTMP UTMP_FILE | |
200 | # else | |
201 | # define _PATH_UTMP "/var/adm/utmp" | |
202 | # endif | |
f601d847 | 203 | # endif |
204 | #endif | |
205 | ||
206 | #ifndef _PATH_WTMP | |
8946db53 | 207 | # ifdef WTMPX_FILE |
208 | # define _PATH_WTMP WTMPX_FILE | |
cf8dd513 | 209 | # else |
8946db53 | 210 | # ifdef WTMP_FILE |
211 | # define _PATH_WTMP WTMP_FILE | |
212 | # else | |
213 | # define _PATH_WTMP "/var/adm/wtmp" | |
214 | # endif | |
f601d847 | 215 | # endif |
216 | #endif | |
217 | ||
218 | #ifndef _PATH_BSHELL | |
219 | # define _PATH_BSHELL "/bin/sh" | |
220 | #endif | |
221 | ||
222 | #ifndef _PATH_STDPATH | |
223 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:" | |
224 | #endif | |
225 | ||
8b241e50 | 226 | #ifndef _PATH_DEVNULL |
227 | # define _PATH_DEVNULL "/dev/null" | |
228 | #endif | |
229 | ||
f601d847 | 230 | #ifndef _PATH_MAILDIR |
231 | # ifdef MAILDIR | |
232 | # define _PATH_MAILDIR MAILDIR | |
233 | # endif | |
234 | #endif | |
793edc37 | 235 | |
236 | #ifndef MAX | |
237 | # define MAX(a,b) (((a)>(b))?(a):(b)) | |
238 | # define MIN(a,b) (((a)<(b))?(a):(b)) | |
239 | #endif | |
b09a984b | 240 | |
241 | #ifndef timersub | |
242 | #define timersub(a, b, result) \ | |
243 | do { \ | |
244 | (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ | |
245 | (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ | |
246 | if ((result)->tv_usec < 0) { \ | |
247 | --(result)->tv_sec; \ | |
248 | (result)->tv_usec += 1000000; \ | |
249 | } \ | |
250 | } while (0) | |
b09a984b | 251 | #endif |
96ad4350 | 252 | |
8946db53 | 253 | /* In older versions of libpam, pam_strerror takes a single argument */ |
96ad4350 | 254 | #ifdef HAVE_OLD_PAM |
255 | # define PAM_STRERROR(a,b) pam_strerror((b)) | |
256 | #else | |
257 | # define PAM_STRERROR(a,b) pam_strerror((a),(b)) | |
258 | #endif | |
dad3b556 | 259 | |
260 | #ifndef __P | |
261 | # define __P(x) x | |
262 | #endif | |
8946db53 | 263 | |
906a2515 | 264 | #if defined(__GNUC__) && (__GNUC__ < 2) |
265 | # define __attribute__(x) | |
847e8865 | 266 | #else |
267 | # define __attribute__(x) | |
906a2515 | 268 | #endif /* defined(__GNUC__) && (__GNUC__ < 2) */ |