use draft-josefsson-gss-capsulate-01 if present
[cyrus-sasl.git] / config.h.in
1 /* config.h.in.  Generated from configure.in by autoheader.  */
2
3
4 /* acconfig.h - autoheader configuration input */
5 /* 
6  * Copyright (c) 1998-2003 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 /* Runtime config file location */
50 #undef CONFIGDIR
51
52 /* Do we need a leading _ for dlsym? */
53 #undef DLSYM_NEEDS_UNDERSCORE
54
55 /* Should we build a shared plugin (via dlopen) library? */
56 #undef DO_DLOPEN
57
58 /* should we support sasl_checkapop? */
59 #undef DO_SASL_CHECKAPOP
60
61 /* should we support setpass() for SRP? */
62 #undef DO_SRP_SETPASS
63
64 /* should we mutex-wrap calls into the GSS library? */
65 #undef GSS_USE_MUTEXES
66
67 /* Enable 'alwaystrue' password verifier? */
68 #undef HAVE_ALWAYSTRUE
69
70 /* Include support for Courier's authdaemond? */
71 #undef HAVE_AUTHDAEMON
72
73 /* Define to 1 if you have the <des.h> header file. */
74 #undef HAVE_DES_H
75
76 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
77    */
78 #undef HAVE_DIRENT_H
79
80 /* Define to 1 if you have the <dlfcn.h> header file. */
81 #undef HAVE_DLFCN_H
82
83 /* Define to 1 if you have the `dns_lookup' function. */
84 #undef HAVE_DNS_LOOKUP
85
86 /* Define to 1 if you have the `dn_expand' function. */
87 #undef HAVE_DN_EXPAND
88
89 /* Define to 1 if you have the <fcntl.h> header file. */
90 #undef HAVE_FCNTL_H
91
92 /* Do we have a getaddrinfo? */
93 #undef HAVE_GETADDRINFO
94
95 /* Define to 1 if you have the `getdomainname' function. */
96 #undef HAVE_GETDOMAINNAME
97
98 /* Define to 1 if you have the `gethostname' function. */
99 #undef HAVE_GETHOSTNAME
100
101 /* Do we have a getnameinfo() function? */
102 #undef HAVE_GETNAMEINFO
103
104 /* Define to 1 if you have the `getpwnam' function. */
105 #undef HAVE_GETPWNAM
106
107 /* Define to 1 if you have the `getspnam' function. */
108 #undef HAVE_GETSPNAM
109
110 /* do we have getsubopt()? */
111 #undef HAVE_GETSUBOPT
112
113 /* Define to 1 if you have the `gettimeofday' function. */
114 #undef HAVE_GETTIMEOFDAY
115
116 /* Define to 1 if you have the <gssapi/gssapi_ext.h> header file. */
117 #undef HAVE_GSSAPI_GSSAPI_EXT_H
118
119 /* Define if you have the gssapi.h header file */
120 #undef HAVE_GSSAPI_H
121
122 /* Define to 1 if you have the `gsskrb5_register_acceptor_identity' function.
123    */
124 #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
125
126 /* Define if your GSSAPI implimentation defines GSS_C_NT_HOSTBASED_SERVICE */
127 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
128
129 /* Define if your GSSAPI implimentation defines GSS_C_NT_USER_NAME */
130 #undef HAVE_GSS_C_NT_USER_NAME
131
132 /* Define to 1 if you have the `gss_decapsulate_token' function. */
133 #undef HAVE_GSS_DECAPSULATE_TOKEN
134
135 /* Define to 1 if you have the `gss_encapsulate_token' function. */
136 #undef HAVE_GSS_ENCAPSULATE_TOKEN
137
138 /* Define to 1 if you have the `gss_oid_equal' function. */
139 #undef HAVE_GSS_OID_EQUAL
140
141 /* Define to 1 if you have the `inet_aton' function. */
142 #undef HAVE_INET_ATON
143
144 /* Define to 1 if you have the <inttypes.h> header file. */
145 #undef HAVE_INTTYPES_H
146
147 /* Define to 1 if you have the `jrand48' function. */
148 #undef HAVE_JRAND48
149
150 /* Do we have Kerberos 4 Support? */
151 #undef HAVE_KRB
152
153 /* Define to 1 if you have the `krb_get_err_text' function. */
154 #undef HAVE_KRB_GET_ERR_TEXT
155
156 /* Define to 1 if you have the <lber.h> header file. */
157 #undef HAVE_LBER_H
158
159 /* Define to 1 if you have the <ldap.h> header file. */
160 #undef HAVE_LDAP_H
161
162 /* Define to 1 if you have the `resolv' library (-lresolv). */
163 #undef HAVE_LIBRESOLV
164
165 /* Define to 1 if you have the <limits.h> header file. */
166 #undef HAVE_LIMITS_H
167
168 /* Define to 1 if you have the <malloc.h> header file. */
169 #undef HAVE_MALLOC_H
170
171 /* Define to 1 if you have the `memcpy' function. */
172 #undef HAVE_MEMCPY
173
174 /* Define to 1 if you have the <memory.h> header file. */
175 #undef HAVE_MEMORY_H
176
177 /* Define to 1 if you have the `mkdir' function. */
178 #undef HAVE_MKDIR
179
180 /* Do we have mysql support? */
181 #undef HAVE_MYSQL
182
183 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
184 #undef HAVE_NDIR_H
185
186 /* Do we have OpenSSL? */
187 #undef HAVE_OPENSSL
188
189 /* Use OPIE for server-side OTP? */
190 #undef HAVE_OPIE
191
192 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
193 #undef HAVE_PAM_PAM_APPL_H
194
195 /* Define to 1 if you have the <paths.h> header file. */
196 #undef HAVE_PATHS_H
197
198 /* Do we have Postgres support? */
199 #undef HAVE_PGSQL
200
201 /* Include Support for pwcheck daemon? */
202 #undef HAVE_PWCHECK
203
204 /* Include support for saslauthd? */
205 #undef HAVE_SASLAUTHD
206
207 /* Define to 1 if you have the <security/pam_appl.h> header file. */
208 #undef HAVE_SECURITY_PAM_APPL_H
209
210 /* Define to 1 if you have the `select' function. */
211 #undef HAVE_SELECT
212
213 /* Does the system have snprintf()? */
214 #undef HAVE_SNPRINTF
215
216 /* Does sockaddr have an sa_len? */
217 #undef HAVE_SOCKADDR_SA_LEN
218
219 /* Define to 1 if you have the `socket' function. */
220 #undef HAVE_SOCKET
221
222 /* Do we have a socklen_t? */
223 #undef HAVE_SOCKLEN_T
224
225 /* Do we have SQLite support? */
226 #undef HAVE_SQLITE
227
228 /* Is there an ss_family in sockaddr_storage? */
229 #undef HAVE_SS_FAMILY
230
231 /* Define to 1 if you have the <stdarg.h> header file. */
232 #undef HAVE_STDARG_H
233
234 /* Define to 1 if you have the <stdint.h> header file. */
235 #undef HAVE_STDINT_H
236
237 /* Define to 1 if you have the <stdlib.h> header file. */
238 #undef HAVE_STDLIB_H
239
240 /* Define to 1 if you have the `strchr' function. */
241 #undef HAVE_STRCHR
242
243 /* Define to 1 if you have the `strdup' function. */
244 #undef HAVE_STRDUP
245
246 /* Define to 1 if you have the `strerror' function. */
247 #undef HAVE_STRERROR
248
249 /* Define to 1 if you have the <strings.h> header file. */
250 #undef HAVE_STRINGS_H
251
252 /* Define to 1 if you have the <string.h> header file. */
253 #undef HAVE_STRING_H
254
255 /* Define to 1 if you have the `strspn' function. */
256 #undef HAVE_STRSPN
257
258 /* Define to 1 if you have the `strstr' function. */
259 #undef HAVE_STRSTR
260
261 /* Define to 1 if you have the `strtol' function. */
262 #undef HAVE_STRTOL
263
264 /* Do we have struct sockaddr_stroage? */
265 #undef HAVE_STRUCT_SOCKADDR_STORAGE
266
267 /* Define to 1 if you have the <sysexits.h> header file. */
268 #undef HAVE_SYSEXITS_H
269
270 /* Define to 1 if you have the `syslog' function. */
271 #undef HAVE_SYSLOG
272
273 /* Define to 1 if you have the <syslog.h> header file. */
274 #undef HAVE_SYSLOG_H
275
276 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
277    */
278 #undef HAVE_SYS_DIR_H
279
280 /* Define to 1 if you have the <sys/file.h> header file. */
281 #undef HAVE_SYS_FILE_H
282
283 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
284    */
285 #undef HAVE_SYS_NDIR_H
286
287 /* Define to 1 if you have the <sys/param.h> header file. */
288 #undef HAVE_SYS_PARAM_H
289
290 /* Define to 1 if you have the <sys/stat.h> header file. */
291 #undef HAVE_SYS_STAT_H
292
293 /* Define to 1 if you have the <sys/time.h> header file. */
294 #undef HAVE_SYS_TIME_H
295
296 /* Define to 1 if you have the <sys/types.h> header file. */
297 #undef HAVE_SYS_TYPES_H
298
299 /* Define to 1 if you have the <sys/uio.h> header file. */
300 #undef HAVE_SYS_UIO_H
301
302 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
303 #undef HAVE_SYS_WAIT_H
304
305 /* Define to 1 if you have the <unistd.h> header file. */
306 #undef HAVE_UNISTD_H
307
308 /* Define to 1 if you have the <varargs.h> header file. */
309 #undef HAVE_VARARGS_H
310
311 /* Does the system have vsnprintf()? */
312 #undef HAVE_VSNPRINTF
313
314 /* define if your compiler has __attribute__ */
315 #undef HAVE___ATTRIBUTE__
316
317 /* Should we keep handle to Berkeley DB open in SASLDB plugin? */
318 #undef KEEP_DB_OPEN
319
320 /* Ignore IP Address in Kerberos 4 tickets? */
321 #undef KRB4_IGNORE_IP_ADDRESS
322
323 /* Define to the sub-directory in which libtool stores uninstalled libraries.
324    */
325 #undef LT_OBJDIR
326
327 /* Name of package */
328 #undef PACKAGE
329
330 /* Define to the address where bug reports for this package should be sent. */
331 #undef PACKAGE_BUGREPORT
332
333 /* Define to the full name of this package. */
334 #undef PACKAGE_NAME
335
336 /* Define to the full name and version of this package. */
337 #undef PACKAGE_STRING
338
339 /* Define to the one symbol short name of this package. */
340 #undef PACKAGE_TARNAME
341
342 /* Define to the home page for this package. */
343 #undef PACKAGE_URL
344
345 /* Define to the version of this package. */
346 #undef PACKAGE_VERSION
347
348 /* Where do we look for Courier authdaemond's socket? */
349 #undef PATH_AUTHDAEMON_SOCKET
350
351 /* Where do we look for saslauthd's socket? */
352 #undef PATH_SASLAUTHD_RUNDIR
353
354 /* Runtime plugin location */
355 #undef PLUGINDIR
356
357 /* Force a preferred mechanism */
358 #undef PREFER_MECH
359
360 /* Location of pwcheck socket */
361 #undef PWCHECKDIR
362
363 /* Define as the return type of signal handlers (`int' or `void'). */
364 #undef RETSIGTYPE
365
366 /* Use BerkeleyDB for SASLdb */
367 #undef SASL_BERKELEYDB
368
369 /* Path to default SASLdb database */
370 #undef SASL_DB_PATH
371
372 /* File to use for source of randomness */
373 #undef SASL_DEV_RANDOM
374
375 /* Use GDBM for SASLdb */
376 #undef SASL_GDBM
377
378 /* Use NDBM for SASLdb */
379 #undef SASL_NDBM
380
381 /* The size of `long', as computed by sizeof. */
382 #undef SIZEOF_LONG
383
384 /* Link ANONYMOUS Staticly */
385 #undef STATIC_ANONYMOUS
386
387 /* Link CRAM-MD5 Staticly */
388 #undef STATIC_CRAMMD5
389
390 /* Link DIGEST-MD5 Staticly */
391 #undef STATIC_DIGESTMD5
392
393 /* Link GSSAPI Staticly */
394 #undef STATIC_GSSAPIV2
395
396 /* User KERBEROS_V4 Staticly */
397 #undef STATIC_KERBEROS4
398
399 /* Link ldapdb plugin Staticly */
400 #undef STATIC_LDAPDB
401
402 /* Link LOGIN Staticly */
403 #undef STATIC_LOGIN
404
405 /* Link NTLM Staticly */
406 #undef STATIC_NTLM
407
408 /* Link OTP Staticly */
409 #undef STATIC_OTP
410
411 /* Link PASSDSS Staticly */
412 #undef STATIC_PASSDSS
413
414 /* Link PLAIN Staticly */
415 #undef STATIC_PLAIN
416
417 /* Link SASLdb Staticly */
418 #undef STATIC_SASLDB
419
420 /* Link SQL plugin staticly */
421 #undef STATIC_SQL
422
423 /* Link SRP Staticly */
424 #undef STATIC_SRP
425
426 /* Define to 1 if you have the ANSI C header files. */
427 #undef STDC_HEADERS
428
429 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
430 #undef TIME_WITH_SYS_TIME
431
432 /* Should we try to dlopen() plugins while staticly compiled? */
433 #undef TRY_DLOPEN_WHEN_STATIC
434
435 /* use the doors IPC API for saslauthd? */
436 #undef USE_DOORS
437
438 /* Version number of package */
439 #undef VERSION
440
441 /* Use DES */
442 #undef WITH_DES
443
444 /* Linking against dmalloc? */
445 #undef WITH_DMALLOC
446
447 /* Use internal RC4 implementation? */
448 #undef WITH_RC4
449
450 /* Use OpenSSL DES Implementation */
451 #undef WITH_SSL_DES
452
453 /* Define to empty if `const' does not conform to ANSI C. */
454 #undef const
455
456 /* Define to `__inline__' or `__inline' if that's what the C compiler
457    calls it, or to nothing if 'inline' is not supported under any name.  */
458 #ifndef __cplusplus
459 #undef inline
460 #endif
461
462 /* Define to `int' if <sys/types.h> does not define. */
463 #undef mode_t
464
465 /* Define to `int' if <sys/types.h> does not define. */
466 #undef pid_t
467
468
469
470
471 /* Create a struct iovec if we need one */
472 #if !defined(_WIN32) && !defined(HAVE_SYS_UIO_H)
473 /* (win32 is handled in sasl.h) */
474 struct iovec {
475     char *iov_base;
476     long iov_len;
477 };
478 #else
479 #include <sys/types.h>
480 #include <sys/uio.h>
481 #endif
482
483 /* location of the random number generator */
484 #ifdef DEV_RANDOM
485 #undef DEV_RANDOM
486 #endif
487 #define DEV_RANDOM SASL_DEV_RANDOM
488
489 /* if we've got krb_get_err_txt, we might as well use it;
490    especially since krb_err_txt isn't in some newer distributions
491    (MIT Kerb for Mac 4 being a notable example). If we don't have
492    it, we fall back to the krb_err_txt array */
493 #ifdef HAVE_KRB_GET_ERR_TEXT
494 #define get_krb_err_txt krb_get_err_text
495 #else
496 #define get_krb_err_txt(X) (krb_err_txt[(X)])
497 #endif
498
499 /* Make Solaris happy... */
500 #ifndef __EXTENSIONS__
501 #define __EXTENSIONS__
502 #endif
503
504 /* Make Linux happy... */
505 #ifndef _GNU_SOURCE
506 #define _GNU_SOURCE
507 #endif
508
509 #ifndef HAVE___ATTRIBUTE__
510 /* Can't use attributes... */
511 #define __attribute__(foo)
512 #endif
513
514 #define SASL_PATH_ENV_VAR "SASL_PATH"
515 #define SASL_CONF_PATH_ENV_VAR "SASL_CONF_PATH"
516
517 #include <stdlib.h>
518 #include <sys/types.h>
519 #include <sys/socket.h>
520 #ifndef WIN32
521 # include <netdb.h>
522 # ifdef HAVE_SYS_PARAM_H
523 #  include <sys/param.h>
524 # endif
525 #else /* WIN32 */
526 # include <winsock2.h>
527 #endif /* WIN32 */
528 #include <string.h>
529
530 #include <netinet/in.h>
531
532 #ifndef HAVE_SOCKLEN_T
533 typedef unsigned int socklen_t;
534 #endif /* HAVE_SOCKLEN_T */
535
536 #ifndef HAVE_STRUCT_SOCKADDR_STORAGE
537 #define _SS_MAXSIZE     128     /* Implementation specific max size */
538 #define _SS_PADSIZE     (_SS_MAXSIZE - sizeof (struct sockaddr))
539
540 struct sockaddr_storage {
541         struct  sockaddr ss_sa;
542         char            __ss_pad2[_SS_PADSIZE];
543 };
544 # define ss_family ss_sa.sa_family
545 #endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
546
547 #ifndef AF_INET6
548 /* Define it to something that should never appear */
549 #define AF_INET6        AF_MAX
550 #endif
551
552 #ifndef HAVE_GETADDRINFO
553 #define getaddrinfo     sasl_getaddrinfo
554 #define freeaddrinfo    sasl_freeaddrinfo
555 #define gai_strerror    sasl_gai_strerror
556 #endif
557
558 #ifndef HAVE_GETNAMEINFO
559 #define getnameinfo     sasl_getnameinfo
560 #endif
561
562 #if !defined(HAVE_GETNAMEINFO) || !defined(HAVE_GETADDRINFO)
563 #include "gai.h"
564 #endif
565
566 #ifndef AI_NUMERICHOST   /* support glibc 2.0.x */
567 #define AI_NUMERICHOST  4
568 #define NI_NUMERICHOST  2
569 #define NI_NAMEREQD     4
570 #define NI_NUMERICSERV  8
571 #endif
572
573 /* Defined in RFC 1035. max strlen is only 253 due to length bytes. */
574 #ifndef MAXHOSTNAMELEN
575 #define        MAXHOSTNAMELEN  255
576 #endif
577
578 #ifndef HAVE_SYSEXITS_H
579 #include "exits.h"
580 #else
581 #include "sysexits.h"
582 #endif
583
584 /* Get the correct time.h */
585 #if TIME_WITH_SYS_TIME
586 # include <sys/time.h>
587 # include <time.h>
588 #else
589 # if HAVE_SYS_TIME_H
590 #  include <sys/time.h>
591 # else
592 #  include <time.h>
593 # endif
594 #endif
595
596 #ifndef HIER_DELIMITER
597 #define HIER_DELIMITER '/'
598 #endif
599
600 #endif /* CONFIG_H */
601