libetpan - fdik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

607 lines
16 KiB

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