1 | /* config.h.in. Generated automatically from configure.in by autoheader 2.13. */ |
---|
2 | /* acconfig.h - autoheader configuration input |
---|
3 | * Rob Earhart |
---|
4 | */ |
---|
5 | /* |
---|
6 | * Copyright (c) 2001 Carnegie Mellon University. All rights reserved. |
---|
7 | * |
---|
8 | * Redistribution and use in source and binary forms, with or without |
---|
9 | * modification, are permitted provided that the following conditions |
---|
10 | * are met: |
---|
11 | * |
---|
12 | * 1. Redistributions of source code must retain the above copyright |
---|
13 | * notice, this list of conditions and the following disclaimer. |
---|
14 | * |
---|
15 | * 2. Redistributions in binary form must reproduce the above copyright |
---|
16 | * notice, this list of conditions and the following disclaimer in |
---|
17 | * the documentation and/or other materials provided with the |
---|
18 | * distribution. |
---|
19 | * |
---|
20 | * 3. The name "Carnegie Mellon University" must not be used to |
---|
21 | * endorse or promote products derived from this software without |
---|
22 | * prior written permission. For permission or any other legal |
---|
23 | * details, please contact |
---|
24 | * Office of Technology Transfer |
---|
25 | * Carnegie Mellon University |
---|
26 | * 5000 Forbes Avenue |
---|
27 | * Pittsburgh, PA 15213-3890 |
---|
28 | * (412) 268-4387, fax: (412) 268-7395 |
---|
29 | * tech-transfer@andrew.cmu.edu |
---|
30 | * |
---|
31 | * 4. Redistributions of any form whatsoever must retain the following |
---|
32 | * acknowledgment: |
---|
33 | * "This product includes software developed by Computing Services |
---|
34 | * at Carnegie Mellon University (http://www.cmu.edu/computing/)." |
---|
35 | * |
---|
36 | * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO |
---|
37 | * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
---|
38 | * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE |
---|
39 | * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
---|
40 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN |
---|
41 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING |
---|
42 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
---|
43 | */ |
---|
44 | |
---|
45 | #ifndef CONFIG_H |
---|
46 | #define CONFIG_H |
---|
47 | |
---|
48 | |
---|
49 | /* Define to empty if the keyword does not work. */ |
---|
50 | #undef const |
---|
51 | |
---|
52 | /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ |
---|
53 | #undef HAVE_SYS_WAIT_H |
---|
54 | |
---|
55 | /* Define as __inline if that's what the C compiler calls it. */ |
---|
56 | #undef inline |
---|
57 | |
---|
58 | /* Define to `int' if <sys/types.h> doesn't define. */ |
---|
59 | #undef mode_t |
---|
60 | |
---|
61 | /* Define to `int' if <sys/types.h> doesn't define. */ |
---|
62 | #undef pid_t |
---|
63 | |
---|
64 | /* Define as the return type of signal handlers (int or void). */ |
---|
65 | #undef RETSIGTYPE |
---|
66 | |
---|
67 | /* Define if you have the ANSI C header files. */ |
---|
68 | #undef STDC_HEADERS |
---|
69 | |
---|
70 | /* Define if you can safely include both <sys/time.h> and <time.h>. */ |
---|
71 | #undef TIME_WITH_SYS_TIME |
---|
72 | |
---|
73 | /* Set to the database name you want SASL to use for |
---|
74 | * username->secret lookups */ |
---|
75 | #undef SASL_DB_PATH |
---|
76 | |
---|
77 | /* what db package are we using? */ |
---|
78 | #undef SASL_GDBM |
---|
79 | #undef SASL_NDBM |
---|
80 | #undef SASL_BERKELEYDB |
---|
81 | |
---|
82 | /* which mechs can we link staticly? */ |
---|
83 | #undef STATIC_ANONYMOUS |
---|
84 | #undef STATIC_CRAMMD5 |
---|
85 | #undef STATIC_DIGESTMD5 |
---|
86 | #undef STATIC_GSSAPIV2 |
---|
87 | #undef STATIC_KERBEROS4 |
---|
88 | #undef STATIC_LOGIN |
---|
89 | #undef STATIC_MYSQL |
---|
90 | #undef STATIC_NTLM |
---|
91 | #undef STATIC_OTP |
---|
92 | #undef STATIC_PLAIN |
---|
93 | #undef STATIC_SASLDB |
---|
94 | #undef STATIC_SRP |
---|
95 | |
---|
96 | /* This is where plugins will live at runtime */ |
---|
97 | #undef PLUGINDIR |
---|
98 | |
---|
99 | /* should we use the internal rc4 library? */ |
---|
100 | #undef WITH_RC4 |
---|
101 | |
---|
102 | /* do we have des available? */ |
---|
103 | #undef WITH_DES |
---|
104 | #undef WITH_SSL_DES |
---|
105 | |
---|
106 | /* what about OpenSSL? */ |
---|
107 | #undef HAVE_OPENSSL |
---|
108 | |
---|
109 | /* should we support srp_setpass */ |
---|
110 | #undef DO_SRP_SETPASS |
---|
111 | |
---|
112 | /* do we have OPIE for server-side OTP support? */ |
---|
113 | #undef HAVE_OPIE |
---|
114 | |
---|
115 | /* Do we have kerberos for plaintext password checking? */ |
---|
116 | #undef HAVE_KRB |
---|
117 | |
---|
118 | /* do we have PAM for plaintext password checking? */ |
---|
119 | #undef HAVE_PAM |
---|
120 | |
---|
121 | /* do we have getsubopt()? */ |
---|
122 | #undef HAVE_GETSUBOPT |
---|
123 | |
---|
124 | /* Does your system have the snprintf() call? */ |
---|
125 | #undef HAVE_SNPRINTF |
---|
126 | |
---|
127 | /* Does your system have the vsnprintf() call? */ |
---|
128 | #undef HAVE_VSNPRINTF |
---|
129 | |
---|
130 | /* should we include support for the pwcheck daemon? */ |
---|
131 | #undef HAVE_PWCHECK |
---|
132 | |
---|
133 | /* where do we look for the pwcheck daemon? */ |
---|
134 | #undef PWCHECKDIR |
---|
135 | |
---|
136 | /* should we include support for the saslauth daemon? */ |
---|
137 | #undef HAVE_SASLAUTHD |
---|
138 | |
---|
139 | /* where does saslauthd look for the communication socket? */ |
---|
140 | #undef PATH_SASLAUTHD_RUNDIR |
---|
141 | |
---|
142 | /* do we want alwaystrue (discouraged)? */ |
---|
143 | #undef HAVE_ALWAYSTRUE |
---|
144 | |
---|
145 | /* are we linking against DMALLOC? */ |
---|
146 | #undef WITH_DMALLOC |
---|
147 | |
---|
148 | /* should we support sasl_checkapop */ |
---|
149 | #undef DO_SASL_CHECKAPOP |
---|
150 | |
---|
151 | /* do we pay attention to IP addresses in the kerberos 4 tickets? */ |
---|
152 | #undef KRB4_IGNORE_IP_ADDRESS |
---|
153 | |
---|
154 | /* do we have a preferred mechanism, or should we just pick the highest ssf? */ |
---|
155 | #undef PREFER_MECH |
---|
156 | |
---|
157 | /* Do we need a leading _ for dlsym? */ |
---|
158 | #undef DLSYM_NEEDS_UNDERSCORE |
---|
159 | |
---|
160 | /* Does libtool support shared libs on this system? */ |
---|
161 | #undef HAVE_DLFCN_H |
---|
162 | #undef DO_DLOPEN |
---|
163 | |
---|
164 | /* Should we try to dlopen stuff when we are staticly compiled? */ |
---|
165 | #undef TRY_DLOPEN_WHEN_STATIC |
---|
166 | |
---|
167 | /* define if your system has getaddrinfo() */ |
---|
168 | #undef HAVE_GETADDRINFO |
---|
169 | |
---|
170 | /* define if your system has getnameinfo() */ |
---|
171 | #undef HAVE_GETNAMEINFO |
---|
172 | |
---|
173 | /* define if your system has struct sockaddr_storage */ |
---|
174 | #undef HAVE_STRUCT_SOCKADDR_STORAGE |
---|
175 | |
---|
176 | /* Define if you have ss_family in struct sockaddr_storage. */ |
---|
177 | #undef HAVE_SS_FAMILY |
---|
178 | |
---|
179 | /* do we have socklen_t? */ |
---|
180 | #undef HAVE_SOCKLEN_T |
---|
181 | #undef HAVE_SOCKADDR_SA_LEN |
---|
182 | |
---|
183 | /* do we use doors for IPC? */ |
---|
184 | #undef USE_DOORS |
---|
185 | |
---|
186 | /* Define if you have the dn_expand function. */ |
---|
187 | #undef HAVE_DN_EXPAND |
---|
188 | |
---|
189 | /* Define if you have the dns_lookup function. */ |
---|
190 | #undef HAVE_DNS_LOOKUP |
---|
191 | |
---|
192 | /* Define if you have the getdomainname function. */ |
---|
193 | #undef HAVE_GETDOMAINNAME |
---|
194 | |
---|
195 | /* Define if you have the gethostname function. */ |
---|
196 | #undef HAVE_GETHOSTNAME |
---|
197 | |
---|
198 | /* Define if you have the getpwnam function. */ |
---|
199 | #undef HAVE_GETPWNAM |
---|
200 | |
---|
201 | /* Define if you have the getspnam function. */ |
---|
202 | #undef HAVE_GETSPNAM |
---|
203 | |
---|
204 | /* Define if you have the gettimeofday function. */ |
---|
205 | #undef HAVE_GETTIMEOFDAY |
---|
206 | |
---|
207 | /* Define if you have the gsskrb5_register_acceptor_identity function. */ |
---|
208 | #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY |
---|
209 | |
---|
210 | /* Define if you have the inet_aton function. */ |
---|
211 | #undef HAVE_INET_ATON |
---|
212 | |
---|
213 | /* Define if you have the jrand48 function. */ |
---|
214 | #undef HAVE_JRAND48 |
---|
215 | |
---|
216 | /* Define if you have the krb_get_err_text function. */ |
---|
217 | #undef HAVE_KRB_GET_ERR_TEXT |
---|
218 | |
---|
219 | /* Define if you have the memcpy function. */ |
---|
220 | #undef HAVE_MEMCPY |
---|
221 | |
---|
222 | /* Define if you have the mkdir function. */ |
---|
223 | #undef HAVE_MKDIR |
---|
224 | |
---|
225 | /* Define if you have the select function. */ |
---|
226 | #undef HAVE_SELECT |
---|
227 | |
---|
228 | /* Define if you have the socket function. */ |
---|
229 | #undef HAVE_SOCKET |
---|
230 | |
---|
231 | /* Define if you have the strchr function. */ |
---|
232 | #undef HAVE_STRCHR |
---|
233 | |
---|
234 | /* Define if you have the strdup function. */ |
---|
235 | #undef HAVE_STRDUP |
---|
236 | |
---|
237 | /* Define if you have the strerror function. */ |
---|
238 | #undef HAVE_STRERROR |
---|
239 | |
---|
240 | /* Define if you have the strspn function. */ |
---|
241 | #undef HAVE_STRSPN |
---|
242 | |
---|
243 | /* Define if you have the strstr function. */ |
---|
244 | #undef HAVE_STRSTR |
---|
245 | |
---|
246 | /* Define if you have the strtol function. */ |
---|
247 | #undef HAVE_STRTOL |
---|
248 | |
---|
249 | /* Define if you have the syslog function. */ |
---|
250 | #undef HAVE_SYSLOG |
---|
251 | |
---|
252 | /* Define if you have the <dirent.h> header file. */ |
---|
253 | #undef HAVE_DIRENT_H |
---|
254 | |
---|
255 | /* Define if you have the <dlfcn.h> header file. */ |
---|
256 | #undef HAVE_DLFCN_H |
---|
257 | |
---|
258 | /* Define if you have the <fcntl.h> header file. */ |
---|
259 | #undef HAVE_FCNTL_H |
---|
260 | |
---|
261 | /* Define if you have the <inttypes.h> header file. */ |
---|
262 | #undef HAVE_INTTYPES_H |
---|
263 | |
---|
264 | /* Define if you have the <limits.h> header file. */ |
---|
265 | #undef HAVE_LIMITS_H |
---|
266 | |
---|
267 | /* Define if you have the <malloc.h> header file. */ |
---|
268 | #undef HAVE_MALLOC_H |
---|
269 | |
---|
270 | /* Define if you have the <ndir.h> header file. */ |
---|
271 | #undef HAVE_NDIR_H |
---|
272 | |
---|
273 | /* Define if you have the <paths.h> header file. */ |
---|
274 | #undef HAVE_PATHS_H |
---|
275 | |
---|
276 | /* Define if you have the <stdarg.h> header file. */ |
---|
277 | #undef HAVE_STDARG_H |
---|
278 | |
---|
279 | /* Define if you have the <strings.h> header file. */ |
---|
280 | #undef HAVE_STRINGS_H |
---|
281 | |
---|
282 | /* Define if you have the <sys/dir.h> header file. */ |
---|
283 | #undef HAVE_SYS_DIR_H |
---|
284 | |
---|
285 | /* Define if you have the <sys/file.h> header file. */ |
---|
286 | #undef HAVE_SYS_FILE_H |
---|
287 | |
---|
288 | /* Define if you have the <sys/ndir.h> header file. */ |
---|
289 | #undef HAVE_SYS_NDIR_H |
---|
290 | |
---|
291 | /* Define if you have the <sys/param.h> header file. */ |
---|
292 | #undef HAVE_SYS_PARAM_H |
---|
293 | |
---|
294 | /* Define if you have the <sys/time.h> header file. */ |
---|
295 | #undef HAVE_SYS_TIME_H |
---|
296 | |
---|
297 | /* Define if you have the <sys/uio.h> header file. */ |
---|
298 | #undef HAVE_SYS_UIO_H |
---|
299 | |
---|
300 | /* Define if you have the <sysexits.h> header file. */ |
---|
301 | #undef HAVE_SYSEXITS_H |
---|
302 | |
---|
303 | /* Define if you have the <syslog.h> header file. */ |
---|
304 | #undef HAVE_SYSLOG_H |
---|
305 | |
---|
306 | /* Define if you have the <unistd.h> header file. */ |
---|
307 | #undef HAVE_UNISTD_H |
---|
308 | |
---|
309 | /* Define if you have the <varargs.h> header file. */ |
---|
310 | #undef HAVE_VARARGS_H |
---|
311 | |
---|
312 | /* Define if you have the db library (-ldb). */ |
---|
313 | #undef HAVE_LIBDB |
---|
314 | |
---|
315 | /* Define if you have the resolv library (-lresolv). */ |
---|
316 | #undef HAVE_LIBRESOLV |
---|
317 | |
---|
318 | /* Name of package */ |
---|
319 | #undef PACKAGE |
---|
320 | |
---|
321 | /* Version number of package */ |
---|
322 | #undef VERSION |
---|
323 | |
---|
324 | /* define if your compiler has __attribute__ */ |
---|
325 | #undef HAVE___ATTRIBUTE__ |
---|
326 | |
---|
327 | /* Define if you have the gssapi.h header file */ |
---|
328 | #undef HAVE_GSSAPI_H |
---|
329 | |
---|
330 | /* Define if your GSSAPI implimentation defines GSS_C_NT_HOSTBASED_SERVICE */ |
---|
331 | #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE |
---|
332 | |
---|
333 | /* Define if your GSSAPI implimentation defines GSS_C_NT_HOSTBASED_SERVICE */ |
---|
334 | #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE |
---|
335 | |
---|
336 | |
---|
337 | /* Create a struct iovec if we need one */ |
---|
338 | #if !defined(_WIN32) && !defined(HAVE_SYS_UIO_H) |
---|
339 | /* (win32 is handled in sasl.h) */ |
---|
340 | struct iovec { |
---|
341 | char *iov_base; |
---|
342 | long iov_len; |
---|
343 | }; |
---|
344 | #else |
---|
345 | #include <sys/types.h> |
---|
346 | #include <sys/uio.h> |
---|
347 | #endif |
---|
348 | |
---|
349 | /* location of the random number generator */ |
---|
350 | #ifndef DEV_RANDOM |
---|
351 | #define DEV_RANDOM "/dev/random" |
---|
352 | #endif |
---|
353 | |
---|
354 | /* if we've got krb_get_err_txt, we might as well use it; |
---|
355 | especially since krb_err_txt isn't in some newer distributions |
---|
356 | (MIT Kerb for Mac 4 being a notable example). If we don't have |
---|
357 | it, we fall back to the krb_err_txt array */ |
---|
358 | #ifdef HAVE_KRB_GET_ERR_TEXT |
---|
359 | #define get_krb_err_txt krb_get_err_text |
---|
360 | #else |
---|
361 | #define get_krb_err_txt(X) (krb_err_txt[(X)]) |
---|
362 | #endif |
---|
363 | |
---|
364 | /* Make Solaris happy... */ |
---|
365 | #ifndef __EXTENSIONS__ |
---|
366 | #define __EXTENSIONS__ |
---|
367 | #endif |
---|
368 | |
---|
369 | /* Make Linux happy... */ |
---|
370 | #ifndef _GNU_SOURCE |
---|
371 | #define _GNU_SOURCE |
---|
372 | #endif |
---|
373 | |
---|
374 | #ifndef HAVE___ATTRIBUTE__ |
---|
375 | /* Can't use attributes... */ |
---|
376 | #define __attribute__(foo) |
---|
377 | #endif |
---|
378 | |
---|
379 | #define SASL_PATH_ENV_VAR "SASL_PATH" |
---|
380 | |
---|
381 | #include <stdlib.h> |
---|
382 | #include <sys/types.h> |
---|
383 | #include <sys/socket.h> |
---|
384 | #ifndef WIN32 |
---|
385 | # include <netdb.h> |
---|
386 | # ifdef HAVE_SYS_PARAM_H |
---|
387 | # include <sys/param.h> |
---|
388 | # endif |
---|
389 | #else /* WIN32 */ |
---|
390 | # include <winsock.h> |
---|
391 | #endif /* WIN32 */ |
---|
392 | #include <string.h> |
---|
393 | |
---|
394 | #include <netinet/in.h> |
---|
395 | |
---|
396 | #ifndef HAVE_SOCKLEN_T |
---|
397 | typedef unsigned int socklen_t; |
---|
398 | #endif /* HAVE_SOCKLEN_T */ |
---|
399 | |
---|
400 | #ifndef HAVE_STRUCT_SOCKADDR_STORAGE |
---|
401 | #define _SS_MAXSIZE 128 /* Implementation specific max size */ |
---|
402 | #define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr)) |
---|
403 | |
---|
404 | struct sockaddr_storage { |
---|
405 | struct sockaddr ss_sa; |
---|
406 | char __ss_pad2[_SS_PADSIZE]; |
---|
407 | }; |
---|
408 | # define ss_family ss_sa.sa_family |
---|
409 | #endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */ |
---|
410 | |
---|
411 | #ifndef AF_INET6 |
---|
412 | /* Define it to something that should never appear */ |
---|
413 | #define AF_INET6 AF_MAX |
---|
414 | #endif |
---|
415 | |
---|
416 | #ifndef HAVE_GETADDRINFO |
---|
417 | #define getaddrinfo sasl_getaddrinfo |
---|
418 | #define freeaddrinfo sasl_freeaddrinfo |
---|
419 | #define getnameinfo sasl_getnameinfo |
---|
420 | #define gai_strerror sasl_gai_strerror |
---|
421 | #include "gai.h" |
---|
422 | #endif |
---|
423 | |
---|
424 | /* Defined in RFC 1035. max strlen is only 253 due to length bytes. */ |
---|
425 | #ifndef MAXHOSTNAMELEN |
---|
426 | #define MAXHOSTNAMELEN 255 |
---|
427 | #endif |
---|
428 | |
---|
429 | #ifndef HAVE_SYSEXITS_H |
---|
430 | #include "exits.h" |
---|
431 | #else |
---|
432 | #include "sysexits.h" |
---|
433 | #endif |
---|
434 | |
---|
435 | #ifndef NI_WITHSCOPEID |
---|
436 | #define NI_WITHSCOPEID 0 |
---|
437 | #endif |
---|
438 | |
---|
439 | /* Get the correct time.h */ |
---|
440 | #if TIME_WITH_SYS_TIME |
---|
441 | # include <sys/time.h> |
---|
442 | # include <time.h> |
---|
443 | #else |
---|
444 | # if HAVE_SYS_TIME_H |
---|
445 | # include <sys/time.h> |
---|
446 | # else |
---|
447 | # include <time.h> |
---|
448 | # endif |
---|
449 | #endif |
---|
450 | |
---|
451 | #endif /* CONFIG_H */ |
---|