2 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
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.
11 #ifndef _LDAP_PORTABLE_H
12 #define _LDAP_PORTABLE_H
17 /* define this if needed to get reentrant functions */
25 /* define this if needed to get threadsafe functions */
39 /* define this if cross compiling */
40 #undef CROSS_COMPILING
42 /* define this if toupper() requires tolower() check */
45 /* define this to the number of arguments ctime_r() expects */
48 /* define this if sys_errlist is not defined in stdio.h or errno.h */
49 #undef DECL_SYS_ERRLIST
51 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
52 #undef GWINSZ_IN_SYS_IOCTL
54 /* define if you have berkeley db */
55 #undef HAVE_BERKELEY_DB
57 /* define if you have berkeley db2 */
58 #undef HAVE_BERKELEY_DB2
60 /* define if you have crypt */
63 /* define if you have DSAP */
66 /* define if you have GDBM */
69 /* define if you have ISODE */
72 /* define if you have Kerberos */
75 /* define if you have LinuxThreads */
76 #undef HAVE_LINUX_THREADS
78 /* define if you have Sun LWP (SunOS style) */
81 /* define if you have -lncurses */
84 /* define if you have NDBM */
87 /* define if you have Mach CThreads */
88 #undef HAVE_MACH_CTHREADS
90 /* define if you have POSIX termios */
91 #undef HAVE_POSIX_TERMIOS
93 /* define if you have PP */
96 /* define if you have POSIX Threads */
99 /* define if your POSIX Threads implementation is circa Final Draft */
100 #undef HAVE_PTHREADS_FINAL
102 /* define if your POSIX Threads implementation is circa Draft 4 */
103 #undef HAVE_PTHREADS_D4
105 /* define if you have ptrdiff_t */
106 #undef HAVE_PTRDIFF_T
108 /* define if you have res_search() */
110 /* see second res_search define */
111 #undef HAVE_RES_SEARCH
114 /* define if you have sched_yield() */
116 /* see second sched_yield define */
117 #undef HAVE_SCHED_YIELD
120 /* define if you have setproctitle() */
121 #undef HAVE_SETPROCTITLE
123 /* define if you have -lwrap */
126 /* define if you have -ltermcap */
129 /* define if you have Sun LWP (Solaris style) */
132 /* define if you have XTPP */
135 /* define this if select() implicitly yields in thread environments */
136 #undef HAVE_YIELDING_SELECT
138 /* define this for connectionless LDAP support */
139 #undef LDAP_CONNECTIONLESS
141 /* define this to add debugging code */
144 /* define this for LDAP DNS support */
147 /* define this to remove -lldap cache support */
150 /* define this for LDAP process title support */
151 #undef LDAP_PROCTITLE
153 /* define this for LDAP User Interface support */
156 /* define this to add syslog code */
159 /* define this to use DB2 in native mode */
162 /* define this to use DB2 in compat185 mode */
163 #undef LDBM_USE_DB2_COMPAT185
165 /* define this to use DBBTREE w/ LDBM backend */
166 #undef LDBM_USE_DBBTREE
168 /* define this to use DBHASH w/ LDBM backend */
169 #undef LDBM_USE_DBHASH
171 /* define this to use GDBM w/ LDBM backend */
174 /* define this to use NDBM w/ LDBM backend */
177 /* define this if you want no termcap support */
180 /* define this if you want no thread support */
183 /* define this for ACL Group support */
184 #undef SLAPD_ACLGROUPS
186 /* define this to use SLAPD Berkeley DB2 backend */
189 /* define this for ClearText password support */
190 #undef SLAPD_CLEARTEXT
192 /* define this for crypt(3) password support */
195 /* define this to use SLAPD LDBM backend */
198 /* define this to use SLAPD passwd backend */
201 /* define this to use SLAPD Perl backend */
204 /* define this for phonetic support */
205 #undef SLAPD_PHONETIC
207 /* define this for Reverse Lookup support */
208 #undef SLAPD_RLOOKUPS
210 /* define this to use SLAPD shell backend */
213 /* define this to use SLAPD TCL backend */
216 /* define this to be empty if your compiler doesn't support volatile */
219 /* define this if sig_atomic_t isn't defined in signal.h */
222 /* These are defined in ldap_features.h */
224 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
225 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
226 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
227 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
231 /* Leave that blank line there!! Autoheader needs it. */
234 /* begin of postamble */
240 #include "ldap_cdefs.h"
241 #include "ldap_features.h"
243 #endif /* _LDAP_PORTABLE_H */