]> git.sur5r.net Git - openldap/blob - include/portable.h.nt
SLDAP compiles, needs LDBM work to link
[openldap] / include / portable.h.nt
1 /* include/portable.h.in.  Generated automatically from configure.in by autoheader.  */
2 /*
3 Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
4 All rights reserved.
5
6 Redistribution and use in source and binary forms are permitted only
7 as authorized by the OpenLDAP Public License.  A copy of this
8 license is available at http://www.OpenLDAP.org/license.html or
9 in file LICENSE in the top-level directory of the distribution.
10
11 This work is derived from the University of Michigan LDAP v3.3
12 distribution.  Information concerning is available at
13     http://www.umich.edu/~dirsvcs/ldap/ldap.html.
14
15 This work also contains materials derived from public sources.
16
17 ---
18
19 Portions Copyright (c) 1992-1996 Regents of the University of Michigan.
20 All rights reserved.
21
22 Redistribution and use in source and binary forms are permitted
23 provided that this notice is preserved and that due credit is given
24 to the University of Michigan at Ann Arbor. The name of the University
25 may not be used to endorse or promote products derived from this 
26 software without specific prior written permission. This software
27 is provided ``as is'' without express or implied warranty.
28  
29 */
30
31 #ifndef _LDAP_PORTABLE_H
32 #define _LDAP_PORTABLE_H
33
34 /* we installed Henry Spencer's REGEX */
35 #define HAVE_REGEX_H 1
36
37 /* win32 specific stuff */
38 #define strcasecmp      stricmp
39 #define strncasecmp     strnicmp
40 #define strdup          _strdup
41
42 /* define type for caddr_t */
43 typedef char * caddr_t;
44
45 /* we have winsock2 */
46 #define HAVE_WINSOCK2 1
47
48 /* we have <io.h> */
49 #define HAVE_IO_H 1
50
51 /* Define if on AIX 3.
52    System headers sometimes define this.
53    We just want to avoid a redefinition error message.  */
54 #ifndef _ALL_SOURCE
55 /* #undef _ALL_SOURCE */
56 #endif
57
58 /* Define to empty if the keyword does not work.  */
59 /* #undef const */
60
61 /* Define to the type of elements in the array set by `getgroups'.
62    Usually this is either `int' or `gid_t'.  */
63 /* #undef GETGROUPS_T */
64
65 /* Define to `int' if <sys/types.h> doesn't define.  */
66 #define gid_t long
67
68 /* Define if you don't have vprintf but do have _doprnt.  */
69 /* #undef HAVE_DOPRNT */
70
71 /* Define if your struct stat has st_blksize.  */
72 /* #undef HAVE_ST_BLKSIZE */
73
74 /* Define if you have the strftime function.  */
75 #define HAVE_STRFTIME 1
76
77 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
78 /* #undef HAVE_SYS_WAIT_H */
79
80 /* Define if you have the vprintf function.  */
81 #define HAVE_VPRINTF 1
82
83 /* Define if you have the wait3 system call.  */
84 /* #undef HAVE_WAIT3 */
85
86 /* Define if on MINIX.  */
87 /* #undef _MINIX */
88
89 /* Define to `int' if <sys/types.h> doesn't define.  */
90 #define mode_t int
91
92 /* Define to `long' if <sys/types.h> doesn't define.  */
93 /* #undef off_t */
94
95 /* Define to `int' if <sys/types.h> doesn't define.  */
96 #define pid_t int
97
98 /* Define if the system does not provide POSIX.1 features except
99    with this defined.  */
100 /* #undef _POSIX_1_SOURCE */
101
102 /* Define if you need to in order for stat and other things to work.  */
103 /* #undef _POSIX_SOURCE */
104
105 /* Define as the return type of signal handlers (int or void).  */
106 #define RETSIGTYPE void
107
108 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
109 /* #undef size_t */
110
111 /* Define if you have the ANSI C header files.  */
112 #define STDC_HEADERS 1
113
114 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
115 /* #undef TIME_WITH_SYS_TIME */
116
117 /* Define if your <sys/time.h> declares struct tm.  */
118 /* #undef TM_IN_SYS_TIME */
119
120 /* Define to `int' if <sys/types.h> doesn't define.  */
121 #define uid_t long
122
123 /* Define if your processor stores words with the most significant
124    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
125 /* #undef WORDS_BIGENDIAN */
126
127 /* define this if sys_errlist is not defined in stdio.h or errno.h */
128 /* #undef DECL_SYS_ERRLIST */
129
130 /* define if you have berkeley db */
131 /* #undef HAVE_BERKELEY_DB */
132
133 /* define if you have berkeley db2 */
134 /* #undef HAVE_BERKELEY_DB2 */
135
136 /* define if you have crypt */
137 /* #undef HAVE_CRYPT */
138
139 /* define if you have DCE */
140 /* #undef HAVE_DCE */
141
142 /* define if you have GDBM */
143 /* #undef HAVE_GDBM */
144
145 /* define if you have Kerberos */
146 /* #undef HAVE_KERBEROS */
147
148 /* define if you have LinuxThreads */
149 /* #undef HAVE_LINUX_THREADS */
150
151 /* define if you have Sun LWP (SunOS style) */
152 /* #undef HAVE_LWP */
153
154 /* define if you have Sun LWP (Solaris style) */
155 /* #undef HAVE_LWP_THR */
156
157 /* define if you have -lncurses */
158 /* #undef HAVE_NCURSES */
159
160 /* define if you have NDBM */
161 /* #undef HAVE_NDBM */
162
163 /* define if you have Mach CThreads */
164 /* #undef HAVE_MACH_CTHREADS */
165
166 /* define if you have a preemptive POSIX Threads implementation */
167 /* #undef HAVE_PREEMPTIVE_PTHREADS */
168
169 /* define if you have POSIX Threads */
170 /* #undef HAVE_PTHREADS */
171
172 /* define if your POSIX Threads implementatin is circa Draft 4 */
173 /* #undef HAVE_PTHREADS_D4 */
174
175 /* define if you have -lwrap */
176 /* #undef HAVE_TCPD */
177
178 /* define if you have -ltermcap */
179 /* #undef HAVE_TERMCAP */
180
181 /* define this for connectionless LDAP support */
182 /* #undef LDAP_CONNECTIONLESS */
183
184 /* define this to add debugging code */
185 #define LDAP_DEBUG 1
186
187 /* define this for LDAP DNS support */
188 /* #undef LDAP_DNS */
189
190 /* define this to remove -lldap cache support */
191 /* #undef LDAP_NOCACHE */
192
193 /* define this for LDAP referrals support */
194 #define LDAP_REFERRALS 1
195
196 /* define this for LDAP User Interface support */
197 #define LDAP_LIBUI 1
198
199 /* define this to use DBBTREE w/ LDBM backend */
200 /* #undef LDBM_USE_DBBTREE */
201
202 /* define this to use DBHASH w/ LDBM backend */
203 /* #undef LDBM_USE_DBHASH */
204
205 /* define this if you want no termcap support */
206 #define NO_TERMCAP 1
207
208 /* define this if you want no thread support */
209 #define NO_THREADS 1
210
211 /* define this for ACL Group support */
212 #define SLAPD_ACLGROUPS
213
214 /* define this for crypt(3) password support */
215 /* #undef SLAPD_CRYPT */
216
217 /* define this to use SLAPD LDBM backend */
218 /* #undef SLAPD_LDBM */
219
220 /* define this for MD5 password support */
221 #define SLAPD_MD5 1
222
223 /* define this to use SLAPD passwd backend */
224 /* #undef SLAPD_PASSWD */
225
226 /* define this for phonetic support */
227 /* #undef SLAPD_PHONETIC */
228
229 /* define this for Reverse Lookup support */
230 #define SLAPD_RLOOKUPS 1
231
232 /* define this for SHA1 password support */
233 #define SLAPD_SHA1 1
234
235 /* define this to use SLAPD shell backend */
236 /* #undef SLAPD_SHELL */
237
238 /* define this if the thread package is preemptive */
239 /* #undef THREAD_PREEMPTIVE */
240
241 /* Define if you have the bcopy function.  */
242 /* #undef HAVE_BCOPY */
243
244 /* Define if you have the flock function.  */
245 /* #undef HAVE_FLOCK */
246
247 /* Define if you have the getdtablesize function.  */
248 /* #undef HAVE_GETDTABLESIZE */
249
250 /* Define if you have the gethostname function.  */
251 #define HAVE_GETHOSTNAME 1
252
253 /* define if you have the getopt function */
254 /* #undef HAVE_GETOPT */
255
256 /* Define if you have the gettimeofday function.  */
257 /* #undef HAVE_GETTIMEOFDAY */
258
259 /* Define if you have the lockf function.  */
260 /* #undef HAVE_LOCKF */
261
262 /* Define if you have the memcpy function.  */
263 #define HAVE_MEMCPY 1
264
265 /* Define if you have the memmove function.  */
266 #define HAVE_MEMMOVE 1
267
268 /* Define if you have the mktime function.  */
269 #define HAVE_MKTIME 1
270
271 /* Define if you have the pthread_kill function.  */
272 /* #undef HAVE_PTHREAD_KILL */
273
274 /* Define if you have the pthread_yield function.  */
275 /* #undef HAVE_PTHREAD_YIELD */
276
277 /* Define if you have the sched_yield function.  */
278 /* #undef HAVE_SCHED_YIELD */
279
280 /* Define if you have the select function.  */
281 #define HAVE_SELECT 1
282
283 /* Define if you have the setpwfile function.  */
284 /* #undef HAVE_SETPWFILE */
285
286 /* Define if you have the setsid function.  */
287 /* #undef HAVE_SETSID */
288
289 /* Define if you have the signal function.  */
290 #define HAVE_SIGNAL 1
291
292 /* Define if you have the sigset function.  */
293 /* #undef HAVE_SIGSET */
294
295 /* Define if you have the socket function.  */
296 #define HAVE_SOCKET 1
297
298 /* Define if you have the strdup function.  */
299 #define HAVE_STRDUP 1
300
301 /* Define if you have the strerror function.  */
302 #define HAVE_STRERROR 1
303
304 /* Define if you have the strrchr function.  */
305 #define HAVE_STRRCHR 1
306
307 /* Define if you have the strsep function.  */
308 /* #undef HAVE_STRSEP */
309
310 /* Define if you have the strstr function.  */
311 #define HAVE_STRSTR 1
312
313 /* Define if you have the strtod function.  */
314 #define HAVE_STRTOD 1
315
316 /* Define if you have the strtol function.  */
317 #define HAVE_STRTOL 1
318
319 /* Define if you have the strtoul function.  */
320 #define HAVE_STRTOUL 1
321
322 /* Define if you have the sysconf function.  */
323 /* #undef HAVE_SYSCONF */
324
325 /* Define if you have the waitpid function.  */
326 #define HAVE_WAITPID 1
327
328 /* Define if you have the <db.h> header file.  */
329 /* #undef HAVE_DB_H */
330
331 /* Define if you have the <db_185.h> header file.  */
332 /* #undef HAVE_DB_185_H */
333
334 /* Define if you have the <des.h> header file.  */
335 /* #undef HAVE_DES_H */
336
337 /* Define if you have the <dirent.h> header file.  */
338 /* #undef HAVE_DIRENT_H */
339
340 /* Define if you have the <errno.h> header file.  */
341 #define HAVE_ERRNO_H 1
342
343 /* Define if you have the <fcntl.h> header file.  */
344 #define HAVE_FCNTL_H 1
345
346 /* Define if you have the <filio.h> header file.  */
347 /* #undef HAVE_FILIO_H */
348
349 /* Define if you have the <gdbm.h> header file.  */
350 /* #undef HAVE_GDBM_H */
351
352 /* Define if you have the <getopt.h> header file.  */
353 /* #undef HAVE_GETOPT_H */
354
355 /* Define if you have the <kerberosIV/des.h> header file.  */
356 /* #undef HAVE_KERBEROSIV_DES_H */
357
358 /* Define if you have the <kerberosIV/krb.h> header file.  */
359 /* #undef HAVE_KERBEROSIV_KRB_H */
360
361 /* Define if you have the <krb.h> header file.  */
362 /* #undef HAVE_KRB_H */
363
364 /* Define if you have the <limits.h> header file.  */
365 #define HAVE_LIMITS_H 1
366
367 /* Define if you have the <lwp/lwp.h> header file.  */
368 /* #undef HAVE_LWP_LWP_H */
369
370 /* Define if you have the <mach/cthreads.h> header file.  */
371 /* #undef HAVE_MACH_CTHREADS_H */
372
373 /* Define if you have the <malloc.h> header file.  */
374 #define HAVE_MALLOC_H 1
375
376 /* Define if you have the <ncurses.h> header file.  */
377 /* #undef HAVE_NCURSES_H */
378
379 /* Define if you have the <ndbm.h> header file.  */
380 /* #undef HAVE_NDBM_H */
381
382 /* Define if you have the <ndir.h> header file.  */
383 /* #undef HAVE_NDIR_H */
384
385 /* Define if you have the <pthread.h> header file.  */
386 /* #undef HAVE_PTHREAD_H */
387
388 /* Define if you have the <regex.h> header file.  */
389 /* #undef HAVE_REGEX_H */
390
391 /* Define if you have the <sched.h> header file.  */
392 /* #undef HAVE_SCHED_H */
393
394 /* Define if you have the <sgtty.h> header file.  */
395 /* #undef HAVE_SGTTY_H */
396
397 /* Define if you have the <stddef.h> header file.  */
398 #define HAVE_STDDEF_H 1
399
400 /* Define if you have the <synch.h> header file.  */
401 /* #undef HAVE_SYNCH_H */
402
403 /* Define if you have the <sys/dir.h> header file.  */
404 /* #undef HAVE_SYS_DIR_H */
405
406 /* Define if you have the <sys/errno.h> header file.  */
407 /* #undef HAVE_SYS_ERRNO_H */
408
409 /* Define if you have the <sys/file.h> header file.  */
410 /* #undef HAVE_SYS_FILE_H */
411
412 /* Define if you have the <sys/ioctl.h> header file.  */
413 /* #undef HAVE_SYS_IOCTL_H */
414
415 /* Define if you have the <sys/ndir.h> header file.  */
416 /* #undef HAVE_SYS_NDIR_H */
417
418 /* Define if you have the <sys/param.h> header file.  */
419 /* #undef HAVE_SYS_PARAM_H */
420
421 /* Define if you have the <sys/socket.h> header file.  */
422 /* #undef HAVE_SYS_SOCKET_H */
423
424 /* Define if you have the <sys/time.h> header file.  */
425 /* #undef HAVE_SYS_TIME_H */
426
427 /* Define if you have the <sys/types.h> header file.  */
428 #define HAVE_SYS_TYPES_H 1
429
430 /* Define if you have the <syslog.h> header file.  */
431 /* #undef HAVE_SYSLOG_H */
432
433 /* Define if you have the <termcap.h> header file.  */
434 /* #undef HAVE_TERMCAP_H */
435
436 /* Define if you have the <termios.h> header file.  */
437 /* #undef HAVE_TERMIOS_H */
438
439 /* Define if you have the <thread.h> header file.  */
440 /* #undef HAVE_THREAD_H */
441
442 /* Define if you have the <unistd.h> header file.  */
443 /* #undef HAVE_UNISTD_H */
444
445 /* Define if you have the V3 library (-lV3).  */
446 /* #undef HAVE_LIBV3 */
447
448 /* Define if you have the gen library (-lgen).  */
449 /* #undef HAVE_LIBGEN */
450
451 /* Define if you have the inet library (-linet).  */
452 /* #undef HAVE_LIBINET */
453
454 /* Define if you have the net library (-lnet).  */
455 /* #undef HAVE_LIBNET */
456
457 /* Define if you have the nsl library (-lnsl).  */
458 /* #undef HAVE_LIBNSL */
459
460 /* Define if you have the nsl_s library (-lnsl_s).  */
461 /* #undef HAVE_LIBNSL_S */
462
463 /* Define if you have the socket library (-lsocket).  */
464 /* #undef HAVE_LIBSOCKET */
465
466 #ifdef HAVE_STDDEF_H
467 #       include <stddef.h>
468 #endif
469
470 #include "ldap_cdefs.h"
471
472 #endif /* _LDAP_PORTABLE_H */