]> git.sur5r.net Git - openldap/blob - include/ldap_features.h.in
Fix build_result_ber to construct a new ber and to set ld_errno appropriately.
[openldap] / include / ldap_features.h.in
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  * LDAP Features
12  */
13 #ifndef _LDAP_FEATURES_H
14 #define _LDAP_FEATURES_H 1
15
16 /*
17 ** OpenLDAP reentrancy/thread-safeness should be dynamically
18 ** checked using ldap_get_option().
19 **
20 ** The -lldap implementation may or may not be:
21 **              LDAP_API_FEATURE_THREAD_SAFE
22 **
23 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_REENTRANT can
24 ** be used to determine if -lldap is LDAP_API_FEATURE_THREAD_SAFE at
25 ** compile time.
26 **
27 ** The -lldap_r implementation is always THREAD_SAFE but
28 ** may also be:
29 **              LDAP_API_FEATURE_SESSION_THREAD_SAFE
30 **              LDAP_API_FEATURE_OPERATION_THREAD_SAFE
31 **
32 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
33 ** can be used to determine if -lldap_r is available at compile
34 ** time.  You must define LDAP_THREAD_SAFE if and only if you
35 ** link with -lldap_r.
36 **
37 ** If you fail to define LDAP_THREAD_SAFE when linking with
38 ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
39 ** provided header definations and declarations may be incorrect.
40 **
41 */
42
43 /* is -lldap reentrant or not */
44 #undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
45
46 /* is threadsafe version of -lldap (ie: -lldap_r) *available* or not */
47 #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
48
49 /* LDAP v2 DNS */
50 #undef LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
51
52 /* LDAP v2 Referrals */
53 #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
54
55 #endif /* LDAP_FEATURES */