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.
13 #ifndef _LDAP_FEATURES_H
14 #define _LDAP_FEATURES_H 1
17 ** OpenLDAP reentrancy/thread-safeness should be dynamically
18 ** checked using ldap_get_option().
20 ** The -lldap implementation may or may not be:
21 ** LDAP_API_FEATURE_THREAD_SAFE
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
27 ** The -lldap_r implementation is always THREAD_SAFE but
29 ** LDAP_API_FEATURE_SESSION_THREAD_SAFE
30 ** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
32 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
33 ** can be used to determine if -lldap_r is availalbe at compile
34 ** time. You must define LDAP_THREAD_SAFE if and only if you
35 ** link with -lldap_r.
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.
43 /* is -lldap reentrant or not */
44 /* #undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT */
46 /* is threadsafe version of -lldap (ie: -lldap_r) *available* or not */
47 /* #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE */
50 /* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_DNS */
52 /* LDAP v2 Referrals */
53 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
55 #endif /* LDAP_FEATURES */