From: Kurt Zeilenga Date: Fri, 12 Aug 2005 06:17:24 +0000 (+0000) Subject: Not sure why autoheader isn't doing its job... X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~578^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13accb8b2858ffd49f9e5da28674815c2014734f;p=openldap Not sure why autoheader isn't doing its job... --- diff --git a/acconfig.h b/acconfig.h deleted file mode 100644 index 865c099294..0000000000 --- a/acconfig.h +++ /dev/null @@ -1,124 +0,0 @@ -/* This work is part of OpenLDAP Software . - * - * 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 the file LICENSE in the - * top-level directory of the distribution or, alternatively, at - * . - */ - -#ifndef _LDAP_PORTABLE_H -#define _LDAP_PORTABLE_H - -/* end of preamble */ - -@TOP@ - -/* define this if needed to get reentrant functions */ -#ifndef REENTRANT -#undef REENTRANT -#endif -#ifndef _REENTRANT -#undef _REENTRANT -#endif - -/* define this if needed to get threadsafe functions */ -#ifndef THREADSAFE -#undef THREADSAFE -#endif -#ifndef _THREADSAFE -#undef _THREADSAFE -#endif -#ifndef THREAD_SAFE -#undef THREAD_SAFE -#endif -#ifndef _THREAD_SAFE -#undef _THREAD_SAFE -#endif - -#ifndef _SGI_MP_SOURCE -#undef _SGI_MP_SOURCE -#endif - -/* define this if TIOCGWINSZ is defined in sys/ioctl.h */ -#undef GWINSZ_IN_SYS_IOCTL - -/* 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 -*/ - -/* define to character address type */ -#undef caddr_t - -/* define to signed size type */ -#undef ssize_t - - -/* Leave that blank line there!! Autoheader needs it. */ - -@BOTTOM@ - -/* begin of postamble */ - -#ifdef _WIN32 - /* don't suck in all of the win32 api */ -# define WIN32_LEAN_AND_MEAN 1 -#endif - -#ifndef LDAP_NEEDS_PROTOTYPES -/* force LDAP_P to always include prototypes */ -#define LDAP_NEEDS_PROTOTYPES 1 -#endif - -#ifndef LDAP_REL_ENG -#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL) -#define LDAP_DEVEL -#endif -#if defined(LDAP_DEVEL) && !defined(LDAP_TEST) -#define LDAP_TEST -#endif -#endif - -#ifdef HAVE_STDDEF_H -# include -#endif - -#ifdef HAVE_EBCDIC -/* ASCII/EBCDIC converting replacements for stdio funcs - * vsnprintf and snprintf are used too, but they are already - * checked by the configure script - */ -#define fputs ber_pvt_fputs -#define fgets ber_pvt_fgets -#define printf ber_pvt_printf -#define fprintf ber_pvt_fprintf -#define vfprintf ber_pvt_vfprintf -#define vsprintf ber_pvt_vsprintf -#endif - -#include "ac/fdset.h" - -#include "ldap_cdefs.h" -#include "ldap_features.h" - -#include "ac/assert.h" -#include "ac/localize.h" - -#endif /* _LDAP_PORTABLE_H */ diff --git a/configure b/configure index 9b7e716b27..5beb3e59b0 100755 --- a/configure +++ b/configure @@ -2137,7 +2137,17 @@ OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE" - ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h" + + + + + + ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin" + + ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin" + + ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin" + echo "$as_me:$LINENO: checking configure arguments" >&5 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6 @@ -5553,7 +5563,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 5556 "configure"' > conftest.$ac_ext + echo '#line 5566 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -7374,7 +7384,7 @@ fi # Provide some information about the compiler. -echo "$as_me:7377:" \ +echo "$as_me:7387:" \ "checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 @@ -8472,11 +8482,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8475: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8485: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8479: \$? = $ac_status" >&5 + echo "$as_me:8489: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8734,11 +8744,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8737: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8747: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8741: \$? = $ac_status" >&5 + echo "$as_me:8751: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8796,11 +8806,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8799: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8809: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8803: \$? = $ac_status" >&5 + echo "$as_me:8813: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -11036,7 +11046,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:13395: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:13389: \$? = $ac_status" >&5 + echo "$as_me:13399: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -13444,11 +13454,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13447: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13457: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:13451: \$? = $ac_status" >&5 + echo "$as_me:13461: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -14813,7 +14823,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:15809: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:15803: \$? = $ac_status" >&5 + echo "$as_me:15813: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -15858,11 +15868,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15861: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15871: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:15865: \$? = $ac_status" >&5 + echo "$as_me:15875: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -17980,11 +17990,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17983: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17993: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:17987: \$? = $ac_status" >&5 + echo "$as_me:17997: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -18242,11 +18252,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18245: $lt_compile\"" >&5) + (eval echo "\"\$as_me:18255: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:18249: \$? = $ac_status" >&5 + echo "$as_me:18259: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -18304,11 +18314,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18307: $lt_compile\"" >&5) + (eval echo "\"\$as_me:18317: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:18311: \$? = $ac_status" >&5 + echo "$as_me:18321: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -20544,7 +20554,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <>confdefs.h <<_ACEOF @@ -47564,7 +47561,6 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then @@ -47673,13 +47669,8 @@ cat >>confdefs.h <<_ACEOF _ACEOF -cat >>confdefs.h <<\_ACEOF -#define HAVE_ST_BLKSIZE 1 -_ACEOF - fi - echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 if test "${ac_cv_header_time+set}" = set; then @@ -51741,9 +51732,9 @@ do "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; - "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;; - "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;; - "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;; + "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;; + "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;; + "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; diff --git a/configure.in b/configure.in index 05c0fcf4fd..179ee6944f 100644 --- a/configure.in +++ b/configure.in @@ -113,7 +113,123 @@ dnl aclocal.m4 should be built using aclocal from automake 1.5 dnl libtool 1.5 should be installed. AC_PREREQ(2.59)dnl Required Autoconf version -AC_CONFIG_HEADER(include/portable.h include/ldap_features.h include/lber_types.h)dnl +AH_TOP([ +/* begin of portable.h.pre */ +/* This work is part of OpenLDAP Software . + * + * 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 the file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . + */ + +#ifndef _LDAP_PORTABLE_H +#define _LDAP_PORTABLE_H + +/* define this if needed to get reentrant functions */ +#ifndef REENTRANT +#undef REENTRANT +#endif +#ifndef _REENTRANT +#undef _REENTRANT +#endif + +/* define this if needed to get threadsafe functions */ +#ifndef THREADSAFE +#undef THREADSAFE +#endif +#ifndef _THREADSAFE +#undef _THREADSAFE +#endif +#ifndef THREAD_SAFE +#undef THREAD_SAFE +#endif +#ifndef _THREAD_SAFE +#undef _THREAD_SAFE +#endif + +#ifndef _SGI_MP_SOURCE +#undef _SGI_MP_SOURCE +#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 */ +]) +AH_BOTTOM([ +/* begin of portable.h.post */ + +#ifdef _WIN32 + /* don't suck in all of the win32 api */ +# define WIN32_LEAN_AND_MEAN 1 +#endif + +#ifndef LDAP_NEEDS_PROTOTYPES +/* force LDAP_P to always include prototypes */ +#define LDAP_NEEDS_PROTOTYPES 1 +#endif + +#ifndef LDAP_REL_ENG +#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL) +#define LDAP_DEVEL +#endif +#if defined(LDAP_DEVEL) && !defined(LDAP_TEST) +#define LDAP_TEST +#endif +#endif + +#ifdef HAVE_STDDEF_H +# include +#endif + +#ifdef HAVE_EBCDIC +/* ASCII/EBCDIC converting replacements for stdio funcs + * vsnprintf and snprintf are used too, but they are already + * checked by the configure script + */ +#define fputs ber_pvt_fputs +#define fgets ber_pvt_fgets +#define printf ber_pvt_printf +#define fprintf ber_pvt_fprintf +#define vfprintf ber_pvt_vfprintf +#define vsprintf ber_pvt_vsprintf +#endif + +#include "ac/fdset.h" + +#include "ldap_cdefs.h" +#include "ldap_features.h" + +#include "ac/assert.h" +#include "ac/localize.h" + +#endif /* _LDAP_PORTABLE_H */ +/* end of portable.h.post */ +]) + +AC_CONFIG_HEADERS([include/portable.h:include/portable.hin]) +AC_CONFIG_HEADERS([include/ldap_features.h:include/ldap_features.hin]) +AC_CONFIG_HEADERS([include/lber_types.h:include/lber_types.hin]) dnl ================================================================ dnl Start Args @@ -661,12 +777,9 @@ dnl AC_ISC_POSIX dnl AC_MINIX dnl ---------------------------------------------------------------- -dnl Checks for system services -AC_CYGWIN -AC_MINGW32 +dnl Checks for file extensions AC_EXEEXT AC_OBJEXT - AC_DEFINE_UNQUOTED(EXEEXT, "${EXEEXT}", [defined to be the EXE extension]) dnl ---------------------------------------------------------------- @@ -2358,7 +2471,7 @@ AC_CHECK_TYPE(ssize_t, [signed int]) AC_CHECK_TYPE(caddr_t, [char *]) OL_TYPE_SOCKLEN_T -AC_STRUCT_ST_BLKSIZE +AC_CHECK_MEMBERS([struct stat.st_blksize]) AC_HEADER_TIME AC_STRUCT_TM AC_TYPE_UID_T diff --git a/include/lber_types.h.in b/include/lber_types.h.in deleted file mode 100644 index 692f02c1a1..0000000000 --- a/include/lber_types.h.in +++ /dev/null @@ -1,62 +0,0 @@ -/* $OpenLDAP$ */ -/* This work is part of OpenLDAP Software . - * - * 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 - * . - */ - -/* - * LBER types - */ - -#ifndef _LBER_TYPES_H -#define _LBER_TYPES_H - -#include - -LDAP_BEGIN_DECL - -/* LBER boolean, enum, integers (32 bits or larger) */ -#undef LBER_INT_T - -/* LBER tags (32 bits or larger) */ -#undef LBER_TAG_T - -/* LBER socket descriptor */ -#undef LBER_SOCKET_T - -/* LBER lengths (32 bits or larger) */ -#undef LBER_LEN_T - -/* ------------------------------------------------------------ */ - -/* booleans, enumerations, and integers */ -typedef LBER_INT_T ber_int_t; - -/* signed and unsigned versions */ -typedef signed LBER_INT_T ber_sint_t; -typedef unsigned LBER_INT_T ber_uint_t; - -/* tags */ -typedef unsigned LBER_TAG_T ber_tag_t; - -/* "socket" descriptors */ -typedef LBER_SOCKET_T ber_socket_t; - -/* lengths */ -typedef unsigned LBER_LEN_T ber_len_t; - -/* signed lengths */ -typedef signed LBER_LEN_T ber_slen_t; - -LDAP_END_DECL - -#endif /* _LBER_TYPES_H */ diff --git a/include/lber_types.hin b/include/lber_types.hin new file mode 100644 index 0000000000..692f02c1a1 --- /dev/null +++ b/include/lber_types.hin @@ -0,0 +1,62 @@ +/* $OpenLDAP$ */ +/* This work is part of OpenLDAP Software . + * + * 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 + * . + */ + +/* + * LBER types + */ + +#ifndef _LBER_TYPES_H +#define _LBER_TYPES_H + +#include + +LDAP_BEGIN_DECL + +/* LBER boolean, enum, integers (32 bits or larger) */ +#undef LBER_INT_T + +/* LBER tags (32 bits or larger) */ +#undef LBER_TAG_T + +/* LBER socket descriptor */ +#undef LBER_SOCKET_T + +/* LBER lengths (32 bits or larger) */ +#undef LBER_LEN_T + +/* ------------------------------------------------------------ */ + +/* booleans, enumerations, and integers */ +typedef LBER_INT_T ber_int_t; + +/* signed and unsigned versions */ +typedef signed LBER_INT_T ber_sint_t; +typedef unsigned LBER_INT_T ber_uint_t; + +/* tags */ +typedef unsigned LBER_TAG_T ber_tag_t; + +/* "socket" descriptors */ +typedef LBER_SOCKET_T ber_socket_t; + +/* lengths */ +typedef unsigned LBER_LEN_T ber_len_t; + +/* signed lengths */ +typedef signed LBER_LEN_T ber_slen_t; + +LDAP_END_DECL + +#endif /* _LBER_TYPES_H */ diff --git a/include/ldap_config.h.in b/include/ldap_config.h.in deleted file mode 100644 index 97ffa05f0e..0000000000 --- a/include/ldap_config.h.in +++ /dev/null @@ -1,70 +0,0 @@ -/* $OpenLDAP$ */ -/* This work is part of OpenLDAP Software . - * - * 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 - * . - */ - -/* - * This file works in confunction with OpenLDAP configure system. - * If you do no like the values below, adjust your configure options. - */ - -#ifndef _LDAP_CONFIG_H -#define _LDAP_CONFIG_H - -/* directory separator */ -#ifndef LDAP_DIRSEP -#ifndef _WIN32 -#define LDAP_DIRSEP "/" -#else -#define LDAP_DIRSEP "\\" -#endif -#endif - -/* directory for temporary files */ -#if defined(_WIN32) -# define LDAP_TMPDIR "C:\\." /* we don't have much of a choice */ -#elif defined( _P_tmpdir ) -# define LDAP_TMPDIR _P_tmpdir -#elif defined( P_tmpdir ) -# define LDAP_TMPDIR P_tmpdir -#elif defined( _PATH_TMPDIR ) -# define LDAP_TMPDIR _PATH_TMPDIR -#else -# define LDAP_TMPDIR LDAP_DIRSEP "tmp" -#endif - -/* directories */ -#ifndef LDAP_BINDIR -#define LDAP_BINDIR "%BINDIR%" -#endif -#ifndef LDAP_SBINDIR -#define LDAP_SBINDIR "%SBINDIR%" -#endif -#ifndef LDAP_DATADIR -#define LDAP_DATADIR "%DATADIR%" -#endif -#ifndef LDAP_SYSCONFDIR -#define LDAP_SYSCONFDIR "%SYSCONFDIR%" -#endif -#ifndef LDAP_LIBEXECDIR -#define LDAP_LIBEXECDIR "%LIBEXECDIR%" -#endif -#ifndef LDAP_RUNDIR -#define LDAP_RUNDIR "%RUNDIR%" -#endif -#ifndef LDAP_LOCALEDIR -#define LDAP_LOCALEDIR "%LOCALEDIR%" -#endif - - -#endif /* _LDAP_CONFIG_H */ diff --git a/include/ldap_config.hin b/include/ldap_config.hin new file mode 100644 index 0000000000..97ffa05f0e --- /dev/null +++ b/include/ldap_config.hin @@ -0,0 +1,70 @@ +/* $OpenLDAP$ */ +/* This work is part of OpenLDAP Software . + * + * 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 + * . + */ + +/* + * This file works in confunction with OpenLDAP configure system. + * If you do no like the values below, adjust your configure options. + */ + +#ifndef _LDAP_CONFIG_H +#define _LDAP_CONFIG_H + +/* directory separator */ +#ifndef LDAP_DIRSEP +#ifndef _WIN32 +#define LDAP_DIRSEP "/" +#else +#define LDAP_DIRSEP "\\" +#endif +#endif + +/* directory for temporary files */ +#if defined(_WIN32) +# define LDAP_TMPDIR "C:\\." /* we don't have much of a choice */ +#elif defined( _P_tmpdir ) +# define LDAP_TMPDIR _P_tmpdir +#elif defined( P_tmpdir ) +# define LDAP_TMPDIR P_tmpdir +#elif defined( _PATH_TMPDIR ) +# define LDAP_TMPDIR _PATH_TMPDIR +#else +# define LDAP_TMPDIR LDAP_DIRSEP "tmp" +#endif + +/* directories */ +#ifndef LDAP_BINDIR +#define LDAP_BINDIR "%BINDIR%" +#endif +#ifndef LDAP_SBINDIR +#define LDAP_SBINDIR "%SBINDIR%" +#endif +#ifndef LDAP_DATADIR +#define LDAP_DATADIR "%DATADIR%" +#endif +#ifndef LDAP_SYSCONFDIR +#define LDAP_SYSCONFDIR "%SYSCONFDIR%" +#endif +#ifndef LDAP_LIBEXECDIR +#define LDAP_LIBEXECDIR "%LIBEXECDIR%" +#endif +#ifndef LDAP_RUNDIR +#define LDAP_RUNDIR "%RUNDIR%" +#endif +#ifndef LDAP_LOCALEDIR +#define LDAP_LOCALEDIR "%LOCALEDIR%" +#endif + + +#endif /* _LDAP_CONFIG_H */ diff --git a/include/ldap_features.h.in b/include/ldap_features.h.in deleted file mode 100644 index fc3e3fc361..0000000000 --- a/include/ldap_features.h.in +++ /dev/null @@ -1,63 +0,0 @@ -/* $OpenLDAP$ */ -/* This work is part of OpenLDAP Software . - * - * 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 - * . - */ - -/* - * 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 */ diff --git a/include/portable.h.in b/include/portable.h.in deleted file mode 100644 index bdcd5b607b..0000000000 --- a/include/portable.h.in +++ /dev/null @@ -1,1135 +0,0 @@ -/* include/portable.h.in. Generated automatically from configure.in by autoheader. */ -/* This work is part of OpenLDAP Software . - * - * 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 the file LICENSE in the - * top-level directory of the distribution or, alternatively, at - * . - */ - -#ifndef _LDAP_PORTABLE_H -#define _LDAP_PORTABLE_H - -/* end of preamble */ - - -/* Define to empty if the keyword does not work. */ -#undef const - -/* Define to `int' if doesn't define. */ -#undef gid_t - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if your struct stat has st_blksize. */ -#undef HAVE_ST_BLKSIZE - -/* Define if you have the strftime function. */ -#undef HAVE_STRFTIME - -/* Define if you have that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define to the type of arg1 for select(). */ -#undef SELECT_TYPE_ARG1 - -/* Define to the type of args 2, 3 and 4 for select(). */ -#undef SELECT_TYPE_ARG234 - -/* Define to the type of arg5 for select(). */ -#undef SELECT_TYPE_ARG5 - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Define if your declares struct tm. */ -#undef TM_IN_SYS_TIME - -/* Define to `int' if doesn't define. */ -#undef uid_t - -/* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* define this if needed to get reentrant functions */ -#ifndef REENTRANT -#undef REENTRANT -#endif -#ifndef _REENTRANT -#undef _REENTRANT -#endif - -/* define this if needed to get threadsafe functions */ -#ifndef THREADSAFE -#undef THREADSAFE -#endif -#ifndef _THREADSAFE -#undef _THREADSAFE -#endif -#ifndef THREAD_SAFE -#undef THREAD_SAFE -#endif -#ifndef _THREAD_SAFE -#undef _THREAD_SAFE -#endif - -#ifndef _SGI_MP_SOURCE -#undef _SGI_MP_SOURCE -#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 -*/ - -/* Define if you have the bcopy function. */ -#undef HAVE_BCOPY - -/* Define if you have the chroot function. */ -#undef HAVE_CHROOT - -/* Define if you have the closesocket function. */ -#undef HAVE_CLOSESOCKET - -/* Define if you have the ctime_r function. */ -#undef HAVE_CTIME_R - -/* Define if you have the endgrent function. */ -#undef HAVE_ENDGRENT - -/* Define if you have the endpwent function. */ -#undef HAVE_ENDPWENT - -/* Define if you have the fcntl function. */ -#undef HAVE_FCNTL - -/* Define if you have the flock function. */ -#undef HAVE_FLOCK - -/* Define if you have the fstat function. */ -#undef HAVE_FSTAT - -/* Define if you have the gai_strerror function. */ -#undef HAVE_GAI_STRERROR - -/* Define if you have the getaddrinfo function. */ -#undef HAVE_GETADDRINFO - -/* Define if you have the getdtablesize function. */ -#undef HAVE_GETDTABLESIZE - -/* Define if you have the getgrgid function. */ -#undef HAVE_GETGRGID - -/* Define if you have the gethostbyaddr_r function. */ -#undef HAVE_GETHOSTBYADDR_R - -/* Define if you have the gethostbyname_r function. */ -#undef HAVE_GETHOSTBYNAME_R - -/* Define if you have the gethostname function. */ -#undef HAVE_GETHOSTNAME - -/* Define if you have the getnameinfo function. */ -#undef HAVE_GETNAMEINFO - -/* Define if you have the getopt function. */ -#undef HAVE_GETOPT - -/* Define if you have the getpass function. */ -#undef HAVE_GETPASS - -/* Define if you have the getpassphrase function. */ -#undef HAVE_GETPASSPHRASE - -/* Define if you have the getpeereid function. */ -#undef HAVE_GETPEEREID - -/* Define if you have the getpwnam function. */ -#undef HAVE_GETPWNAM - -/* Define if you have the getpwuid function. */ -#undef HAVE_GETPWUID - -/* Define if you have the getspnam function. */ -#undef HAVE_GETSPNAM - -/* Define if you have the gettimeofday function. */ -#undef HAVE_GETTIMEOFDAY - -/* Define if you have the hstrerror function. */ -#undef HAVE_HSTRERROR - -/* Define if you have the inet_ntop function. */ -#undef HAVE_INET_NTOP - -/* Define if you have the initgroups function. */ -#undef HAVE_INITGROUPS - -/* Define if you have the lockf function. */ -#undef HAVE_LOCKF - -/* Define if you have the memcpy function. */ -#undef HAVE_MEMCPY - -/* Define if you have the memmove function. */ -#undef HAVE_MEMMOVE - -/* Define if you have the mkstemp function. */ -#undef HAVE_MKSTEMP - -/* Define if you have the mktemp function. */ -#undef HAVE_MKTEMP - -/* Define if you have the pipe function. */ -#undef HAVE_PIPE - -/* Define if you have the poll function. */ -#undef HAVE_POLL - -/* Define if you have the pthread_getconcurrency function. */ -#undef HAVE_PTHREAD_GETCONCURRENCY - -/* Define if you have the pthread_kill function. */ -#undef HAVE_PTHREAD_KILL - -/* Define if you have the pthread_kill_other_threads_np function. */ -#undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP - -/* Define if you have the pthread_rwlock_destroy function. */ -#undef HAVE_PTHREAD_RWLOCK_DESTROY - -/* Define if you have the pthread_setconcurrency function. */ -#undef HAVE_PTHREAD_SETCONCURRENCY - -/* Define if you have the pthread_yield function. */ -#undef HAVE_PTHREAD_YIELD - -/* Define if you have the read function. */ -#undef HAVE_READ - -/* Define if you have the recv function. */ -#undef HAVE_RECV - -/* Define if you have the recvfrom function. */ -#undef HAVE_RECVFROM - -/* Define if you have the sched_yield function. */ -#undef HAVE_SCHED_YIELD - -/* Define if you have the send function. */ -#undef HAVE_SEND - -/* Define if you have the sendmsg function. */ -#undef HAVE_SENDMSG - -/* Define if you have the sendto function. */ -#undef HAVE_SENDTO - -/* Define if you have the setegid function. */ -#undef HAVE_SETEGID - -/* Define if you have the seteuid function. */ -#undef HAVE_SETEUID - -/* Define if you have the setgid function. */ -#undef HAVE_SETGID - -/* Define if you have the setpwfile function. */ -#undef HAVE_SETPWFILE - -/* Define if you have the setsid function. */ -#undef HAVE_SETSID - -/* Define if you have the setuid function. */ -#undef HAVE_SETUID - -/* Define if you have the sigaction function. */ -#undef HAVE_SIGACTION - -/* Define if you have the signal function. */ -#undef HAVE_SIGNAL - -/* Define if you have the sigset function. */ -#undef HAVE_SIGSET - -/* Define if you have the snprintf function. */ -#undef HAVE_SNPRINTF - -/* Define if you have the strdup function. */ -#undef HAVE_STRDUP - -/* Define if you have the strerror function. */ -#undef HAVE_STRERROR - -/* Define if you have the strerror_r function. */ -#undef HAVE_STRERROR_R - -/* Define if you have the strpbrk function. */ -#undef HAVE_STRPBRK - -/* Define if you have the strrchr function. */ -#undef HAVE_STRRCHR - -/* Define if you have the strsep function. */ -#undef HAVE_STRSEP - -/* Define if you have the strspn function. */ -#undef HAVE_STRSPN - -/* Define if you have the strstr function. */ -#undef HAVE_STRSTR - -/* Define if you have the strtol function. */ -#undef HAVE_STRTOL - -/* Define if you have the strtoll function. */ -#undef HAVE_STRTOLL - -/* Define if you have the strtoq function. */ -#undef HAVE_STRTOQ - -/* Define if you have the strtoul function. */ -#undef HAVE_STRTOUL - -/* Define if you have the strtouq function. */ -#undef HAVE_STRTOUQ - -/* Define if you have the sysconf function. */ -#undef HAVE_SYSCONF - -/* Define if you have the thr_getconcurrency function. */ -#undef HAVE_THR_GETCONCURRENCY - -/* Define if you have the thr_setconcurrency function. */ -#undef HAVE_THR_SETCONCURRENCY - -/* Define if you have the thr_yield function. */ -#undef HAVE_THR_YIELD - -/* Define if you have the usleep function. */ -#undef HAVE_USLEEP - -/* Define if you have the vsnprintf function. */ -#undef HAVE_VSNPRINTF - -/* Define if you have the wait4 function. */ -#undef HAVE_WAIT4 - -/* Define if you have the waitpid function. */ -#undef HAVE_WAITPID - -/* Define if you have the write function. */ -#undef HAVE_WRITE - -/* Define if you have the header file. */ -#undef HAVE_ARPA_INET_H - -/* Define if you have the header file. */ -#undef HAVE_ARPA_NAMESER_H - -/* Define if you have the header file. */ -#undef HAVE_ASSERT_H - -/* Define if you have the header file. */ -#undef HAVE_BITS_TYPES_H - -/* Define if you have the header file. */ -#undef HAVE_BN_H - -/* Define if you have the header file. */ -#undef HAVE_CONIO_H - -/* Define if you have the header file. */ -#undef HAVE_CRYPT_H - -/* Define if you have the header file. */ -#undef HAVE_CRYPTO_H - -/* Define if you have the header file. */ -#undef HAVE_CTHREADS_H - -/* Define if you have the header file. */ -#undef HAVE_DB_H - -/* Define if you have the header file. */ -#undef HAVE_DB_185_H - -/* Define if you have the header file. */ -#undef HAVE_DES_H - -/* Define if you have the header file. */ -#undef HAVE_DIRECT_H - -/* Define if you have the header file. */ -#undef HAVE_DIRENT_H - -/* Define if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define if you have the header file. */ -#undef HAVE_ERRNO_H - -/* Define if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define if you have the header file. */ -#undef HAVE_FILIO_H - -/* Define if you have the header file. */ -#undef HAVE_GDBM_H - -/* Define if you have the header file. */ -#undef HAVE_GETOPT_H - -/* Define if you have the header file. */ -#undef HAVE_GMP_H - -/* Define if you have the header file. */ -#undef HAVE_GRP_H - -/* Define if you have the header file. */ -#undef HAVE_HEIM_ERR_H - -/* Define if you have the header file. */ -#undef HAVE_IO_H - -/* Define if you have the header file. */ -#undef HAVE_KERBEROSIV_DES_H - -/* Define if you have the header file. */ -#undef HAVE_KERBEROSIV_KRB_H - -/* Define if you have the header file. */ -#undef HAVE_KRB_ARCHAEOLOGY_H - -/* Define if you have the header file. */ -#undef HAVE_KRB_H - -/* Define if you have the header file. */ -#undef HAVE_KRB5_H - -/* Define if you have the header file. */ -#undef HAVE_LIBUTIL_H - -/* Define if you have the header file. */ -#undef HAVE_LIMITS_H - -/* Define if you have the header file. */ -#undef HAVE_LOCALE_H - -/* Define if you have the header file. */ -#undef HAVE_LTDL_H - -/* Define if you have the header file. */ -#undef HAVE_LWP_LWP_H - -/* Define if you have the header file. */ -#undef HAVE_MACH_CTHREADS_H - -/* Define if you have the header file. */ -#undef HAVE_MALLOC_H - -/* Define if you have the header file. */ -#undef HAVE_MDBM_H - -/* Define if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define if you have the header file. */ -#undef HAVE_NDBM_H - -/* Define if you have the header file. */ -#undef HAVE_NDIR_H - -/* Define if you have the header file. */ -#undef HAVE_NETINET_TCP_H - -/* Define if you have the header file. */ -#undef HAVE_OPENSSL_BN_H - -/* Define if you have the header file. */ -#undef HAVE_OPENSSL_CRYPTO_H - -/* Define if you have the header file. */ -#undef HAVE_OPENSSL_SSL_H - -/* Define if you have the header file. */ -#undef HAVE_POLL_H - -/* Define if you have the header file. */ -#undef HAVE_PROCESS_H - -/* Define if you have the header file. */ -#undef HAVE_PSAP_H - -/* Define if you have the header file. */ -#undef HAVE_PTH_H - -/* Define if you have the header file. */ -#undef HAVE_PTHREAD_H - -/* Define if you have the header file. */ -#undef HAVE_PWD_H - -/* Define if you have the header file. */ -#undef HAVE_REGEX_H - -/* Define if you have the header file. */ -#undef HAVE_RESOLV_H - -/* Define if you have the header file. */ -#undef HAVE_SASL_H - -/* Define if you have the header file. */ -#undef HAVE_SASL_SASL_H - -/* Define if you have the header file. */ -#undef HAVE_SCHED_H - -/* Define if you have the header file. */ -#undef HAVE_SGTTY_H - -/* Define if you have the header file. */ -#undef HAVE_SHADOW_H - -/* Define if you have the header file. */ -#undef HAVE_SLP_H - -/* Define if you have the header file. */ -#undef HAVE_SQL_H - -/* Define if you have the header file. */ -#undef HAVE_SQLEXT_H - -/* Define if you have the header file. */ -#undef HAVE_SSL_H - -/* Define if you have the header file. */ -#undef HAVE_STDDEF_H - -/* Define if you have the header file. */ -#undef HAVE_STRING_H - -/* Define if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define if you have the header file. */ -#undef HAVE_SYNCH_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_DIR_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_EPOLL_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_ERRNO_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_FILE_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_FILIO_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_NDIR_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_RESOURCE_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_SELECT_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_SOCKET_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_SYSLOG_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_UCRED_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_UIO_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_UN_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_UUID_H - -/* Define if you have the header file. */ -#undef HAVE_SYSEXITS_H - -/* Define if you have the header file. */ -#undef HAVE_SYSLOG_H - -/* Define if you have the header file. */ -#undef HAVE_TCPD_H - -/* Define if you have the header file. */ -#undef HAVE_TERMIOS_H - -/* Define if you have the header file. */ -#undef HAVE_THREAD_H - -/* Define if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define if you have the header file. */ -#undef HAVE_UTIME_H - -/* Define if you have the header file. */ -#undef HAVE_WINSOCK_H - -/* Define if you have the header file. */ -#undef HAVE_WINSOCK2_H - -/* Define if you have the V3 library (-lV3). */ -#undef HAVE_LIBV3 - -/* Define if you have the gen library (-lgen). */ -#undef HAVE_LIBGEN - -/* Define if you have the inet library (-linet). */ -#undef HAVE_LIBINET - -/* Define if you have the net library (-lnet). */ -#undef HAVE_LIBNET - -/* Define if you have the nsl library (-lnsl). */ -#undef HAVE_LIBNSL - -/* Define if you have the nsl_s library (-lnsl_s). */ -#undef HAVE_LIBNSL_S - -/* Define if you have the socket library (-lsocket). */ -#undef HAVE_LIBSOCKET - -/* Package */ -#undef OPENLDAP_PACKAGE - -/* Version */ -#undef OPENLDAP_VERSION - -/* Version */ -#undef LDAP_VENDOR_VERSION - -/* Major */ -#undef LDAP_VENDOR_VERSION_MAJOR - -/* Minor */ -#undef LDAP_VENDOR_VERSION_MINOR - -/* Patch */ -#undef LDAP_VENDOR_VERSION_PATCH - -/* define this if you have mkversion */ -#undef HAVE_MKVERSION - -/* defined to be the EXE extension */ -#undef EXEEXT - -/* define if you have AIX security lib */ -#undef HAVE_AIX_SECURITY - -/* define to use both and */ -#undef BOTH_STRINGS_H - -/* define if you have libtool -ltdl */ -#undef HAVE_LIBLTDL - -/* define if system uses EBCDIC instead of ASCII */ -#undef HAVE_EBCDIC - -/* Define if TIOCGWINSZ requires sys/ioctl.h */ -#undef GWINSZ_IN_SYS_IOCTL - -/* define if you have POSIX termios */ -#undef HAVE_POSIX_TERMIOS - -/* define if you have winsock */ -#undef HAVE_WINSOCK - -/* define if you have winsock2 */ -#undef HAVE_WINSOCK2 - -/* define if your system supports epoll */ -#undef HAVE_EPOLL - -/* define if sys_errlist is not declared in stdio.h or errno.h */ -#undef DECL_SYS_ERRLIST - -/* define if you actually have sys_errlist in your libs */ -#undef HAVE_SYS_ERRLIST - -/* define if strerror_r returns char* instead of int */ -#undef HAVE_NONPOSIX_STRERROR_R - -/* define if sys_errlist is not declared in stdio.h or errno.h */ -#undef DECL_SYS_ERRLIST - -/* define if you actually have sys_errlist in your libs */ -#undef HAVE_SYS_ERRLIST - -/* define if you have uuid_to_str() */ -#undef HAVE_UUID_TO_STR - -/* define if you have res_query() */ -#undef HAVE_RES_QUERY - -/* define if you have HEIMDAL Kerberos */ -#undef HAVE_HEIMDAL_KERBEROS - -/* define if you have Kerberos V */ -#undef HAVE_KRB5 - -/* define if you have Kerberos V with IV support */ -#undef HAVE_KRB425 - -/* define if you have Kerberos IV */ -#undef HAVE_KRB4 - -/* define if you have Kerberos des_debug */ -#undef HAVE_DES_DEBUG - -/* define if you have Kerberos IV */ -#undef HAVE_KRB4 - -/* define if you have Kth Kerberos */ -#undef HAVE_KTH_KERBEROS - -/* define if you have Kerberos */ -#undef HAVE_KERBEROS - -/* define if you have SSLeay or OpenSSL */ -#undef HAVE_SSLEAY - -/* define if you have RSAref */ -#undef HAVE_RSAREF - -/* define if you have OpenSSL with CRL checking capability */ -#undef HAVE_OPENSSL_CRL - -/* define if you have TLS */ -#undef HAVE_TLS - -/* define to support LAN Manager passwords */ -#undef SLAPD_LMHASH - -/* if you have NT Threads */ -#undef HAVE_NT_THREADS - -/* if you have NT Service Manager */ -#undef HAVE_NT_SERVICE_MANAGER - -/* if you have NT Event Log */ -#undef HAVE_NT_EVENT_LOG - -/* define to pthreads API spec revision */ -#undef HAVE_PTHREADS - -/* if you have LinuxThreads */ -#undef HAVE_LINUX_THREADS - -/* Define if you have the sched_yield function. */ -#undef HAVE_SCHED_YIELD - -/* define if you have pthread_detach function */ -#undef HAVE_PTHREAD_DETACH - -/* define if you have Mach Cthreads */ -#undef HAVE_MACH_CTHREADS - -/* if you have GNU Pth */ -#undef HAVE_GNU_PTH - -/* if you have Solaris LWP (thr) package */ -#undef HAVE_THR - -/* if you have SunOS LWP package */ -#undef HAVE_LWP - -/* define if select implicitly yields */ -#undef HAVE_YIELDING_SELECT - -/* if you have LinuxThreads */ -#undef HAVE_LINUX_THREADS - -/* define if you have (or want) no threads */ -#undef NO_THREADS - -/* set to the number of arguments ctime_r() expects */ -#undef CTIME_R_NARGS - -/* set to the number of arguments gethostbyname_r() expects */ -#undef GETHOSTBYNAME_R_NARGS - -/* set to the number of arguments gethostbyaddr_r() expects */ -#undef GETHOSTBYADDR_R_NARGS - -/* define if Berkeley DB has DB_THREAD support */ -#undef HAVE_BERKELEY_DB_THREAD - -/* define this if Berkeley DB is available */ -#undef HAVE_BERKELEY_DB - -/* define this to use DBHASH w/ LDBM backend */ -#undef LDBM_USE_DBHASH - -/* define this to use DBBTREE w/ LDBM backend */ -#undef LDBM_USE_DBBTREE - -/* define if MDBM is available */ -#undef HAVE_MDBM - -/* define if GNU DBM is available */ -#undef HAVE_GDBM - -/* define if NDBM is available */ -#undef HAVE_NDBM - -/* define if LDAP libs are dynamic */ -#undef LDAP_LIBS_DYNAMIC - -/* define if you have -lwrap */ -#undef HAVE_TCPD - -/* define if you have Cyrus SASL */ -#undef HAVE_CYRUS_SASL - -/* define if your SASL library has sasl_version() */ -#undef HAVE_SASL_VERSION - -/* set to urandom device */ -#undef URANDOM_DEVICE - -/* define if you actually have FreeBSD fetch(3) */ -#undef HAVE_FETCH - -/* define if crypt(3) is available */ -#undef HAVE_CRYPT - -/* define if setproctitle(3) is available */ -#undef HAVE_SETPROCTITLE - -/* define if you have -lslp */ -#undef HAVE_SLP - -/* define if you have SSLeay or OpenSSL's BIGNUM */ -#undef HAVE_BIGNUM - -/* define if you have -lgmp */ -#undef HAVE_GMP - -/* define if you have 'long long' */ -#undef HAVE_LONG_LONG - -/* Define to `int' if does not define. */ -#undef mode_t - -/* Define to `long' if does not define. */ -#undef off_t - -/* Define to `int' if does not define. */ -#undef pid_t - -/* Define if system has ptrdiff_t type */ -#undef HAVE_PTRDIFF_T - -/* Define to `unsigned' if does not define. */ -#undef size_t - -/* Define to `signed int' if does not define. */ -#undef ssize_t - -/* Define to `char *' if does not define. */ -#undef caddr_t - -/* define to int if socklen_t is not available */ -#undef socklen_t - -/* define to atomic type if sig_atomic_t is not available */ -#undef sig_atomic_t - -/* define if struct passwd has pw_gecos */ -#undef HAVE_PW_GECOS - -/* define if struct passwd has pw_passwd */ -#undef HAVE_PW_PASSWD - -/* define if toupper() requires islower() */ -#undef C_UPPER_LOWER - -/* define as empty if volatile is not supported */ -#undef volatile - -/* define if cross compiling */ -#undef CROSS_COMPILING - -/* The number of bytes in type short */ -#undef SIZEOF_SHORT - -/* The number of bytes in type int */ -#undef SIZEOF_INT - -/* The number of bytes in type long */ -#undef SIZEOF_LONG - -/* The number of bytes in type wchar_t */ -#undef SIZEOF_WCHAR_T - -/* define if memcmp is not 8-bit clean or is otherwise broken */ -#undef NEED_MEMCMP_REPLACEMENT - -/* define to you inet_aton(3) is available */ -#undef HAVE_INET_ATON - -/* if you have spawnlp() */ -#undef HAVE_SPAWNLP - -/* define to snprintf routine */ -#undef snprintf - -/* define to vsnprintf routine */ -#undef vsnprintf - -/* define if struct msghdr has msg_accrights */ -#undef HAVE_MSGHDR_MSG_ACCRIGHTS - -/* define if struct msghdr has msg_control */ -#undef HAVE_MSGHDR_MSG_CONTROL - -/* define to snprintf routine */ -#undef snprintf - -/* define to snprintf routine */ -#undef vsnprintf - -/* define if you have libtool -ltdl */ -#undef HAVE_LIBLTDL - -/* define this to add SLAPI code */ -#undef LDAP_SLAPI - -/* define this to add debugging code */ -#undef LDAP_DEBUG - -/* define this to add syslog code */ -#undef LDAP_SYSLOG - -/* define this for LDAP process title support */ -#undef LDAP_PROCTITLE - -/* define to support PF_LOCAL */ -#undef LDAP_PF_LOCAL - -/* define to support PF_INET6 */ -#undef LDAP_PF_INET6 - -/* define to support cleartext passwords */ -#undef SLAPD_CLEARTEXT - -/* define to support crypt(3) passwords */ -#undef SLAPD_CRYPT - -/* define to support SASL passwords */ -#undef SLAPD_SPASSWD - -/* define to support multimaster replication */ -#undef SLAPD_MULTIMASTER - -/* define to support reverse lookups */ -#undef SLAPD_RLOOKUPS - -/* define to support per-object ACIs */ -#undef SLAPD_ACI_ENABLED - -/* define to support modules */ -#undef SLAPD_MODULES - -/* statically linked module */ -#undef SLAPD_MOD_STATIC - -/* dynamically linked module */ -#undef SLAPD_MOD_DYNAMIC - -/* define to support BDB backend */ -#undef SLAPD_BDB - -/* define to support DNS SRV backend */ -#undef SLAPD_DNSSRV - -/* define to support HDB backend */ -#undef SLAPD_HDB - -/* define to support LDAP backend */ -#undef SLAPD_LDAP - -/* define to support LDBM backend */ -#undef SLAPD_LDBM - -/* define to support LDAP Metadirectory backend */ -#undef SLAPD_META - -/* define to support cn=Monitor backend */ -#undef SLAPD_MONITOR - -/* define to support NULL backend */ -#undef SLAPD_NULL - -/* define to support PASSWD backend */ -#undef SLAPD_PASSWD - -/* define to support PERL backend */ -#undef SLAPD_PERL - -/* define to support relay backend */ -#undef SLAPD_RELAY - -/* define to support SHELL backend */ -#undef SLAPD_SHELL - -/* define to support SQL backend */ -#undef SLAPD_SQL - -/* define for In-Directory Access Logging overlay */ -#undef SLAPD_OVER_ACCESSLOG - -/* define for Dynamic Group overlay */ -#undef SLAPD_OVER_DENYOP - -/* define for Dynamic Group overlay */ -#undef SLAPD_OVER_DYNGROUP - -/* define for Dynamic List overlay */ -#undef SLAPD_OVER_DYNLIST - -/* define for Backend Glue overlay */ -#undef SLAPD_OVER_GLUE - -/* define for Last Modification overlay */ -#undef SLAPD_OVER_LASTMOD - -/* define for Password Policy overlay */ -#undef SLAPD_OVER_PPOLICY - -/* define for Proxy Cache overlay */ -#undef SLAPD_OVER_PROXYCACHE - -/* define for Referential Integrity overlay */ -#undef SLAPD_OVER_REFINT - -/* define for Referential Integrity overlay */ -#undef SLAPD_OVER_RETCODE - -/* define for Rewrite/Remap overlay */ -#undef SLAPD_OVER_RWM - -/* define for Syncrepl Provider overlay */ -#undef SLAPD_OVER_SYNCPROV - -/* define for Translucent Proxy overlay */ -#undef SLAPD_OVER_TRANSLUCENT - -/* define for Attribute Uniqueness overlay */ -#undef SLAPD_OVER_UNIQUE - -/* define to enable rewriting in back-ldap and back-meta */ -#undef ENABLE_REWRITE - -/* define to enable slapi library */ -#undef ENABLE_SLAPI - - -/* begin of postamble */ - -#ifdef _WIN32 - /* don't suck in all of the win32 api */ -# define WIN32_LEAN_AND_MEAN 1 -#endif - -#ifndef LDAP_NEEDS_PROTOTYPES -/* force LDAP_P to always include prototypes */ -#define LDAP_NEEDS_PROTOTYPES 1 -#endif - -#ifndef LDAP_REL_ENG -#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL) -#define LDAP_DEVEL -#endif -#if defined(LDAP_DEVEL) && !defined(LDAP_TEST) -#define LDAP_TEST -#endif -#endif - -#ifdef HAVE_STDDEF_H -# include -#endif - -#ifdef HAVE_EBCDIC -/* ASCII/EBCDIC converting replacements for stdio funcs - * vsnprintf and snprintf are used too, but they are already - * checked by the configure script - */ -#define fputs ber_pvt_fputs -#define fgets ber_pvt_fgets -#define printf ber_pvt_printf -#define fprintf ber_pvt_fprintf -#define vfprintf ber_pvt_vfprintf -#define vsprintf ber_pvt_vsprintf -#endif - -#include "ac/fdset.h" - -#include "ldap_cdefs.h" -#include "ldap_features.h" - -#include "ac/assert.h" -#include "ac/localize.h" - -#endif /* _LDAP_PORTABLE_H */ diff --git a/include/portable.hin b/include/portable.hin new file mode 100644 index 0000000000..bdcd5b607b --- /dev/null +++ b/include/portable.hin @@ -0,0 +1,1135 @@ +/* include/portable.h.in. Generated automatically from configure.in by autoheader. */ +/* This work is part of OpenLDAP Software . + * + * 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 the file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . + */ + +#ifndef _LDAP_PORTABLE_H +#define _LDAP_PORTABLE_H + +/* end of preamble */ + + +/* Define to empty if the keyword does not work. */ +#undef const + +/* Define to `int' if doesn't define. */ +#undef gid_t + +/* Define if you don't have vprintf but do have _doprnt. */ +#undef HAVE_DOPRNT + +/* Define if your struct stat has st_blksize. */ +#undef HAVE_ST_BLKSIZE + +/* Define if you have the strftime function. */ +#undef HAVE_STRFTIME + +/* Define if you have that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H + +/* Define if you have the vprintf function. */ +#undef HAVE_VPRINTF + +/* Define as the return type of signal handlers (int or void). */ +#undef RETSIGTYPE + +/* Define to the type of arg1 for select(). */ +#undef SELECT_TYPE_ARG1 + +/* Define to the type of args 2, 3 and 4 for select(). */ +#undef SELECT_TYPE_ARG234 + +/* Define to the type of arg5 for select(). */ +#undef SELECT_TYPE_ARG5 + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + +/* Define if your declares struct tm. */ +#undef TM_IN_SYS_TIME + +/* Define to `int' if doesn't define. */ +#undef uid_t + +/* Define if your processor stores words with the most significant + byte first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* define this if needed to get reentrant functions */ +#ifndef REENTRANT +#undef REENTRANT +#endif +#ifndef _REENTRANT +#undef _REENTRANT +#endif + +/* define this if needed to get threadsafe functions */ +#ifndef THREADSAFE +#undef THREADSAFE +#endif +#ifndef _THREADSAFE +#undef _THREADSAFE +#endif +#ifndef THREAD_SAFE +#undef THREAD_SAFE +#endif +#ifndef _THREAD_SAFE +#undef _THREAD_SAFE +#endif + +#ifndef _SGI_MP_SOURCE +#undef _SGI_MP_SOURCE +#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 +*/ + +/* Define if you have the bcopy function. */ +#undef HAVE_BCOPY + +/* Define if you have the chroot function. */ +#undef HAVE_CHROOT + +/* Define if you have the closesocket function. */ +#undef HAVE_CLOSESOCKET + +/* Define if you have the ctime_r function. */ +#undef HAVE_CTIME_R + +/* Define if you have the endgrent function. */ +#undef HAVE_ENDGRENT + +/* Define if you have the endpwent function. */ +#undef HAVE_ENDPWENT + +/* Define if you have the fcntl function. */ +#undef HAVE_FCNTL + +/* Define if you have the flock function. */ +#undef HAVE_FLOCK + +/* Define if you have the fstat function. */ +#undef HAVE_FSTAT + +/* Define if you have the gai_strerror function. */ +#undef HAVE_GAI_STRERROR + +/* Define if you have the getaddrinfo function. */ +#undef HAVE_GETADDRINFO + +/* Define if you have the getdtablesize function. */ +#undef HAVE_GETDTABLESIZE + +/* Define if you have the getgrgid function. */ +#undef HAVE_GETGRGID + +/* Define if you have the gethostbyaddr_r function. */ +#undef HAVE_GETHOSTBYADDR_R + +/* Define if you have the gethostbyname_r function. */ +#undef HAVE_GETHOSTBYNAME_R + +/* Define if you have the gethostname function. */ +#undef HAVE_GETHOSTNAME + +/* Define if you have the getnameinfo function. */ +#undef HAVE_GETNAMEINFO + +/* Define if you have the getopt function. */ +#undef HAVE_GETOPT + +/* Define if you have the getpass function. */ +#undef HAVE_GETPASS + +/* Define if you have the getpassphrase function. */ +#undef HAVE_GETPASSPHRASE + +/* Define if you have the getpeereid function. */ +#undef HAVE_GETPEEREID + +/* Define if you have the getpwnam function. */ +#undef HAVE_GETPWNAM + +/* Define if you have the getpwuid function. */ +#undef HAVE_GETPWUID + +/* Define if you have the getspnam function. */ +#undef HAVE_GETSPNAM + +/* Define if you have the gettimeofday function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define if you have the hstrerror function. */ +#undef HAVE_HSTRERROR + +/* Define if you have the inet_ntop function. */ +#undef HAVE_INET_NTOP + +/* Define if you have the initgroups function. */ +#undef HAVE_INITGROUPS + +/* Define if you have the lockf function. */ +#undef HAVE_LOCKF + +/* Define if you have the memcpy function. */ +#undef HAVE_MEMCPY + +/* Define if you have the memmove function. */ +#undef HAVE_MEMMOVE + +/* Define if you have the mkstemp function. */ +#undef HAVE_MKSTEMP + +/* Define if you have the mktemp function. */ +#undef HAVE_MKTEMP + +/* Define if you have the pipe function. */ +#undef HAVE_PIPE + +/* Define if you have the poll function. */ +#undef HAVE_POLL + +/* Define if you have the pthread_getconcurrency function. */ +#undef HAVE_PTHREAD_GETCONCURRENCY + +/* Define if you have the pthread_kill function. */ +#undef HAVE_PTHREAD_KILL + +/* Define if you have the pthread_kill_other_threads_np function. */ +#undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP + +/* Define if you have the pthread_rwlock_destroy function. */ +#undef HAVE_PTHREAD_RWLOCK_DESTROY + +/* Define if you have the pthread_setconcurrency function. */ +#undef HAVE_PTHREAD_SETCONCURRENCY + +/* Define if you have the pthread_yield function. */ +#undef HAVE_PTHREAD_YIELD + +/* Define if you have the read function. */ +#undef HAVE_READ + +/* Define if you have the recv function. */ +#undef HAVE_RECV + +/* Define if you have the recvfrom function. */ +#undef HAVE_RECVFROM + +/* Define if you have the sched_yield function. */ +#undef HAVE_SCHED_YIELD + +/* Define if you have the send function. */ +#undef HAVE_SEND + +/* Define if you have the sendmsg function. */ +#undef HAVE_SENDMSG + +/* Define if you have the sendto function. */ +#undef HAVE_SENDTO + +/* Define if you have the setegid function. */ +#undef HAVE_SETEGID + +/* Define if you have the seteuid function. */ +#undef HAVE_SETEUID + +/* Define if you have the setgid function. */ +#undef HAVE_SETGID + +/* Define if you have the setpwfile function. */ +#undef HAVE_SETPWFILE + +/* Define if you have the setsid function. */ +#undef HAVE_SETSID + +/* Define if you have the setuid function. */ +#undef HAVE_SETUID + +/* Define if you have the sigaction function. */ +#undef HAVE_SIGACTION + +/* Define if you have the signal function. */ +#undef HAVE_SIGNAL + +/* Define if you have the sigset function. */ +#undef HAVE_SIGSET + +/* Define if you have the snprintf function. */ +#undef HAVE_SNPRINTF + +/* Define if you have the strdup function. */ +#undef HAVE_STRDUP + +/* Define if you have the strerror function. */ +#undef HAVE_STRERROR + +/* Define if you have the strerror_r function. */ +#undef HAVE_STRERROR_R + +/* Define if you have the strpbrk function. */ +#undef HAVE_STRPBRK + +/* Define if you have the strrchr function. */ +#undef HAVE_STRRCHR + +/* Define if you have the strsep function. */ +#undef HAVE_STRSEP + +/* Define if you have the strspn function. */ +#undef HAVE_STRSPN + +/* Define if you have the strstr function. */ +#undef HAVE_STRSTR + +/* Define if you have the strtol function. */ +#undef HAVE_STRTOL + +/* Define if you have the strtoll function. */ +#undef HAVE_STRTOLL + +/* Define if you have the strtoq function. */ +#undef HAVE_STRTOQ + +/* Define if you have the strtoul function. */ +#undef HAVE_STRTOUL + +/* Define if you have the strtouq function. */ +#undef HAVE_STRTOUQ + +/* Define if you have the sysconf function. */ +#undef HAVE_SYSCONF + +/* Define if you have the thr_getconcurrency function. */ +#undef HAVE_THR_GETCONCURRENCY + +/* Define if you have the thr_setconcurrency function. */ +#undef HAVE_THR_SETCONCURRENCY + +/* Define if you have the thr_yield function. */ +#undef HAVE_THR_YIELD + +/* Define if you have the usleep function. */ +#undef HAVE_USLEEP + +/* Define if you have the vsnprintf function. */ +#undef HAVE_VSNPRINTF + +/* Define if you have the wait4 function. */ +#undef HAVE_WAIT4 + +/* Define if you have the waitpid function. */ +#undef HAVE_WAITPID + +/* Define if you have the write function. */ +#undef HAVE_WRITE + +/* Define if you have the header file. */ +#undef HAVE_ARPA_INET_H + +/* Define if you have the header file. */ +#undef HAVE_ARPA_NAMESER_H + +/* Define if you have the header file. */ +#undef HAVE_ASSERT_H + +/* Define if you have the header file. */ +#undef HAVE_BITS_TYPES_H + +/* Define if you have the header file. */ +#undef HAVE_BN_H + +/* Define if you have the header file. */ +#undef HAVE_CONIO_H + +/* Define if you have the header file. */ +#undef HAVE_CRYPT_H + +/* Define if you have the header file. */ +#undef HAVE_CRYPTO_H + +/* Define if you have the header file. */ +#undef HAVE_CTHREADS_H + +/* Define if you have the header file. */ +#undef HAVE_DB_H + +/* Define if you have the header file. */ +#undef HAVE_DB_185_H + +/* Define if you have the header file. */ +#undef HAVE_DES_H + +/* Define if you have the header file. */ +#undef HAVE_DIRECT_H + +/* Define if you have the header file. */ +#undef HAVE_DIRENT_H + +/* Define if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define if you have the header file. */ +#undef HAVE_ERRNO_H + +/* Define if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define if you have the header file. */ +#undef HAVE_FILIO_H + +/* Define if you have the header file. */ +#undef HAVE_GDBM_H + +/* Define if you have the header file. */ +#undef HAVE_GETOPT_H + +/* Define if you have the header file. */ +#undef HAVE_GMP_H + +/* Define if you have the header file. */ +#undef HAVE_GRP_H + +/* Define if you have the header file. */ +#undef HAVE_HEIM_ERR_H + +/* Define if you have the header file. */ +#undef HAVE_IO_H + +/* Define if you have the header file. */ +#undef HAVE_KERBEROSIV_DES_H + +/* Define if you have the header file. */ +#undef HAVE_KERBEROSIV_KRB_H + +/* Define if you have the header file. */ +#undef HAVE_KRB_ARCHAEOLOGY_H + +/* Define if you have the header file. */ +#undef HAVE_KRB_H + +/* Define if you have the header file. */ +#undef HAVE_KRB5_H + +/* Define if you have the header file. */ +#undef HAVE_LIBUTIL_H + +/* Define if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define if you have the header file. */ +#undef HAVE_LOCALE_H + +/* Define if you have the header file. */ +#undef HAVE_LTDL_H + +/* Define if you have the header file. */ +#undef HAVE_LWP_LWP_H + +/* Define if you have the header file. */ +#undef HAVE_MACH_CTHREADS_H + +/* Define if you have the header file. */ +#undef HAVE_MALLOC_H + +/* Define if you have the header file. */ +#undef HAVE_MDBM_H + +/* Define if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define if you have the header file. */ +#undef HAVE_NDBM_H + +/* Define if you have the header file. */ +#undef HAVE_NDIR_H + +/* Define if you have the header file. */ +#undef HAVE_NETINET_TCP_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_BN_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_CRYPTO_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_SSL_H + +/* Define if you have the header file. */ +#undef HAVE_POLL_H + +/* Define if you have the header file. */ +#undef HAVE_PROCESS_H + +/* Define if you have the header file. */ +#undef HAVE_PSAP_H + +/* Define if you have the header file. */ +#undef HAVE_PTH_H + +/* Define if you have the header file. */ +#undef HAVE_PTHREAD_H + +/* Define if you have the header file. */ +#undef HAVE_PWD_H + +/* Define if you have the header file. */ +#undef HAVE_REGEX_H + +/* Define if you have the header file. */ +#undef HAVE_RESOLV_H + +/* Define if you have the header file. */ +#undef HAVE_SASL_H + +/* Define if you have the header file. */ +#undef HAVE_SASL_SASL_H + +/* Define if you have the header file. */ +#undef HAVE_SCHED_H + +/* Define if you have the header file. */ +#undef HAVE_SGTTY_H + +/* Define if you have the header file. */ +#undef HAVE_SHADOW_H + +/* Define if you have the header file. */ +#undef HAVE_SLP_H + +/* Define if you have the header file. */ +#undef HAVE_SQL_H + +/* Define if you have the header file. */ +#undef HAVE_SQLEXT_H + +/* Define if you have the header file. */ +#undef HAVE_SSL_H + +/* Define if you have the header file. */ +#undef HAVE_STDDEF_H + +/* Define if you have the header file. */ +#undef HAVE_STRING_H + +/* Define if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define if you have the header file. */ +#undef HAVE_SYNCH_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_DIR_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_EPOLL_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_ERRNO_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_FILE_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_FILIO_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_NDIR_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_RESOURCE_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SELECT_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SOCKET_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SYSLOG_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_UCRED_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_UIO_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_UN_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_UUID_H + +/* Define if you have the header file. */ +#undef HAVE_SYSEXITS_H + +/* Define if you have the header file. */ +#undef HAVE_SYSLOG_H + +/* Define if you have the header file. */ +#undef HAVE_TCPD_H + +/* Define if you have the header file. */ +#undef HAVE_TERMIOS_H + +/* Define if you have the header file. */ +#undef HAVE_THREAD_H + +/* Define if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define if you have the header file. */ +#undef HAVE_UTIME_H + +/* Define if you have the header file. */ +#undef HAVE_WINSOCK_H + +/* Define if you have the header file. */ +#undef HAVE_WINSOCK2_H + +/* Define if you have the V3 library (-lV3). */ +#undef HAVE_LIBV3 + +/* Define if you have the gen library (-lgen). */ +#undef HAVE_LIBGEN + +/* Define if you have the inet library (-linet). */ +#undef HAVE_LIBINET + +/* Define if you have the net library (-lnet). */ +#undef HAVE_LIBNET + +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the nsl_s library (-lnsl_s). */ +#undef HAVE_LIBNSL_S + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Package */ +#undef OPENLDAP_PACKAGE + +/* Version */ +#undef OPENLDAP_VERSION + +/* Version */ +#undef LDAP_VENDOR_VERSION + +/* Major */ +#undef LDAP_VENDOR_VERSION_MAJOR + +/* Minor */ +#undef LDAP_VENDOR_VERSION_MINOR + +/* Patch */ +#undef LDAP_VENDOR_VERSION_PATCH + +/* define this if you have mkversion */ +#undef HAVE_MKVERSION + +/* defined to be the EXE extension */ +#undef EXEEXT + +/* define if you have AIX security lib */ +#undef HAVE_AIX_SECURITY + +/* define to use both and */ +#undef BOTH_STRINGS_H + +/* define if you have libtool -ltdl */ +#undef HAVE_LIBLTDL + +/* define if system uses EBCDIC instead of ASCII */ +#undef HAVE_EBCDIC + +/* Define if TIOCGWINSZ requires sys/ioctl.h */ +#undef GWINSZ_IN_SYS_IOCTL + +/* define if you have POSIX termios */ +#undef HAVE_POSIX_TERMIOS + +/* define if you have winsock */ +#undef HAVE_WINSOCK + +/* define if you have winsock2 */ +#undef HAVE_WINSOCK2 + +/* define if your system supports epoll */ +#undef HAVE_EPOLL + +/* define if sys_errlist is not declared in stdio.h or errno.h */ +#undef DECL_SYS_ERRLIST + +/* define if you actually have sys_errlist in your libs */ +#undef HAVE_SYS_ERRLIST + +/* define if strerror_r returns char* instead of int */ +#undef HAVE_NONPOSIX_STRERROR_R + +/* define if sys_errlist is not declared in stdio.h or errno.h */ +#undef DECL_SYS_ERRLIST + +/* define if you actually have sys_errlist in your libs */ +#undef HAVE_SYS_ERRLIST + +/* define if you have uuid_to_str() */ +#undef HAVE_UUID_TO_STR + +/* define if you have res_query() */ +#undef HAVE_RES_QUERY + +/* define if you have HEIMDAL Kerberos */ +#undef HAVE_HEIMDAL_KERBEROS + +/* define if you have Kerberos V */ +#undef HAVE_KRB5 + +/* define if you have Kerberos V with IV support */ +#undef HAVE_KRB425 + +/* define if you have Kerberos IV */ +#undef HAVE_KRB4 + +/* define if you have Kerberos des_debug */ +#undef HAVE_DES_DEBUG + +/* define if you have Kerberos IV */ +#undef HAVE_KRB4 + +/* define if you have Kth Kerberos */ +#undef HAVE_KTH_KERBEROS + +/* define if you have Kerberos */ +#undef HAVE_KERBEROS + +/* define if you have SSLeay or OpenSSL */ +#undef HAVE_SSLEAY + +/* define if you have RSAref */ +#undef HAVE_RSAREF + +/* define if you have OpenSSL with CRL checking capability */ +#undef HAVE_OPENSSL_CRL + +/* define if you have TLS */ +#undef HAVE_TLS + +/* define to support LAN Manager passwords */ +#undef SLAPD_LMHASH + +/* if you have NT Threads */ +#undef HAVE_NT_THREADS + +/* if you have NT Service Manager */ +#undef HAVE_NT_SERVICE_MANAGER + +/* if you have NT Event Log */ +#undef HAVE_NT_EVENT_LOG + +/* define to pthreads API spec revision */ +#undef HAVE_PTHREADS + +/* if you have LinuxThreads */ +#undef HAVE_LINUX_THREADS + +/* Define if you have the sched_yield function. */ +#undef HAVE_SCHED_YIELD + +/* define if you have pthread_detach function */ +#undef HAVE_PTHREAD_DETACH + +/* define if you have Mach Cthreads */ +#undef HAVE_MACH_CTHREADS + +/* if you have GNU Pth */ +#undef HAVE_GNU_PTH + +/* if you have Solaris LWP (thr) package */ +#undef HAVE_THR + +/* if you have SunOS LWP package */ +#undef HAVE_LWP + +/* define if select implicitly yields */ +#undef HAVE_YIELDING_SELECT + +/* if you have LinuxThreads */ +#undef HAVE_LINUX_THREADS + +/* define if you have (or want) no threads */ +#undef NO_THREADS + +/* set to the number of arguments ctime_r() expects */ +#undef CTIME_R_NARGS + +/* set to the number of arguments gethostbyname_r() expects */ +#undef GETHOSTBYNAME_R_NARGS + +/* set to the number of arguments gethostbyaddr_r() expects */ +#undef GETHOSTBYADDR_R_NARGS + +/* define if Berkeley DB has DB_THREAD support */ +#undef HAVE_BERKELEY_DB_THREAD + +/* define this if Berkeley DB is available */ +#undef HAVE_BERKELEY_DB + +/* define this to use DBHASH w/ LDBM backend */ +#undef LDBM_USE_DBHASH + +/* define this to use DBBTREE w/ LDBM backend */ +#undef LDBM_USE_DBBTREE + +/* define if MDBM is available */ +#undef HAVE_MDBM + +/* define if GNU DBM is available */ +#undef HAVE_GDBM + +/* define if NDBM is available */ +#undef HAVE_NDBM + +/* define if LDAP libs are dynamic */ +#undef LDAP_LIBS_DYNAMIC + +/* define if you have -lwrap */ +#undef HAVE_TCPD + +/* define if you have Cyrus SASL */ +#undef HAVE_CYRUS_SASL + +/* define if your SASL library has sasl_version() */ +#undef HAVE_SASL_VERSION + +/* set to urandom device */ +#undef URANDOM_DEVICE + +/* define if you actually have FreeBSD fetch(3) */ +#undef HAVE_FETCH + +/* define if crypt(3) is available */ +#undef HAVE_CRYPT + +/* define if setproctitle(3) is available */ +#undef HAVE_SETPROCTITLE + +/* define if you have -lslp */ +#undef HAVE_SLP + +/* define if you have SSLeay or OpenSSL's BIGNUM */ +#undef HAVE_BIGNUM + +/* define if you have -lgmp */ +#undef HAVE_GMP + +/* define if you have 'long long' */ +#undef HAVE_LONG_LONG + +/* Define to `int' if does not define. */ +#undef mode_t + +/* Define to `long' if does not define. */ +#undef off_t + +/* Define to `int' if does not define. */ +#undef pid_t + +/* Define if system has ptrdiff_t type */ +#undef HAVE_PTRDIFF_T + +/* Define to `unsigned' if does not define. */ +#undef size_t + +/* Define to `signed int' if does not define. */ +#undef ssize_t + +/* Define to `char *' if does not define. */ +#undef caddr_t + +/* define to int if socklen_t is not available */ +#undef socklen_t + +/* define to atomic type if sig_atomic_t is not available */ +#undef sig_atomic_t + +/* define if struct passwd has pw_gecos */ +#undef HAVE_PW_GECOS + +/* define if struct passwd has pw_passwd */ +#undef HAVE_PW_PASSWD + +/* define if toupper() requires islower() */ +#undef C_UPPER_LOWER + +/* define as empty if volatile is not supported */ +#undef volatile + +/* define if cross compiling */ +#undef CROSS_COMPILING + +/* The number of bytes in type short */ +#undef SIZEOF_SHORT + +/* The number of bytes in type int */ +#undef SIZEOF_INT + +/* The number of bytes in type long */ +#undef SIZEOF_LONG + +/* The number of bytes in type wchar_t */ +#undef SIZEOF_WCHAR_T + +/* define if memcmp is not 8-bit clean or is otherwise broken */ +#undef NEED_MEMCMP_REPLACEMENT + +/* define to you inet_aton(3) is available */ +#undef HAVE_INET_ATON + +/* if you have spawnlp() */ +#undef HAVE_SPAWNLP + +/* define to snprintf routine */ +#undef snprintf + +/* define to vsnprintf routine */ +#undef vsnprintf + +/* define if struct msghdr has msg_accrights */ +#undef HAVE_MSGHDR_MSG_ACCRIGHTS + +/* define if struct msghdr has msg_control */ +#undef HAVE_MSGHDR_MSG_CONTROL + +/* define to snprintf routine */ +#undef snprintf + +/* define to snprintf routine */ +#undef vsnprintf + +/* define if you have libtool -ltdl */ +#undef HAVE_LIBLTDL + +/* define this to add SLAPI code */ +#undef LDAP_SLAPI + +/* define this to add debugging code */ +#undef LDAP_DEBUG + +/* define this to add syslog code */ +#undef LDAP_SYSLOG + +/* define this for LDAP process title support */ +#undef LDAP_PROCTITLE + +/* define to support PF_LOCAL */ +#undef LDAP_PF_LOCAL + +/* define to support PF_INET6 */ +#undef LDAP_PF_INET6 + +/* define to support cleartext passwords */ +#undef SLAPD_CLEARTEXT + +/* define to support crypt(3) passwords */ +#undef SLAPD_CRYPT + +/* define to support SASL passwords */ +#undef SLAPD_SPASSWD + +/* define to support multimaster replication */ +#undef SLAPD_MULTIMASTER + +/* define to support reverse lookups */ +#undef SLAPD_RLOOKUPS + +/* define to support per-object ACIs */ +#undef SLAPD_ACI_ENABLED + +/* define to support modules */ +#undef SLAPD_MODULES + +/* statically linked module */ +#undef SLAPD_MOD_STATIC + +/* dynamically linked module */ +#undef SLAPD_MOD_DYNAMIC + +/* define to support BDB backend */ +#undef SLAPD_BDB + +/* define to support DNS SRV backend */ +#undef SLAPD_DNSSRV + +/* define to support HDB backend */ +#undef SLAPD_HDB + +/* define to support LDAP backend */ +#undef SLAPD_LDAP + +/* define to support LDBM backend */ +#undef SLAPD_LDBM + +/* define to support LDAP Metadirectory backend */ +#undef SLAPD_META + +/* define to support cn=Monitor backend */ +#undef SLAPD_MONITOR + +/* define to support NULL backend */ +#undef SLAPD_NULL + +/* define to support PASSWD backend */ +#undef SLAPD_PASSWD + +/* define to support PERL backend */ +#undef SLAPD_PERL + +/* define to support relay backend */ +#undef SLAPD_RELAY + +/* define to support SHELL backend */ +#undef SLAPD_SHELL + +/* define to support SQL backend */ +#undef SLAPD_SQL + +/* define for In-Directory Access Logging overlay */ +#undef SLAPD_OVER_ACCESSLOG + +/* define for Dynamic Group overlay */ +#undef SLAPD_OVER_DENYOP + +/* define for Dynamic Group overlay */ +#undef SLAPD_OVER_DYNGROUP + +/* define for Dynamic List overlay */ +#undef SLAPD_OVER_DYNLIST + +/* define for Backend Glue overlay */ +#undef SLAPD_OVER_GLUE + +/* define for Last Modification overlay */ +#undef SLAPD_OVER_LASTMOD + +/* define for Password Policy overlay */ +#undef SLAPD_OVER_PPOLICY + +/* define for Proxy Cache overlay */ +#undef SLAPD_OVER_PROXYCACHE + +/* define for Referential Integrity overlay */ +#undef SLAPD_OVER_REFINT + +/* define for Referential Integrity overlay */ +#undef SLAPD_OVER_RETCODE + +/* define for Rewrite/Remap overlay */ +#undef SLAPD_OVER_RWM + +/* define for Syncrepl Provider overlay */ +#undef SLAPD_OVER_SYNCPROV + +/* define for Translucent Proxy overlay */ +#undef SLAPD_OVER_TRANSLUCENT + +/* define for Attribute Uniqueness overlay */ +#undef SLAPD_OVER_UNIQUE + +/* define to enable rewriting in back-ldap and back-meta */ +#undef ENABLE_REWRITE + +/* define to enable slapi library */ +#undef ENABLE_SLAPI + + +/* begin of postamble */ + +#ifdef _WIN32 + /* don't suck in all of the win32 api */ +# define WIN32_LEAN_AND_MEAN 1 +#endif + +#ifndef LDAP_NEEDS_PROTOTYPES +/* force LDAP_P to always include prototypes */ +#define LDAP_NEEDS_PROTOTYPES 1 +#endif + +#ifndef LDAP_REL_ENG +#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL) +#define LDAP_DEVEL +#endif +#if defined(LDAP_DEVEL) && !defined(LDAP_TEST) +#define LDAP_TEST +#endif +#endif + +#ifdef HAVE_STDDEF_H +# include +#endif + +#ifdef HAVE_EBCDIC +/* ASCII/EBCDIC converting replacements for stdio funcs + * vsnprintf and snprintf are used too, but they are already + * checked by the configure script + */ +#define fputs ber_pvt_fputs +#define fgets ber_pvt_fgets +#define printf ber_pvt_printf +#define fprintf ber_pvt_fprintf +#define vfprintf ber_pvt_vfprintf +#define vsprintf ber_pvt_vsprintf +#endif + +#include "ac/fdset.h" + +#include "ldap_cdefs.h" +#include "ldap_features.h" + +#include "ac/assert.h" +#include "ac/localize.h" + +#endif /* _LDAP_PORTABLE_H */ diff --git a/servers/slapd/back-ldbm/dbcache.c b/servers/slapd/back-ldbm/dbcache.c index cbc28d0a18..8776c4bc1a 100644 --- a/servers/slapd/back-ldbm/dbcache.c +++ b/servers/slapd/back-ldbm/dbcache.c @@ -41,7 +41,7 @@ ldbm_cache_open( int i, lru, empty; time_t oldtime; char buf[MAXPATHLEN]; -#ifdef HAVE_ST_BLKSIZE +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE struct stat st; #endif @@ -162,7 +162,7 @@ ldbm_cache_open( li->li_dbcache[i].dbc_lastref = slap_get_time(); li->li_dbcache[i].dbc_flags = flags; li->li_dbcache[i].dbc_dirty = 0; -#ifdef HAVE_ST_BLKSIZE +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE if ( stat( buf, &st ) == 0 ) { li->li_dbcache[i].dbc_blksize = st.st_blksize; } else diff --git a/servers/slapd/back-ldbm/ldbm.c b/servers/slapd/back-ldbm/ldbm.c index 66745ee6db..95b4d0f268 100644 --- a/servers/slapd/back-ldbm/ldbm.c +++ b/servers/slapd/back-ldbm/ldbm.c @@ -644,7 +644,7 @@ ldbm_errno( LDBM ldbm ) #elif defined( HAVE_GDBM ) -#ifdef HAVE_ST_BLKSIZE +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE #include #endif @@ -658,7 +658,7 @@ LDBM ldbm_open( DB_ENV *env, char *name, int rw, int mode, int dbcachesize ) { LDBM db; -#ifdef HAVE_ST_BLKSIZE +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE struct stat st; #endif #ifdef HAVE_EBCDIC @@ -677,7 +677,7 @@ ldbm_open( DB_ENV *env, char *name, int rw, int mode, int dbcachesize ) return( NULL ); } -#ifdef HAVE_ST_BLKSIZE +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE if ( dbcachesize > 0 && stat( name, &st ) == 0 ) { dbcachesize /= st.st_blksize; if( dbcachesize == 0 ) dbcachesize = 1;