mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
autoheader is now working...
This commit is contained in:
parent
13accb8b28
commit
54b633f3a7
5 changed files with 947 additions and 879 deletions
18
configure
vendored
18
configure
vendored
|
|
@ -37154,7 +37154,8 @@ _ACEOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $ol_link_threads != no ; then
|
if test $ol_link_threads != no ; then
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
|
#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
@ -48798,25 +48799,30 @@ if test "$ac_cv_sizeof_int" -lt 4 ; then
|
||||||
{ echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
|
{ echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
|
||||||
echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
|
echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LBER_INT_T long
|
#define LBER_INT_T long
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
else
|
else
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LBER_INT_T int
|
#define LBER_INT_T int
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LBER_LEN_T long
|
#define LBER_LEN_T long
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LBER_SOCKET_T int
|
#define LBER_SOCKET_T int
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LBER_TAG_T long
|
#define LBER_TAG_T long
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
@ -50510,7 +50516,8 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if test "$ol_link_kbind" != no ; then
|
if test "$ol_link_kbind" != no ; then
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
|
#define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
@ -50523,7 +50530,8 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if test "$ol_enable_referrals" != no ; then
|
if test "$ol_enable_referrals" != no ; then
|
||||||
cat >>confdefs.h <<\_ACEOF
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
|
#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
|
||||||
35
configure.in
35
configure.in
|
|
@ -158,22 +158,6 @@ AH_TOP([
|
||||||
#undef _SGI_MP_SOURCE
|
#undef _SGI_MP_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* These are defined in ldap_features.h */
|
|
||||||
/*
|
|
||||||
LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
|
|
||||||
LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
|
||||||
LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
|
|
||||||
LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* These are defined in lber_types.h */
|
|
||||||
/*
|
|
||||||
LBER_INT_T
|
|
||||||
LBER_LEN_T
|
|
||||||
LBER_SOCKET_T
|
|
||||||
LBER_TAG_T
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* end of portable.h.pre */
|
/* end of portable.h.pre */
|
||||||
])
|
])
|
||||||
AH_BOTTOM([
|
AH_BOTTOM([
|
||||||
|
|
@ -1965,7 +1949,8 @@ if test $ol_link_threads = no ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $ol_link_threads != no ; then
|
if test $ol_link_threads != no ; then
|
||||||
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE,1)
|
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE,1,
|
||||||
|
[define to 1 if library is thread safe])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
|
@ -2501,14 +2486,14 @@ AC_COMPILE_CHECK_SIZEOF(wchar_t)
|
||||||
if test "$ac_cv_sizeof_int" -lt 4 ; then
|
if test "$ac_cv_sizeof_int" -lt 4 ; then
|
||||||
AC_MSG_WARN([OpenLDAP requires 'int' to be 32 bits or greater.])
|
AC_MSG_WARN([OpenLDAP requires 'int' to be 32 bits or greater.])
|
||||||
|
|
||||||
AC_DEFINE(LBER_INT_T,long)
|
AC_DEFINE(LBER_INT_T,long,[define to 32-bit or greater integer type])
|
||||||
else
|
else
|
||||||
AC_DEFINE(LBER_INT_T,int)
|
AC_DEFINE(LBER_INT_T,int,[define to 32-bit or greater integer type])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_DEFINE(LBER_LEN_T,long)
|
AC_DEFINE(LBER_LEN_T,long,[define to large integer type])
|
||||||
AC_DEFINE(LBER_SOCKET_T,int)
|
AC_DEFINE(LBER_SOCKET_T,int,[define to socket descriptor type])
|
||||||
AC_DEFINE(LBER_TAG_T,long)
|
AC_DEFINE(LBER_TAG_T,long,[define to large integer type])
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
|
|
@ -2651,14 +2636,16 @@ if test "$ol_enable_syslog" = yes ; then
|
||||||
[define this to add syslog code])
|
[define this to add syslog code])
|
||||||
fi
|
fi
|
||||||
if test "$ol_link_kbind" != no ; then
|
if test "$ol_link_kbind" != no ; then
|
||||||
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND,LDAP_VENDOR_VERSION)
|
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND,LDAP_VENDOR_VERSION,
|
||||||
|
[define to LDAP VENDOR VERSION])
|
||||||
fi
|
fi
|
||||||
if test "$ol_enable_proctitle" != no ; then
|
if test "$ol_enable_proctitle" != no ; then
|
||||||
AC_DEFINE(LDAP_PROCTITLE,1,
|
AC_DEFINE(LDAP_PROCTITLE,1,
|
||||||
[define this for LDAP process title support])
|
[define this for LDAP process title support])
|
||||||
fi
|
fi
|
||||||
if test "$ol_enable_referrals" != no ; then
|
if test "$ol_enable_referrals" != no ; then
|
||||||
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_VENDOR_VERSION)
|
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_VENDOR_VERSION,
|
||||||
|
[define to LDAP VENDOR VERSION])
|
||||||
fi
|
fi
|
||||||
if test "$ol_enable_local" != no; then
|
if test "$ol_enable_local" != no; then
|
||||||
AC_DEFINE(LDAP_PF_LOCAL,1,[define to support PF_LOCAL])
|
AC_DEFINE(LDAP_PF_LOCAL,1,[define to support PF_LOCAL])
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ veryclean-local: clean-local FORCE
|
||||||
|
|
||||||
depend-local: ldap_config.h FORCE
|
depend-local: ldap_config.h FORCE
|
||||||
|
|
||||||
LDAP_CONFIG=$(srcdir)/ldap_config.h.in
|
LDAP_CONFIG=$(srcdir)/ldap_config.hin
|
||||||
|
|
||||||
ldap_config.h: $(LDAP_CONFIG) Makefile
|
ldap_config.h: $(LDAP_CONFIG) Makefile
|
||||||
@$(RM) $@
|
@$(RM) $@
|
||||||
|
|
|
||||||
63
include/ldap_features.hin
Normal file
63
include/ldap_features.hin
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
/* $OpenLDAP$ */
|
||||||
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
||||||
|
*
|
||||||
|
* Copyright 1998-2005 The OpenLDAP Foundation.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted only as authorized by the OpenLDAP
|
||||||
|
* Public License.
|
||||||
|
*
|
||||||
|
* A copy of this license is available in file LICENSE in the
|
||||||
|
* top-level directory of the distribution or, alternatively, at
|
||||||
|
* <http://www.OpenLDAP.org/license.html>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* LDAP Features
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _LDAP_FEATURES_H
|
||||||
|
#define _LDAP_FEATURES_H 1
|
||||||
|
|
||||||
|
/* OpenLDAP API version macros */
|
||||||
|
#undef LDAP_VENDOR_VERSION
|
||||||
|
#undef LDAP_VENDOR_VERSION_MAJOR
|
||||||
|
#undef LDAP_VENDOR_VERSION_MINOR
|
||||||
|
#undef LDAP_VENDOR_VERSION_PATCH
|
||||||
|
|
||||||
|
/*
|
||||||
|
** WORK IN PROGRESS!
|
||||||
|
**
|
||||||
|
** OpenLDAP reentrancy/thread-safeness should be dynamically
|
||||||
|
** checked using ldap_get_option().
|
||||||
|
**
|
||||||
|
** The -lldap implementation is not thread-safe.
|
||||||
|
**
|
||||||
|
** The -lldap_r implementation is:
|
||||||
|
** LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
|
||||||
|
** but also be:
|
||||||
|
** LDAP_API_FEATURE_SESSION_THREAD_SAFE
|
||||||
|
** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
|
||||||
|
**
|
||||||
|
** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
||||||
|
** can be used to determine if -lldap_r is available at compile
|
||||||
|
** time. You must define LDAP_THREAD_SAFE if and only if you
|
||||||
|
** link with -lldap_r.
|
||||||
|
**
|
||||||
|
** If you fail to define LDAP_THREAD_SAFE when linking with
|
||||||
|
** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
|
||||||
|
** provided header definations and declarations may be incorrect.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* is -lldap_r available or not */
|
||||||
|
#undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
||||||
|
|
||||||
|
/* LDAP v2 Kerberos Bind */
|
||||||
|
#undef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
|
||||||
|
|
||||||
|
/* LDAP v2 Referrals */
|
||||||
|
#undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
|
||||||
|
|
||||||
|
#endif /* LDAP_FEATURES */
|
||||||
1708
include/portable.hin
1708
include/portable.hin
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue