1 /* include/ldap_features.h. Generated by configure. */
2 /* $OpenLDAP: pkg/ldap/include/ldap_features.hin,v 1.3.2.3 2008/02/11 23:26:40 kurt Exp $ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2008 The OpenLDAP Foundation.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
12 * A copy of this license is available in file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
21 #ifndef _LDAP_FEATURES_H
22 #define _LDAP_FEATURES_H 1
24 /* OpenLDAP API version macros */
25 #define LDAP_VENDOR_VERSION 20411
26 #define LDAP_VENDOR_VERSION_MAJOR 2
27 #define LDAP_VENDOR_VERSION_MINOR 4
28 #define LDAP_VENDOR_VERSION_PATCH 11
33 ** OpenLDAP reentrancy/thread-safeness should be dynamically
34 ** checked using ldap_get_option().
36 ** The -lldap implementation is not thread-safe.
38 ** The -lldap_r implementation is:
39 ** LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
41 ** LDAP_API_FEATURE_SESSION_THREAD_SAFE
42 ** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
44 ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
45 ** can be used to determine if -lldap_r is available at compile
46 ** time. You must define LDAP_THREAD_SAFE if and only if you
47 ** link with -lldap_r.
49 ** If you fail to define LDAP_THREAD_SAFE when linking with
50 ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
51 ** provided header definations and declarations may be incorrect.
55 /* is -lldap_r available or not */
56 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
58 /* LDAP v2 Referrals */
59 /* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */
61 #endif /* LDAP_FEATURES */