]> git.sur5r.net Git - openldap/blob - acconfig.h
07127f04cb91f92ab8442036306a0249e0917a5e
[openldap] / acconfig.h
1 /*
2  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted only
6  * as authorized by the OpenLDAP Public License.  A copy of this
7  * license is available at http://www.OpenLDAP.org/license.html or
8  * in file LICENSE in the top-level directory of the distribution.
9  */
10
11 #ifndef _LDAP_PORTABLE_H
12 #define _LDAP_PORTABLE_H
13
14 /* end of preamble */
15 @TOP@
16
17 /* define this if needed to get reentrant functions */
18 #ifndef REENTRANT
19 #undef REENTRANT
20 #endif
21 #ifndef _REENTRANT
22 #undef _REENTRANT
23 #endif
24
25 /* define this if needed to get threadsafe functions */
26 #ifndef THREADSAFE
27 #undef THREADSAFE
28 #endif
29 #ifndef _THREADSAFE
30 #undef _THREADSAFE
31 #endif
32 #ifndef THREAD_SAFE
33 #undef THREAD_SAFE
34 #endif
35 #ifndef _THREAD_SAFE
36 #undef _THREAD_SAFE
37 #endif
38
39 #ifndef _SGI_MP_SOURCE
40 #undef _SGI_MP_SOURCE
41 #endif
42
43 /* define this if cross compiling */
44 #undef CROSS_COMPILING
45
46 /* define this if toupper() requires tolower() check */
47 #undef C_UPPER_LOWER
48
49 /* define this to the number of arguments ctime_r() expects */
50 #undef CTIME_R_NARGS
51
52 /* define this to the number of arguments gethostbyaddr_r expects */
53 #undef GETHOSTBYADDR_R_NARGS
54
55 /* define this to the number of arguments gethostbyname_r expects */
56 #undef GETHOSTBYNAME_R_NARGS
57
58 /* define this if sys_errlist is not defined in stdio.h or errno.h */
59 #undef DECL_SYS_ERRLIST
60
61 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
62 #undef GWINSZ_IN_SYS_IOCTL
63
64 /* define if you have berkeley db */
65 #undef HAVE_BERKELEY_DB
66
67 /* define if you have berkeley db2 */
68 #undef HAVE_BERKELEY_DB2
69
70 /* define if you have crypt */
71 #undef HAVE_CRYPT
72
73 /* define if you have DSAP */
74 #undef HAVE_DSAP
75
76 /* define if you have GDBM */
77 #undef HAVE_GDBM
78
79 /* define if you have ISODE */
80 #undef HAVE_ISODE
81
82 /* define if you have Kerberos */
83 #undef HAVE_KERBEROS
84
85 /* define if you have LinuxThreads */
86 #undef HAVE_LINUX_THREADS
87
88 /* define if you have Sun LWP (SunOS style) */
89 #undef HAVE_LWP
90
91 /* define if you have -lncurses */
92 #undef HAVE_NCURSES
93
94 /* define if you have NDBM */
95 #undef HAVE_NDBM
96
97 /* define if you have Mach CThreads */
98 #undef HAVE_MACH_CTHREADS
99
100 /* define if you have POSIX termios */
101 #undef HAVE_POSIX_TERMIOS
102
103 /* define if you have PP */
104 #undef HAVE_PP
105
106 /* define if you have POSIX Threads */
107 #undef HAVE_PTHREADS
108
109 /* define if your POSIX Threads implementation is circa Final Draft */
110 #undef HAVE_PTHREADS_FINAL
111
112 /* define if your POSIX Threads implementation is circa Draft 4 */
113 #undef HAVE_PTHREADS_D4
114
115 /* define if you have ptrdiff_t */
116 #undef HAVE_PTRDIFF_T
117
118 /* define if you have res_search() */
119 #ifdef __notdef__
120 /* see second res_search define */
121 #undef HAVE_RES_SEARCH
122 #endif
123
124 /* define if you have sched_yield() */
125 #ifdef __notdef__
126 /* see second sched_yield define */
127 #undef HAVE_SCHED_YIELD
128 #endif
129
130 /* define if you have setproctitle() */
131 #undef HAVE_SETPROCTITLE
132
133 /* define if you have -lwrap */
134 #undef HAVE_TCPD
135
136 /* define if you have -ltermcap */
137 #undef HAVE_TERMCAP
138
139 /* define if you have Sun LWP (Solaris style) */
140 #undef HAVE_THR
141
142 /* define if you have XTPP */
143 #undef HAVE_XTPP
144
145 /* define this if select() implicitly yields in thread environments */
146 #undef HAVE_YIELDING_SELECT
147
148 /* define this for connectionless LDAP support */
149 #undef LDAP_CONNECTIONLESS
150
151 /* define this to add debugging code */
152 #undef LDAP_DEBUG
153
154 /* define this for LDAP DNS support */
155 #undef LDAP_DNS
156
157 /* define this to remove -lldap cache support */
158 #undef LDAP_NOCACHE
159
160 /* define this for LDAP process title support */
161 #undef LDAP_PROCTITLE
162
163 /* define this for LDAP User Interface support */
164 #undef LDAP_LIBUI
165
166 /* define this to add syslog code */
167 #undef LDAP_SYSLOG
168
169 /* define this to use DB2 in native mode */
170 #undef LDBM_USE_DB2
171
172 /* define this to use DB2 in compat185 mode */
173 #undef LDBM_USE_DB2_COMPAT185
174
175 /* define this to use DBBTREE w/ LDBM backend */
176 #undef LDBM_USE_DBBTREE
177
178 /* define this to use DBHASH w/ LDBM backend */
179 #undef LDBM_USE_DBHASH
180
181 /* define this to use GDBM w/ LDBM backend */
182 #undef LDBM_USE_GDBM
183
184 /* define this to use NDBM w/ LDBM backend */
185 #undef LDBM_USE_NDBM
186
187 /* define this if you want no termcap support */
188 #undef NO_TERMCAP
189
190 /* define this if you want no thread support */
191 #undef NO_THREADS
192
193 /* define this for ACL Group support */
194 #undef SLAPD_ACLGROUPS
195
196 /* define this to use SLAPD Berkeley DB2 backend */
197 #undef SLAPD_BDB2
198
199 /* define this for ClearText password support */
200 #undef SLAPD_CLEARTEXT
201
202 /* define this for crypt(3) password support */
203 #undef SLAPD_CRYPT
204
205 /* define this to use SLAPD LDAP backend */
206 #undef SLAPD_LDAP
207
208 /* define this to use SLAPD LDBM backend */
209 #undef SLAPD_LDBM
210
211 /* define this to use SLAPD Modules */
212 #undef SLAPD_MODULES
213
214 /* define this to use SLAPD passwd backend */
215 #undef SLAPD_PASSWD
216
217 /* define this to use SLAPD Perl backend */
218 #undef SLAPD_PERL
219
220 /* define this for phonetic support */
221 #undef SLAPD_PHONETIC
222
223 /* define this for Reverse Lookup support */
224 #undef SLAPD_RLOOKUPS
225
226 /* define this to use SLAPD shell backend */
227 #undef SLAPD_SHELL
228
229 /* define this to use SLAPD TCL backend */
230 #undef SLAPD_TCL
231
232 /* define this to be empty if your compiler doesn't support volatile */
233 #undef volatile
234
235 /* define this if sig_atomic_t isn't defined in signal.h */
236 #undef sig_atomic_t
237
238 /* These are defined in ldap_features.h */
239 /*
240         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
241         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
242         LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
243         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
244 */
245
246 \f
247 /* Leave that blank line there!!  Autoheader needs it. */
248
249 @BOTTOM@
250 /* begin of postamble */
251
252 #ifdef HAVE_STDDEF_H
253 #       include <stddef.h>
254 #endif
255
256 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
257 #define LDAP_TEST
258 #endif
259 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
260 #define LDAP_DEBUG
261 #endif
262
263 #include "ldap_cdefs.h"
264 #include "ldap_features.h"
265
266 #include "ac/assert.h"
267
268 #endif /* _LDAP_PORTABLE_H */