1 /* include/portable.h.in. Generated automatically from configure.in by autoheader. */
3 Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
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.
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.
15 This work also contains materials derived from public sources.
19 Portions Copyright (c) 1992-1996 Regents of the University of Michigan.
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.
31 #ifndef _LDAP_PORTABLE_H
32 #define _LDAP_PORTABLE_H
34 /* win32 specific stuff */
35 #define strcasecmp stricmp
36 #define strncasecmp strnicmp
37 #define strdup _strdup
41 /* define type for caddr_t */
42 typedef char * caddr_t;
44 /* we have winsock2 */
45 #define HAVE_WINSOCK2 1
50 /* Define if on AIX 3.
51 System headers sometimes define this.
52 We just want to avoid a redefinition error message. */
57 /* Define to empty if the keyword does not work. */
60 /* Define to the type of elements in the array set by `getgroups'.
61 Usually this is either `int' or `gid_t'. */
64 /* Define to `int' if <sys/types.h> doesn't define. */
67 /* Define if you don't have vprintf but do have _doprnt. */
70 /* Define if your struct stat has st_blksize. */
71 #undef HAVE_ST_BLKSIZE
73 /* Define if you have the strftime function. */
74 #define HAVE_STRFTIME 1
76 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
77 #undef HAVE_SYS_WAIT_H
79 /* Define if you have the vprintf function. */
80 #define HAVE_VPRINTF 1
82 /* Define if you have the wait3 system call. */
85 /* Define if on MINIX. */
88 /* Define to `int' if <sys/types.h> doesn't define. */
91 /* Define to `long' if <sys/types.h> doesn't define. */
94 /* Define to `int' if <sys/types.h> doesn't define. */
97 /* Define if the system does not provide POSIX.1 features except
99 #undef _POSIX_1_SOURCE
101 /* Define if you need to in order for stat and other things to work. */
104 /* Define as the return type of signal handlers (int or void). */
105 #define RETSIGTYPE void
107 /* Define to `unsigned' if <sys/types.h> doesn't define. */
110 /* Define if you have the ANSI C header files. */
111 #define STDC_HEADERS 1
113 /* Define if you can safely include both <sys/time.h> and <time.h>. */
114 #undef TIME_WITH_SYS_TIME
116 /* Define if your <sys/time.h> declares struct tm. */
117 #undef TM_IN_SYS_TIME
119 /* Define to `int' if <sys/types.h> doesn't define. */
122 /* define this if sys_errlist is not defined in stdio.h or errno.h */
123 #undef DECL_SYS_ERRLIST
125 /* define if you have berkeley db */
126 #undef HAVE_BERKELEY_DB
128 /* define if you have berkeley db2 */
129 #undef HAVE_BERKELEY_DB2
131 /* define if you have crypt */
134 /* define if you have DCE */
137 /* define if you have GDBM */
140 /* define if you have Kerberos */
143 /* define if you have LinuxThreads */
144 #undef HAVE_LINUX_THREADS
146 /* define if you have Sun LWP (SunOS style) */
149 /* define if you have Sun LWP (Solaris style) */
152 /* define if you have -lncurses */
155 /* define if you have NDBM */
158 /* define if you have Mach CThreads */
159 #undef HAVE_MACH_CTHREADS
161 /* define if you have a preemptive POSIX Threads implementation */
162 #undef HAVE_PREEMPTIVE_PTHREADS
164 /* define if you have POSIX Threads */
167 /* define if your POSIX Threads implementatin is circa Draft 4 */
168 #undef HAVE_PTHREADS_D4
170 /* define if you have -lwrap */
173 /* define if you have -ltermcap */
176 /* define this for connectionless LDAP support */
177 #define LDAP_CONNECTIONLESS
179 /* define this to add debugging code */
182 /* define this for LDAP DNS support */
185 /* define this to remove -lldap cache support */
188 /* define this for LDAP referrals support */
189 #define LDAP_REFERRALS
191 /* define this for LDAP User Interface support */
194 /* define this to use DBBTREE w/ LDBM backend */
195 #undef LDBM_USE_DBBTREE
197 /* define this to use DBHASH w/ LDBM backend */
198 #undef LDBM_USE_DBHASH
200 /* define this if you want no termcap support */
203 /* define this if you want no thread support */
206 /* define this for ACL Group support */
207 #define SLAPD_ACLGROUPS
209 /* define this for crypt(3) password support */
212 /* define this to use SLAPD LDBM backend */
215 /* define this for MD5 password support */
218 /* define this to use SLAPD passwd backend */
221 /* define this for phonetic support */
222 #undef SLAPD_PHONETIC
224 /* define this for Reverse Lookup support */
225 #define SLAPD_RLOOKUPS 1
227 /* define this for SHA1 password support */
230 /* define this to use SLAPD shell backend */
233 /* define this if the thread package is preemptive */
234 #undef THREAD_PREEMPTIVE
236 /* Define if you have the bcopy function. */
239 /* Define if you have the flock function. */
242 /* Define if you have the getdtablesize function. */
243 #undef HAVE_GETDTABLESIZE
245 /* Define if you have the gethostname function. */
246 #define HAVE_GETHOSTNAME 1
248 /* Define if you have the gettimeofday function. */
249 #undef HAVE_GETTIMEOFDAY
251 /* Define if you have the lockf function. */
254 /* Define if you have the memcpy function. */
255 #define HAVE_MEMCPY 1
257 /* Define if you have the memmove function. */
258 #define HAVE_MEMMOVE 1
260 /* Define if you have the mktime function. */
261 #define HAVE_MKTIME 1
263 /* Define if you have the pthread_kill function. */
264 #undef HAVE_PTHREAD_KILL
266 /* Define if you have the pthread_yield function. */
267 #undef HAVE_PTHREAD_YIELD
269 /* Define if you have the sched_yield function. */
270 #undef HAVE_SCHED_YIELD
272 /* Define if you have the select function. */
273 #define HAVE_SELECT 1
275 /* Define if you have the setpwfile function. */
276 #undef HAVE_SETPWFILE
278 /* Define if you have the setsid function. */
281 /* Define if you have the signal function. */
282 #define HAVE_SIGNAL 1
284 /* Define if you have the sigset function. */
287 /* Define if you have the socket function. */
290 /* Define if you have the strdup function. */
291 #define HAVE_STRDUP 1
293 /* Define if you have the strerror function. */
294 #define HAVE_STRERROR 1
296 /* Define if you have the strrchr function. */
297 #define HAVE_STRRCHR 1
299 /* Define if you have the strsep function. */
302 /* Define if you have the strstr function. */
303 #define HAVE_STRSTR 1
305 /* Define if you have the strtod function. */
306 #define HAVE_STRTOD 1
308 /* Define if you have the strtol function. */
309 #define HAVE_STRTOL 1
311 /* Define if you have the strtoul function. */
312 #define HAVE_STRTOUL 1
314 /* Define if you have the sysconf function. */
317 /* Define if you have the <db.h> header file. */
320 /* Define if you have the <db_185.h> header file. */
323 /* Define if you have the <des.h> header file. */
326 /* Define if you have the <dirent.h> header file. */
329 /* Define if you have the <errno.h> header file. */
330 #define HAVE_ERRNO_H 1
332 /* Define if you have the <fcntl.h> header file. */
333 #define HAVE_FCNTL_H 1
335 /* Define if you have the <filio.h> header file. */
338 /* Define if you have the <gdbm.h> header file. */
341 /* Define if you have the <kerberosIV/des.h> header file. */
342 #undef HAVE_KERBEROSIV_DES_H
344 /* Define if you have the <kerberosIV/krb.h> header file. */
345 #undef HAVE_KERBEROSIV_KRB_H
347 /* Define if you have the <krb.h> header file. */
350 /* Define if you have the <limits.h> header file. */
351 #define HAVE_LIMITS_H 1
353 /* Define if you have the <lwp/lwp.h> header file. */
354 #undef HAVE_LWP_LWP_H
356 /* Define if you have the <mach/cthreads.h> header file. */
357 #undef HAVE_MACH_CTHREADS_H
359 /* Define if you have the <malloc.h> header file. */
360 #define HAVE_MALLOC_H 1
362 /* Define if you have the <ncurses.h> header file. */
363 #undef HAVE_NCURSES_H
365 /* Define if you have the <ndbm.h> header file. */
368 /* Define if you have the <ndir.h> header file. */
371 /* Define if you have the <pthread.h> header file. */
372 #undef HAVE_PTHREAD_H
374 /* Define if you have the <regex.h> header file. */
377 /* Define if you have the <sched.h> header file. */
380 /* Define if you have the <sgtty.h> header file. */
383 /* Define if you have the <stddef.h> header file. */
384 #define HAVE_STDDEF_H 1
386 /* Define if you have the <synch.h> header file. */
389 /* Define if you have the <sys/dir.h> header file. */
390 #undef HAVE_SYS_DIR_H
392 /* Define if you have the <sys/errno.h> header file. */
393 #undef HAVE_SYS_ERRNO_H
395 /* Define if you have the <sys/file.h> header file. */
396 #undef HAVE_SYS_FILE_H
398 /* Define if you have the <sys/ioctl.h> header file. */
399 #undef HAVE_SYS_IOCTL_H
401 /* Define if you have the <sys/ndir.h> header file. */
402 #undef HAVE_SYS_NDIR_H
404 /* Define if you have the <sys/param.h> header file. */
405 #undef HAVE_SYS_PARAM_H
407 /* Define if you have the <sys/socket.h> header file. */
408 #define HAVE_SYS_SOCKET_H 1
410 /* Define if you have the <sys/time.h> header file. */
411 #undef HAVE_SYS_TIME_H
413 /* Define if you have the <sys/types.h> header file. */
414 #define HAVE_SYS_TYPES_H 1
416 /* Define if you have the <syslog.h> header file. */
419 /* Define if you have the <termcap.h> header file. */
420 #undef HAVE_TERMCAP_H
422 /* Define if you have the <termios.h> header file. */
423 #undef HAVE_TERMIOS_H
425 /* Define if you have the <thread.h> header file. */
428 /* Define if you have the <unistd.h> header file. */
431 /* Define if you have the V3 library (-lV3). */
434 /* Define if you have the gen library (-lgen). */
437 /* Define if you have the inet library (-linet). */
440 /* Define if you have the net library (-lnet). */
443 /* Define if you have the nsl library (-lnsl). */
446 /* Define if you have the nsl_s library (-lnsl_s). */
449 /* Define if you have the socket library (-lsocket). */
450 #undef HAVE_LIBSOCKET
456 #include "ldap_cdefs.h"
458 #endif /* _LDAP_PORTABLE_H */