2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 1998-2017 The OpenLDAP Foundation.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
11 * A copy of this license is available in file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
20 #ifndef _LDAP_FEATURES_H
21 #define _LDAP_FEATURES_H 1
23 /* OpenLDAP API version macros */
24 #undef LDAP_VENDOR_VERSION
25 #undef LDAP_VENDOR_VERSION_MAJOR
26 #undef LDAP_VENDOR_VERSION_MINOR
27 #undef LDAP_VENDOR_VERSION_PATCH
32 ** OpenLDAP reentrancy/thread-safeness should be dynamically
33 ** checked using ldap_get_option().
35 ** The -lldap implementation is not thread-safe.
37 ** The -lldap_r implementation is:
38 ** LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
40 ** LDAP_API_FEATURE_SESSION_THREAD_SAFE
41 ** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
43 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
44 ** can be used to determine if -lldap_r is available at compile
45 ** time. You must define LDAP_THREAD_SAFE if and only if you
46 ** link with -lldap_r.
48 ** If you fail to define LDAP_THREAD_SAFE when linking with
49 ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
50 ** provided header definations and declarations may be incorrect.
54 /* is -lldap_r available or not */
55 #undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
57 /* LDAP v2 Referrals */
58 #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
60 #endif /* LDAP_FEATURES */