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 to the number of arguments gethostbyaddr_r expects */
49 #undef GETHOSTBYADDR_R_NARGS
51 /* define this to the number of arguments gethostbyname_r expects */
52 #undef GETHOSTBYNAME_R_NARGS
54 /* define this if sys_errlist is not defined in stdio.h or errno.h */
55 #undef DECL_SYS_ERRLIST
57 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
58 #undef GWINSZ_IN_SYS_IOCTL
60 /* define if you have berkeley db */
61 #undef HAVE_BERKELEY_DB
63 /* define if you have berkeley db2 */
64 #undef HAVE_BERKELEY_DB2
66 /* define if you have crypt */
69 /* define if you have DSAP */
72 /* define if you have GDBM */
75 /* define if you have ISODE */
78 /* define if you have Kerberos */
81 /* define if you have LinuxThreads */
82 #undef HAVE_LINUX_THREADS
84 /* define if you have Sun LWP (SunOS style) */
87 /* define if you have -lncurses */
90 /* define if you have NDBM */
93 /* define if you have Mach CThreads */
94 #undef HAVE_MACH_CTHREADS
96 /* define if you have POSIX termios */
97 #undef HAVE_POSIX_TERMIOS
99 /* define if you have PP */
102 /* define if you have POSIX Threads */
105 /* define if your POSIX Threads implementation is circa Final Draft */
106 #undef HAVE_PTHREADS_FINAL
108 /* define if your POSIX Threads implementation is circa Draft 4 */
109 #undef HAVE_PTHREADS_D4
111 /* define if you have ptrdiff_t */
112 #undef HAVE_PTRDIFF_T
114 /* define if you have res_search() */
116 /* see second res_search define */
117 #undef HAVE_RES_SEARCH
120 /* define if you have sched_yield() */
122 /* see second sched_yield define */
123 #undef HAVE_SCHED_YIELD
126 /* define if you have setproctitle() */
127 #undef HAVE_SETPROCTITLE
129 /* define if you have -lwrap */
132 /* define if you have -ltermcap */
135 /* define if you have Sun LWP (Solaris style) */
138 /* define if you have XTPP */
141 /* define this if select() implicitly yields in thread environments */
142 #undef HAVE_YIELDING_SELECT
144 /* define this for connectionless LDAP support */
145 #undef LDAP_CONNECTIONLESS
147 /* define this to add debugging code */
150 /* define this for LDAP DNS support */
153 /* define this to remove -lldap cache support */
156 /* define this for LDAP process title support */
157 #undef LDAP_PROCTITLE
159 /* define this for LDAP User Interface support */
162 /* define this to add syslog code */
165 /* define this to use DB2 in native mode */
168 /* define this to use DB2 in compat185 mode */
169 #undef LDBM_USE_DB2_COMPAT185
171 /* define this to use DBBTREE w/ LDBM backend */
172 #undef LDBM_USE_DBBTREE
174 /* define this to use DBHASH w/ LDBM backend */
175 #undef LDBM_USE_DBHASH
177 /* define this to use GDBM w/ LDBM backend */
180 /* define this to use NDBM w/ LDBM backend */
183 /* define this if you want no termcap support */
186 /* define this if you want no thread support */
189 /* define this for ACL Group support */
190 #undef SLAPD_ACLGROUPS
192 /* define this to use SLAPD Berkeley DB2 backend */
195 /* define this for ClearText password support */
196 #undef SLAPD_CLEARTEXT
198 /* define this for crypt(3) password support */
201 /* define this to use SLAPD LDBM backend */
204 /* define this to use SLAPD passwd backend */
207 /* define this to use SLAPD Perl backend */
210 /* define this for phonetic support */
211 #undef SLAPD_PHONETIC
213 /* define this for Reverse Lookup support */
214 #undef SLAPD_RLOOKUPS
216 /* define this to use SLAPD shell backend */
219 /* define this to use SLAPD TCL backend */
222 /* define this to be empty if your compiler doesn't support volatile */
225 /* define this if sig_atomic_t isn't defined in signal.h */
228 /* These are defined in ldap_features.h */
230 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
231 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
232 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
233 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
237 /* Leave that blank line there!! Autoheader needs it. */
240 /* begin of postamble */
246 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
249 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
253 #include "ldap_cdefs.h"
254 #include "ldap_features.h"
256 #include "ac/assert.h"
258 #endif /* _LDAP_PORTABLE_H */