1 /* config.h.in. Generated from configure.in by autoheader. */
4 /* acconfig.h - autoheader configuration input */
6 * Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
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
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
27 * Pittsburgh, PA 15213-3890
28 * (412) 268-4387, fax: (412) 268-7395
29 * tech-transfer@andrew.cmu.edu
31 * 4. Redistributions of any form whatsoever must retain the following
33 * "This product includes software developed by Computing Services
34 * at Carnegie Mellon University (http://www.cmu.edu/computing/)."
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.
49 /* Runtime config file location */
52 /* Do we need a leading _ for dlsym? */
53 #undef DLSYM_NEEDS_UNDERSCORE
55 /* Should we build a shared plugin (via dlopen) library? */
58 /* should we support sasl_checkapop? */
59 #undef DO_SASL_CHECKAPOP
61 /* should we support setpass() for SRP? */
64 /* should we mutex-wrap calls into the GSS library? */
65 #undef GSS_USE_MUTEXES
67 /* Enable 'alwaystrue' password verifier? */
68 #undef HAVE_ALWAYSTRUE
70 /* Include support for Courier's authdaemond? */
71 #undef HAVE_AUTHDAEMON
73 /* Define to 1 if you have the <des.h> header file. */
76 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
80 /* Define to 1 if you have the <dlfcn.h> header file. */
83 /* Define to 1 if you have the `dns_lookup' function. */
84 #undef HAVE_DNS_LOOKUP
86 /* Define to 1 if you have the `dn_expand' function. */
89 /* Define to 1 if you have the <fcntl.h> header file. */
92 /* Do we have a getaddrinfo? */
93 #undef HAVE_GETADDRINFO
95 /* Define to 1 if you have the `getdomainname' function. */
96 #undef HAVE_GETDOMAINNAME
98 /* Define to 1 if you have the `gethostname' function. */
99 #undef HAVE_GETHOSTNAME
101 /* Do we have a getnameinfo() function? */
102 #undef HAVE_GETNAMEINFO
104 /* Define to 1 if you have the `getpwnam' function. */
107 /* Define to 1 if you have the `getspnam' function. */
110 /* do we have getsubopt()? */
111 #undef HAVE_GETSUBOPT
113 /* Define to 1 if you have the `gettimeofday' function. */
114 #undef HAVE_GETTIMEOFDAY
116 /* Define if you have the gssapi.h header file */
119 /* Define to 1 if you have the `gsskrb5_register_acceptor_identity' function.
121 #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
123 /* Define if your GSSAPI implimentation defines GSS_C_NT_HOSTBASED_SERVICE */
124 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
126 /* Define if your GSSAPI implimentation defines GSS_C_NT_USER_NAME */
127 #undef HAVE_GSS_C_NT_USER_NAME
129 /* Define to 1 if you have the `inet_aton' function. */
130 #undef HAVE_INET_ATON
132 /* Define to 1 if you have the <inttypes.h> header file. */
133 #undef HAVE_INTTYPES_H
135 /* Define to 1 if you have the `jrand48' function. */
138 /* Do we have Kerberos 4 Support? */
141 /* Define to 1 if you have the `krb_get_err_text' function. */
142 #undef HAVE_KRB_GET_ERR_TEXT
144 /* Define to 1 if you have the <lber.h> header file. */
147 /* Define to 1 if you have the <ldap.h> header file. */
150 /* Define to 1 if you have the `resolv' library (-lresolv). */
151 #undef HAVE_LIBRESOLV
153 /* Define to 1 if you have the <limits.h> header file. */
156 /* Define to 1 if you have the <malloc.h> header file. */
159 /* Define to 1 if you have the `memcpy' function. */
162 /* Define to 1 if you have the <memory.h> header file. */
165 /* Define to 1 if you have the `mkdir' function. */
168 /* Do we have mysql support? */
171 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
174 /* Do we have OpenSSL? */
177 /* Use OPIE for server-side OTP? */
180 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
181 #undef HAVE_PAM_PAM_APPL_H
183 /* Define to 1 if you have the <paths.h> header file. */
186 /* Do we have Postgres support? */
189 /* Include Support for pwcheck daemon? */
192 /* Include support for saslauthd? */
193 #undef HAVE_SASLAUTHD
195 /* Define to 1 if you have the <security/pam_appl.h> header file. */
196 #undef HAVE_SECURITY_PAM_APPL_H
198 /* Define to 1 if you have the `select' function. */
201 /* Does the system have snprintf()? */
204 /* Does sockaddr have an sa_len? */
205 #undef HAVE_SOCKADDR_SA_LEN
207 /* Define to 1 if you have the `socket' function. */
210 /* Do we have a socklen_t? */
211 #undef HAVE_SOCKLEN_T
213 /* Do we have SQLite support? */
216 /* Is there an ss_family in sockaddr_storage? */
217 #undef HAVE_SS_FAMILY
219 /* Define to 1 if you have the <stdarg.h> header file. */
222 /* Define to 1 if you have the <stdint.h> header file. */
225 /* Define to 1 if you have the <stdlib.h> header file. */
228 /* Define to 1 if you have the `strchr' function. */
231 /* Define to 1 if you have the `strdup' function. */
234 /* Define to 1 if you have the `strerror' function. */
237 /* Define to 1 if you have the <strings.h> header file. */
238 #undef HAVE_STRINGS_H
240 /* Define to 1 if you have the <string.h> header file. */
243 /* Define to 1 if you have the `strspn' function. */
246 /* Define to 1 if you have the `strstr' function. */
249 /* Define to 1 if you have the `strtol' function. */
252 /* Do we have struct sockaddr_stroage? */
253 #undef HAVE_STRUCT_SOCKADDR_STORAGE
255 /* Define to 1 if you have the <sysexits.h> header file. */
256 #undef HAVE_SYSEXITS_H
258 /* Define to 1 if you have the `syslog' function. */
261 /* Define to 1 if you have the <syslog.h> header file. */
264 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
266 #undef HAVE_SYS_DIR_H
268 /* Define to 1 if you have the <sys/file.h> header file. */
269 #undef HAVE_SYS_FILE_H
271 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
273 #undef HAVE_SYS_NDIR_H
275 /* Define to 1 if you have the <sys/param.h> header file. */
276 #undef HAVE_SYS_PARAM_H
278 /* Define to 1 if you have the <sys/stat.h> header file. */
279 #undef HAVE_SYS_STAT_H
281 /* Define to 1 if you have the <sys/time.h> header file. */
282 #undef HAVE_SYS_TIME_H
284 /* Define to 1 if you have the <sys/types.h> header file. */
285 #undef HAVE_SYS_TYPES_H
287 /* Define to 1 if you have the <sys/uio.h> header file. */
288 #undef HAVE_SYS_UIO_H
290 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
291 #undef HAVE_SYS_WAIT_H
293 /* Define to 1 if you have the <unistd.h> header file. */
296 /* Define to 1 if you have the <varargs.h> header file. */
297 #undef HAVE_VARARGS_H
299 /* Does the system have vsnprintf()? */
300 #undef HAVE_VSNPRINTF
302 /* define if your compiler has __attribute__ */
303 #undef HAVE___ATTRIBUTE__
305 /* Should we keep handle to Berkeley DB open in SASLDB plugin? */
308 /* Ignore IP Address in Kerberos 4 tickets? */
309 #undef KRB4_IGNORE_IP_ADDRESS
311 /* Name of package */
314 /* Define to the address where bug reports for this package should be sent. */
315 #undef PACKAGE_BUGREPORT
317 /* Define to the full name of this package. */
320 /* Define to the full name and version of this package. */
321 #undef PACKAGE_STRING
323 /* Define to the one symbol short name of this package. */
324 #undef PACKAGE_TARNAME
326 /* Define to the version of this package. */
327 #undef PACKAGE_VERSION
329 /* Where do we look for Courier authdaemond's socket? */
330 #undef PATH_AUTHDAEMON_SOCKET
332 /* Where do we look for saslauthd's socket? */
333 #undef PATH_SASLAUTHD_RUNDIR
335 /* Runtime plugin location */
338 /* Force a preferred mechanism */
341 /* Location of pwcheck socket */
344 /* Define as the return type of signal handlers (`int' or `void'). */
347 /* Use BerkeleyDB for SASLdb */
348 #undef SASL_BERKELEYDB
350 /* Path to default SASLdb database */
353 /* File to use for source of randomness */
354 #undef SASL_DEV_RANDOM
356 /* Use GDBM for SASLdb */
359 /* Use NDBM for SASLdb */
362 /* The size of a `long', as computed by sizeof. */
365 /* Link ANONYMOUS Staticly */
366 #undef STATIC_ANONYMOUS
368 /* Link CRAM-MD5 Staticly */
369 #undef STATIC_CRAMMD5
371 /* Link DIGEST-MD5 Staticly */
372 #undef STATIC_DIGESTMD5
374 /* Link GSSAPI Staticly */
375 #undef STATIC_GSSAPIV2
377 /* User KERBEROS_V4 Staticly */
378 #undef STATIC_KERBEROS4
380 /* Link ldapdb plugin Staticly */
383 /* Link LOGIN Staticly */
386 /* Link NTLM Staticly */
389 /* Link OTP Staticly */
392 /* Link PASSDSS Staticly */
393 #undef STATIC_PASSDSS
395 /* Link PLAIN Staticly */
398 /* Link SASLdb Staticly */
401 /* Link SQL plugin staticly */
404 /* Link SRP Staticly */
407 /* Define to 1 if you have the ANSI C header files. */
410 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
411 #undef TIME_WITH_SYS_TIME
413 /* Should we try to dlopen() plugins while staticly compiled? */
414 #undef TRY_DLOPEN_WHEN_STATIC
416 /* use the doors IPC API for saslauthd? */
419 /* Version number of package */
425 /* Linking against dmalloc? */
428 /* Use internal RC4 implementation? */
431 /* Use OpenSSL DES Implementation */
434 /* Define to empty if `const' does not conform to ANSI C. */
437 /* Define as `__inline' if that's what the C compiler calls it, or to nothing
438 if it is not supported. */
441 /* Define to `int' if <sys/types.h> does not define. */
444 /* Define to `int' if <sys/types.h> does not define. */
450 /* Create a struct iovec if we need one */
451 #if !defined(_WIN32) && !defined(HAVE_SYS_UIO_H)
452 /* (win32 is handled in sasl.h) */
458 #include <sys/types.h>
462 /* location of the random number generator */
466 #define DEV_RANDOM SASL_DEV_RANDOM
468 /* if we've got krb_get_err_txt, we might as well use it;
469 especially since krb_err_txt isn't in some newer distributions
470 (MIT Kerb for Mac 4 being a notable example). If we don't have
471 it, we fall back to the krb_err_txt array */
472 #ifdef HAVE_KRB_GET_ERR_TEXT
473 #define get_krb_err_txt krb_get_err_text
475 #define get_krb_err_txt(X) (krb_err_txt[(X)])
478 /* Make Solaris happy... */
479 #ifndef __EXTENSIONS__
480 #define __EXTENSIONS__
483 /* Make Linux happy... */
488 #ifndef HAVE___ATTRIBUTE__
489 /* Can't use attributes... */
490 #define __attribute__(foo)
493 #define SASL_PATH_ENV_VAR "SASL_PATH"
494 #define SASL_CONF_PATH_ENV_VAR "SASL_CONF_PATH"
497 #include <sys/types.h>
498 #include <sys/socket.h>
501 # ifdef HAVE_SYS_PARAM_H
502 # include <sys/param.h>
505 # include <winsock2.h>
509 #include <netinet/in.h>
511 #ifndef HAVE_SOCKLEN_T
512 typedef unsigned int socklen_t;
513 #endif /* HAVE_SOCKLEN_T */
515 #ifndef HAVE_STRUCT_SOCKADDR_STORAGE
516 #define _SS_MAXSIZE 128 /* Implementation specific max size */
517 #define _SS_PADSIZE (_SS_MAXSIZE - sizeof (struct sockaddr))
519 struct sockaddr_storage {
520 struct sockaddr ss_sa;
521 char __ss_pad2[_SS_PADSIZE];
523 # define ss_family ss_sa.sa_family
524 #endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
527 /* Define it to something that should never appear */
528 #define AF_INET6 AF_MAX
531 #ifndef HAVE_GETADDRINFO
532 #define getaddrinfo sasl_getaddrinfo
533 #define freeaddrinfo sasl_freeaddrinfo
534 #define gai_strerror sasl_gai_strerror
537 #ifndef HAVE_GETNAMEINFO
538 #define getnameinfo sasl_getnameinfo
541 #if !defined(HAVE_GETNAMEINFO) || !defined(HAVE_GETADDRINFO)
545 #ifndef AI_NUMERICHOST /* support glibc 2.0.x */
546 #define AI_NUMERICHOST 4
547 #define NI_NUMERICHOST 2
548 #define NI_NAMEREQD 4
549 #define NI_NUMERICSERV 8
552 /* Defined in RFC 1035. max strlen is only 253 due to length bytes. */
553 #ifndef MAXHOSTNAMELEN
554 #define MAXHOSTNAMELEN 255
557 #ifndef HAVE_SYSEXITS_H
560 #include "sysexits.h"
563 /* Get the correct time.h */
564 #if TIME_WITH_SYS_TIME
565 # include <sys/time.h>
569 # include <sys/time.h>
575 #ifndef HIER_DELIMITER
576 #define HIER_DELIMITER '/'
579 #endif /* CONFIG_H */