X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fportable.h.in;h=b17ae11d0a7e23e4741fcd69b39433847a21f64a;hb=dc0eacd40b625258355eea866d62188e5aa7ce3b;hp=b8e8e37ac27a7790df9bb1f27289455fa9efd625;hpb=e9a7313de925be69045c07e92de43e6e381e21d7;p=openldap diff --git a/include/portable.h.in b/include/portable.h.in index b8e8e37ac2..b17ae11d0a 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -1,13 +1,16 @@ /* include/portable.h.in. Generated automatically from configure.in by autoheader. */ -/* - * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA +/* 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 at - * http://www.OpenLDAP.org/license.html or in file LICENSE in the - * top-level directory of the distribution. + * 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 @@ -131,6 +134,9 @@ /* 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 @@ -152,6 +158,9 @@ /* 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 @@ -161,6 +170,9 @@ /* 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 @@ -173,6 +185,9 @@ /* 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 @@ -197,6 +212,9 @@ /* 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 @@ -230,6 +248,9 @@ /* 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 @@ -260,12 +281,18 @@ /* 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 @@ -284,9 +311,18 @@ /* 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 @@ -305,9 +341,6 @@ /* Define if you have the vsnprintf function. */ #undef HAVE_VSNPRINTF -/* Define if you have the vsprintf function. */ -#undef HAVE_VSPRINTF - /* Define if you have the wait4 function. */ #undef HAVE_WAIT4 @@ -326,12 +359,21 @@ /* 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 @@ -368,6 +410,9 @@ /* 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 @@ -419,9 +464,6 @@ /* Define if you have the header file. */ #undef HAVE_MEMORY_H -/* Define if you have the header file. */ -#undef HAVE_NCURSES_H - /* Define if you have the header file. */ #undef HAVE_NDBM_H @@ -431,9 +473,18 @@ /* 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 @@ -449,12 +500,6 @@ /* Define if you have the header file. */ #undef HAVE_PWD_H -/* Define if you have the header file. */ -#undef HAVE_READLINE_HISTORY_H - -/* Define if you have the header file. */ -#undef HAVE_READLINE_READLINE_H - /* Define if you have the header file. */ #undef HAVE_REGEX_H @@ -464,6 +509,9 @@ /* 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 @@ -476,6 +524,12 @@ /* 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 @@ -494,6 +548,9 @@ /* 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 @@ -521,6 +578,9 @@ /* 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 @@ -530,24 +590,27 @@ /* 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_TCL_H - /* Define if you have the header file. */ #undef HAVE_TCPD_H -/* Define if you have the header file. */ -#undef HAVE_TERMCAP_H - /* Define if you have the header file. */ #undef HAVE_TERMIOS_H @@ -569,9 +632,6 @@ /* Define if you have the bind library (-lbind). */ #undef HAVE_LIBBIND -/* Define if you have the dl library (-ldl). */ -#undef HAVE_LIBDL - /* Define if you have the gen library (-lgen). */ #undef HAVE_LIBGEN @@ -620,6 +680,9 @@ /* 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 @@ -638,6 +701,27 @@ /* 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 @@ -671,21 +755,15 @@ /* 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 -/* 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 - /* if you have NT Threads */ #undef HAVE_NT_THREADS @@ -695,18 +773,12 @@ /* if you have NT Event Log */ #undef HAVE_NT_EVENT_LOG -/* define if pthreads API compatible with final spec */ -#undef HAVE_PTHREADS_FINAL - -/* define if pthreads API compatible with draft4 spec */ -#undef HAVE_PTHREADS_D4 +/* define to pthreads API spec revision */ +#undef HAVE_PTHREADS /* if you have LinuxThreads */ #undef HAVE_LINUX_THREADS -/* define if you have POSIX Threads */ -#undef HAVE_PTHREADS - /* Define if you have the sched_yield function. */ #undef HAVE_SCHED_YIELD @@ -734,6 +806,15 @@ /* 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 @@ -761,27 +842,18 @@ /* define if you have -lwrap */ #undef HAVE_TCPD -/* define if you have -ltermcap */ -#undef HAVE_TERMCAP - -/* define if you have -lncurses */ -#undef HAVE_NCURSES - -/* define if you have no termcap support */ -#undef NO_TERMCAP - /* 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 you have -lreadline */ -#undef HAVE_READLINE - /* define if crypt(3) is available */ #undef HAVE_CRYPT @@ -791,6 +863,15 @@ /* 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 @@ -842,6 +923,9 @@ /* The number of bytes in type long */ #undef SIZEOF_LONG +/* The number of bytes in type wchar_t */ +#undef SIZEOF_WCHAR_T + /* define to you inet_aton(3) is available */ #undef HAVE_INET_ATON @@ -854,11 +938,20 @@ /* define to vsnprintf routine */ #undef vsnprintf -/* define if sys_errlist is not declared in stdio.h or errno.h */ -#undef DECL_SYS_ERRLIST +/* define if struct msghdr has msg_accrights */ +#undef HAVE_MSGHDR_MSG_ACCRIGHTS -/* define if you actually have sys_errlist in your libs */ -#undef HAVE_SYS_ERRLIST +/* 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 @@ -866,9 +959,6 @@ /* define this to add syslog code */ #undef LDAP_SYSLOG -/* define this to remove -lldap cache support */ -#undef LDAP_NOCACHE - /* define this for LDAP process title support */ #undef LDAP_PROCTITLE @@ -884,14 +974,11 @@ /* define to support crypt(3) passwords */ #undef SLAPD_CRYPT -/* define to support Kerberos passwords */ -#undef SLAPD_KPASSWD - /* define to support SASL passwords */ #undef SLAPD_SPASSWD -/* define to support phonetic */ -#undef SLAPD_PHONETIC +/* define to support multimaster replication */ +#undef SLAPD_MULTIMASTER /* define to support reverse lookups */ #undef SLAPD_RLOOKUPS @@ -902,75 +989,90 @@ /* 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 dynamic BDB backend */ -#undef SLAPD_BDB_DYNAMIC - /* define to support DNS SRV backend */ #undef SLAPD_DNSSRV -/* define to support dynamic DNS SRV backend */ -#undef SLAPD_DNSSRV_DYNAMIC +/* define to support HDB backend */ +#undef SLAPD_HDB /* define to support LDAP backend */ #undef SLAPD_LDAP -/* define to support dynamic LDAP backend */ -#undef SLAPD_LDAP_DYNAMIC - /* define to support LDBM backend */ #undef SLAPD_LDBM -/* define to support dynamic LDBM backend */ -#undef SLAPD_LDBM_DYNAMIC - /* define to support LDAP Metadirectory backend */ #undef SLAPD_META -/* define to support dynamic LDAP Metadirectory backend */ -#undef SLAPD_META_DYNAMIC - /* define to support cn=Monitor backend */ #undef SLAPD_MONITOR -/* define to support dynamic cn=Monitor backend */ -#undef SLAPD_MONITOR_DYNAMIC +/* define to support NULL backend */ +#undef SLAPD_NULL /* define to support PASSWD backend */ #undef SLAPD_PASSWD -/* define to support dynamic PASSWD backend */ -#undef SLAPD_PASSWD_DYNAMIC - /* define to support PERL backend */ #undef SLAPD_PERL -/* define to support dynamic PERL backend */ -#undef SLAPD_PERL_DYNAMIC +/* define to support relay backend */ +#undef SLAPD_RELAY /* define to support SHELL backend */ #undef SLAPD_SHELL -/* define to support dynamic SHELL backend */ -#undef SLAPD_SHELL_DYNAMIC +/* define to support SQL backend */ +#undef SLAPD_SQL -/* define to support TCL backend */ -#undef SLAPD_TCL +/* define for Dynamic Group overlay */ +#undef SLAPD_OVER_CHAIN -/* define to support dynamic TCL backend */ -#undef SLAPD_TCL_DYNAMIC +/* define for Dynamic Group overlay */ +#undef SLAPD_OVER_DENYOP -/* define to support SQL backend */ -#undef SLAPD_SQL +/* define for Dynamic Group overlay */ +#undef SLAPD_OVER_DYNGROUP + +/* 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 to support dynamic SQL backend */ -#undef SLAPD_SQL_DYNAMIC +/* define for Proxy Cache overlay */ +#undef SLAPD_OVER_PROXYCACHE + +/* define for Referential Integrity overlay */ +#undef SLAPD_OVER_REFINT + +/* define for Rewrite/Remap overlay */ +#undef SLAPD_OVER_RWM + +/* define for Syncrepl Provider overlay */ +#undef SLAPD_OVER_SYNCPROV + +/* 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 */ @@ -984,20 +1086,38 @@ #define LDAP_NEEDS_PROTOTYPES 1 #endif -#ifdef HAVE_STDDEF_H -# include +#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 -#if defined(LDAP_TEST) && !defined(LDAP_DEBUG) -#define LDAP_DEBUG #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 */