1 /* include/portable.h.in. Generated automatically from configure.in by autoheader. */
3 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted only as authorized by the OpenLDAP
8 * Public License. A copy of this * license is available at
9 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10 * top-level directory of the distribution.
13 #ifndef _LDAP_PORTABLE_H
14 #define _LDAP_PORTABLE_H
19 /* Define if on AIX 3.
20 System headers sometimes define this.
21 We just want to avoid a redefinition error message. */
26 /* Define to empty if the keyword does not work. */
29 /* Define to `int' if <sys/types.h> doesn't define. */
32 /* Define if you don't have vprintf but do have _doprnt. */
35 /* Define if your struct stat has st_blksize. */
36 #undef HAVE_ST_BLKSIZE
38 /* Define if you have the strftime function. */
41 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
42 #undef HAVE_SYS_WAIT_H
44 /* Define if you have the vprintf function. */
47 /* Define if on MINIX. */
50 /* Define if the system does not provide POSIX.1 features except
52 #undef _POSIX_1_SOURCE
54 /* Define if you need to in order for stat and other things to work. */
57 /* Define as the return type of signal handlers (int or void). */
60 /* Define to the type of arg1 for select(). */
61 #undef SELECT_TYPE_ARG1
63 /* Define to the type of args 2, 3 and 4 for select(). */
64 #undef SELECT_TYPE_ARG234
66 /* Define to the type of arg5 for select(). */
67 #undef SELECT_TYPE_ARG5
69 /* Define if you have the ANSI C header files. */
72 /* Define if you can safely include both <sys/time.h> and <time.h>. */
73 #undef TIME_WITH_SYS_TIME
75 /* Define if your <sys/time.h> declares struct tm. */
78 /* Define to `int' if <sys/types.h> doesn't define. */
81 /* Define if your processor stores words with the most significant
82 byte first (like Motorola and SPARC, unlike Intel and VAX). */
83 #undef WORDS_BIGENDIAN
85 /* define this if needed to get reentrant functions */
93 /* define this if needed to get threadsafe functions */
107 #ifndef _SGI_MP_SOURCE
108 #undef _SGI_MP_SOURCE
111 /* These are defined in ldap_features.h */
113 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
114 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
115 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
116 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
119 /* These are defined in lber_types.h */
127 /* Define if you have the bcopy function. */
130 /* Define if you have the chroot function. */
133 /* Define if you have the closesocket function. */
134 #undef HAVE_CLOSESOCKET
136 /* Define if you have the ctime_r function. */
139 /* Define if you have the endgrent function. */
142 /* Define if you have the endpwent function. */
145 /* Define if you have the fcntl function. */
148 /* Define if you have the flock function. */
151 /* Define if you have the gai_strerror function. */
152 #undef HAVE_GAI_STRERROR
154 /* Define if you have the getaddrinfo function. */
155 #undef HAVE_GETADDRINFO
157 /* Define if you have the getdtablesize function. */
158 #undef HAVE_GETDTABLESIZE
160 /* Define if you have the getgrgid function. */
163 /* Define if you have the gethostbyaddr_r function. */
164 #undef HAVE_GETHOSTBYADDR_R
166 /* Define if you have the gethostbyname_r function. */
167 #undef HAVE_GETHOSTBYNAME_R
169 /* Define if you have the gethostname function. */
170 #undef HAVE_GETHOSTNAME
172 /* Define if you have the getopt function. */
175 /* Define if you have the getpass function. */
178 /* Define if you have the getpassphrase function. */
179 #undef HAVE_GETPASSPHRASE
181 /* Define if you have the getpwnam function. */
184 /* Define if you have the getpwuid function. */
187 /* Define if you have the getspnam function. */
190 /* Define if you have the gettimeofday function. */
191 #undef HAVE_GETTIMEOFDAY
193 /* Define if you have the inet_ntop function. */
194 #undef HAVE_INET_NTOP
196 /* Define if you have the initgroups function. */
197 #undef HAVE_INITGROUPS
199 /* Define if you have the lockf function. */
202 /* Define if you have the memcpy function. */
205 /* Define if you have the memmove function. */
208 /* Define if you have the pipe function. */
211 /* Define if you have the pthread_getconcurrency function. */
212 #undef HAVE_PTHREAD_GETCONCURRENCY
214 /* Define if you have the pthread_kill function. */
215 #undef HAVE_PTHREAD_KILL
217 /* Define if you have the pthread_kill_other_threads_np function. */
218 #undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP
220 /* Define if you have the pthread_rwlock_destroy function. */
221 #undef HAVE_PTHREAD_RWLOCK_DESTROY
223 /* Define if you have the pthread_setconcurrency function. */
224 #undef HAVE_PTHREAD_SETCONCURRENCY
226 /* Define if you have the pthread_yield function. */
227 #undef HAVE_PTHREAD_YIELD
229 /* Define if you have the read function. */
232 /* Define if you have the recv function. */
235 /* Define if you have the recvfrom function. */
238 /* Define if you have the sched_yield function. */
239 #undef HAVE_SCHED_YIELD
241 /* Define if you have the send function. */
244 /* Define if you have the sendto function. */
247 /* Define if you have the setegid function. */
250 /* Define if you have the seteuid function. */
253 /* Define if you have the setgid function. */
256 /* Define if you have the setpwfile function. */
257 #undef HAVE_SETPWFILE
259 /* Define if you have the setsid function. */
262 /* Define if you have the setuid function. */
265 /* Define if you have the sigaction function. */
266 #undef HAVE_SIGACTION
268 /* Define if you have the signal function. */
271 /* Define if you have the sigset function. */
274 /* Define if you have the strdup function. */
277 /* Define if you have the strerror function. */
280 /* Define if you have the strpbrk function. */
283 /* Define if you have the strrchr function. */
286 /* Define if you have the strsep function. */
289 /* Define if you have the strspn function. */
292 /* Define if you have the strstr function. */
295 /* Define if you have the strtol function. */
298 /* Define if you have the strtoul function. */
301 /* Define if you have the sysconf function. */
304 /* Define if you have the thr_getconcurrency function. */
305 #undef HAVE_THR_GETCONCURRENCY
307 /* Define if you have the thr_setconcurrency function. */
308 #undef HAVE_THR_SETCONCURRENCY
310 /* Define if you have the thr_yield function. */
311 #undef HAVE_THR_YIELD
313 /* Define if you have the vsnprintf function. */
314 #undef HAVE_VSNPRINTF
316 /* Define if you have the vsprintf function. */
319 /* Define if you have the wait4 function. */
322 /* Define if you have the waitpid function. */
325 /* Define if you have the write function. */
328 /* Define if you have the <arpa/inet.h> header file. */
329 #undef HAVE_ARPA_INET_H
331 /* Define if you have the <arpa/nameser.h> header file. */
332 #undef HAVE_ARPA_NAMESER_H
334 /* Define if you have the <assert.h> header file. */
337 /* Define if you have the <conio.h> header file. */
340 /* Define if you have the <crypt.h> header file. */
343 /* Define if you have the <db.h> header file. */
346 /* Define if you have the <db_185.h> header file. */
349 /* Define if you have the <des.h> header file. */
352 /* Define if you have the <direct.h> header file. */
355 /* Define if you have the <dirent.h> header file. */
358 /* Define if you have the <errno.h> header file. */
361 /* Define if you have the <fcntl.h> header file. */
364 /* Define if you have the <filio.h> header file. */
367 /* Define if you have the <gdbm.h> header file. */
370 /* Define if you have the <getopt.h> header file. */
373 /* Define if you have the <grp.h> header file. */
376 /* Define if you have the <heim_err.h> header file. */
377 #undef HAVE_HEIM_ERR_H
379 /* Define if you have the <io.h> header file. */
382 /* Define if you have the <kerberosIV/des.h> header file. */
383 #undef HAVE_KERBEROSIV_DES_H
385 /* Define if you have the <kerberosIV/krb.h> header file. */
386 #undef HAVE_KERBEROSIV_KRB_H
388 /* Define if you have the <krb-archaeology.h> header file. */
389 #undef HAVE_KRB_ARCHAEOLOGY_H
391 /* Define if you have the <krb.h> header file. */
394 /* Define if you have the <krb5.h> header file. */
397 /* Define if you have the <libutil.h> header file. */
398 #undef HAVE_LIBUTIL_H
400 /* Define if you have the <limits.h> header file. */
403 /* Define if you have the <locale.h> header file. */
406 /* Define if you have the <ltdl.h> header file. */
409 /* Define if you have the <lwp/lwp.h> header file. */
410 #undef HAVE_LWP_LWP_H
412 /* Define if you have the <mach/cthreads.h> header file. */
413 #undef HAVE_MACH_CTHREADS_H
415 /* Define if you have the <malloc.h> header file. */
418 /* Define if you have the <mdbm.h> header file. */
421 /* Define if you have the <memory.h> header file. */
424 /* Define if you have the <minix/config.h> header file. */
425 #undef HAVE_MINIX_CONFIG_H
427 /* Define if you have the <ncurses.h> header file. */
428 #undef HAVE_NCURSES_H
430 /* Define if you have the <ndbm.h> header file. */
433 /* Define if you have the <ndir.h> header file. */
436 /* Define if you have the <netinet/tcp.h> header file. */
437 #undef HAVE_NETINET_TCP_H
439 /* Define if you have the <openssl/ssl.h> header file. */
440 #undef HAVE_OPENSSL_SSL_H
442 /* Define if you have the <process.h> header file. */
443 #undef HAVE_PROCESS_H
445 /* Define if you have the <psap.h> header file. */
448 /* Define if you have the <pth.h> header file. */
451 /* Define if you have the <pthread.h> header file. */
452 #undef HAVE_PTHREAD_H
454 /* Define if you have the <pwd.h> header file. */
457 /* Define if you have the <readline/history.h> header file. */
458 #undef HAVE_READLINE_HISTORY_H
460 /* Define if you have the <readline/readline.h> header file. */
461 #undef HAVE_READLINE_READLINE_H
463 /* Define if you have the <regex.h> header file. */
466 /* Define if you have the <resolv.h> header file. */
469 /* Define if you have the <sasl.h> header file. */
472 /* Define if you have the <sched.h> header file. */
475 /* Define if you have the <sgtty.h> header file. */
478 /* Define if you have the <shadow.h> header file. */
481 /* Define if you have the <slp.h> header file. */
484 /* Define if you have the <ssl.h> header file. */
487 /* Define if you have the <stddef.h> header file. */
490 /* Define if you have the <string.h> header file. */
493 /* Define if you have the <strings.h> header file. */
494 #undef HAVE_STRINGS_H
496 /* Define if you have the <synch.h> header file. */
499 /* Define if you have the <sys/dir.h> header file. */
500 #undef HAVE_SYS_DIR_H
502 /* Define if you have the <sys/errno.h> header file. */
503 #undef HAVE_SYS_ERRNO_H
505 /* Define if you have the <sys/file.h> header file. */
506 #undef HAVE_SYS_FILE_H
508 /* Define if you have the <sys/filio.h> header file. */
509 #undef HAVE_SYS_FILIO_H
511 /* Define if you have the <sys/ioctl.h> header file. */
512 #undef HAVE_SYS_IOCTL_H
514 /* Define if you have the <sys/ndir.h> header file. */
515 #undef HAVE_SYS_NDIR_H
517 /* Define if you have the <sys/param.h> header file. */
518 #undef HAVE_SYS_PARAM_H
520 /* Define if you have the <sys/resource.h> header file. */
521 #undef HAVE_SYS_RESOURCE_H
523 /* Define if you have the <sys/select.h> header file. */
524 #undef HAVE_SYS_SELECT_H
526 /* Define if you have the <sys/socket.h> header file. */
527 #undef HAVE_SYS_SOCKET_H
529 /* Define if you have the <sys/syslog.h> header file. */
530 #undef HAVE_SYS_SYSLOG_H
532 /* Define if you have the <sys/time.h> header file. */
533 #undef HAVE_SYS_TIME_H
535 /* Define if you have the <sys/types.h> header file. */
536 #undef HAVE_SYS_TYPES_H
538 /* Define if you have the <sys/un.h> header file. */
541 /* Define if you have the <sysexits.h> header file. */
542 #undef HAVE_SYSEXITS_H
544 /* Define if you have the <syslog.h> header file. */
547 /* Define if you have the <tcl.h> header file. */
550 /* Define if you have the <tcpd.h> header file. */
553 /* Define if you have the <termcap.h> header file. */
554 #undef HAVE_TERMCAP_H
556 /* Define if you have the <termios.h> header file. */
557 #undef HAVE_TERMIOS_H
559 /* Define if you have the <thread.h> header file. */
562 /* Define if you have the <unistd.h> header file. */
565 /* Define if you have the <winsock.h> header file. */
566 #undef HAVE_WINSOCK_H
568 /* Define if you have the V3 library (-lV3). */
571 /* Define if you have the bind library (-lbind). */
574 /* Define if you have the dl library (-ldl). */
577 /* Define if you have the gen library (-lgen). */
580 /* Define if you have the inet library (-linet). */
583 /* Define if you have the net library (-lnet). */
586 /* Define if you have the nsl library (-lnsl). */
589 /* Define if you have the nsl_s library (-lnsl_s). */
592 /* Define if you have the resolv library (-lresolv). */
593 #undef HAVE_LIBRESOLV
595 /* Define if you have the socket library (-lsocket). */
596 #undef HAVE_LIBSOCKET
599 #undef OPENLDAP_PACKAGE
602 #undef OPENLDAP_VERSION
605 #undef LDAP_VENDOR_VERSION
608 #undef LDAP_VENDOR_VERSION_MAJOR
611 #undef LDAP_VENDOR_VERSION_MINOR
614 #undef LDAP_VENDOR_VERSION_PATCH
616 /* define this if you have mkversion */
617 #undef HAVE_MKVERSION
619 /* defined to be the EXE extension */
622 /* define if you have AIX security lib */
623 #undef HAVE_AIX_SECURITY
625 /* define if you have libtool -ltdl */
628 /* define if system uses EBCDIC instead of ASCII */
631 /* Define if TIOCGWINSZ requires sys/ioctl.h */
632 #undef GWINSZ_IN_SYS_IOCTL
634 /* define if you have POSIX termios */
635 #undef HAVE_POSIX_TERMIOS
637 /* define if you have winsock */
640 /* define if you have res_query() */
641 #undef HAVE_RES_QUERY
643 /* define if you have HEIMDAL Kerberos */
644 #undef HAVE_HEIMDAL_KERBEROS
646 /* define if you have Kerberos V */
649 /* define if you have Kerberos V with IV support */
652 /* define if you have Kerberos IV */
655 /* define if you have Kerberos des_debug */
656 #undef HAVE_DES_DEBUG
658 /* define if you have Kerberos IV */
661 /* define if you have Kth Kerberos */
662 #undef HAVE_KTH_KERBEROS
664 /* define if you have Kerberos */
667 /* define if you have SSLeay or OpenSSL */
670 /* define if you have RSAref */
673 /* define if you have TLS */
676 /* define to support LAN Manager passwords */
679 /* set to the number of arguments ctime_r() expects */
682 /* set to the number of arguments gethostbyname_r() expects */
683 #undef GETHOSTBYNAME_R_NARGS
685 /* set to the number of arguments gethostbyaddr_r() expects */
686 #undef GETHOSTBYADDR_R_NARGS
688 /* if you have NT Threads */
689 #undef HAVE_NT_THREADS
691 /* if you have NT Service Manager */
692 #undef HAVE_NT_SERVICE_MANAGER
694 /* if you have NT Event Log */
695 #undef HAVE_NT_EVENT_LOG
697 /* define if pthreads API compatible with final spec */
698 #undef HAVE_PTHREADS_FINAL
700 /* define if pthreads API compatible with draft4 spec */
701 #undef HAVE_PTHREADS_D4
703 /* if you have LinuxThreads */
704 #undef HAVE_LINUX_THREADS
706 /* define if you have POSIX Threads */
709 /* Define if you have the sched_yield function. */
710 #undef HAVE_SCHED_YIELD
712 /* define if you have pthread_detach function */
713 #undef HAVE_PTHREAD_DETACH
715 /* define if you have Mach Cthreads */
716 #undef HAVE_MACH_CTHREADS
718 /* if you have GNU Pth */
721 /* if you have Solaris LWP (thr) package */
724 /* if you have SunOS LWP package */
727 /* define if select implicitly yields */
728 #undef HAVE_YIELDING_SELECT
730 /* if you have LinuxThreads */
731 #undef HAVE_LINUX_THREADS
733 /* define if you have (or want) no threads */
736 /* define if Berkeley DB has DB_THREAD support */
737 #undef HAVE_BERKELEY_DB_THREAD
739 /* define this if Berkeley DB is available */
740 #undef HAVE_BERKELEY_DB
742 /* define this to use DBHASH w/ LDBM backend */
743 #undef LDBM_USE_DBHASH
745 /* define this to use DBBTREE w/ LDBM backend */
746 #undef LDBM_USE_DBBTREE
748 /* define if MDBM is available */
751 /* define if GNU DBM is available */
754 /* define if NDBM is available */
757 /* define if you have -lwrap */
760 /* define if you have -ltermcap */
763 /* define if you have -lncurses */
766 /* define if you have no termcap support */
769 /* define if you have Cyrus SASL */
770 #undef HAVE_CYRUS_SASL
772 /* set to urandom device */
773 #undef URANDOM_DEVICE
775 /* define if you actually have FreeBSD fetch(3) */
778 /* define if you have -lreadline */
781 /* define if crypt(3) is available */
784 /* define if setproctitle(3) is available */
785 #undef HAVE_SETPROCTITLE
787 /* define if you have -lslp */
790 /* Define to `int' if <sys/types.h> does not define. */
793 /* Define to `long' if <sys/types.h> does not define. */
796 /* Define to `int' if <sys/types.h> does not define. */
799 /* Define if system has ptrdiff_t type */
800 #undef HAVE_PTRDIFF_T
802 /* Define to `unsigned' if <sys/types.h> does not define. */
805 /* Define to `signed int' if <sys/types.h> does not define. */
808 /* Define to `char *' if <sys/types.h> does not define. */
811 /* define to int if socklen_t is not available */
814 /* define to atomic type if sig_atomic_t is not available */
817 /* define if struct passwd has pw_gecos */
820 /* define if struct passwd has pw_passwd */
821 #undef HAVE_PW_PASSWD
823 /* define if toupper() requires islower() */
826 /* define as empty if volatile is not supported */
829 /* define if cross compiling */
830 #undef CROSS_COMPILING
832 /* The number of bytes in type short */
835 /* The number of bytes in type int */
838 /* The number of bytes in type long */
841 /* define to you inet_aton(3) is available */
842 #undef HAVE_INET_ATON
844 /* if you have spawnlp() */
847 /* define to snprintf routine */
850 /* define to vsnprintf routine */
853 /* define if sys_errlist is not declared in stdio.h or errno.h */
854 #undef DECL_SYS_ERRLIST
856 /* define if you actually have sys_errlist in your libs */
857 #undef HAVE_SYS_ERRLIST
859 /* define this to add debugging code */
862 /* define this to add syslog code */
865 /* define this to remove -lldap cache support */
868 /* define this for LDAP process title support */
869 #undef LDAP_PROCTITLE
871 /* define to support PF_LOCAL */
874 /* define to support PF_INET6 */
877 /* define to support cleartext passwords */
878 #undef SLAPD_CLEARTEXT
880 /* define to support crypt(3) passwords */
883 /* define to support Kerberos passwords */
886 /* define to support SASL passwords */
889 /* define to support phonetic */
890 #undef SLAPD_PHONETIC
892 /* define to support reverse lookups */
893 #undef SLAPD_RLOOKUPS
895 /* define to support per-object ACIs */
896 #undef SLAPD_ACI_ENABLED
898 /* define to support modules */
901 /* define to support BDB backend */
904 /* define to support dynamic BDB backend */
905 #undef SLAPD_BDB_DYNAMIC
907 /* define to support DNS SRV backend */
910 /* define to support dynamic DNS SRV backend */
911 #undef SLAPD_DNSSRV_DYNAMIC
913 /* define to support LDAP backend */
916 /* define to support dynamic LDAP backend */
917 #undef SLAPD_LDAP_DYNAMIC
919 /* define to support LDBM backend */
922 /* define to support dynamic LDBM backend */
923 #undef SLAPD_LDBM_DYNAMIC
925 /* define to support LDAP Metadirectory backend */
928 /* define to support dynamic LDAP Metadirectory backend */
929 #undef SLAPD_META_DYNAMIC
931 /* define to support cn=Monitor backend */
934 /* define to support dynamic cn=Monitor backend */
935 #undef SLAPD_MONITOR_DYNAMIC
937 /* define to support PASSWD backend */
940 /* define to support dynamic PASSWD backend */
941 #undef SLAPD_PASSWD_DYNAMIC
943 /* define to support PERL backend */
946 /* define to support dynamic PERL backend */
947 #undef SLAPD_PERL_DYNAMIC
949 /* define to support SHELL backend */
952 /* define to support dynamic SHELL backend */
953 #undef SLAPD_SHELL_DYNAMIC
955 /* define to support TCL backend */
958 /* define to support dynamic TCL backend */
959 #undef SLAPD_TCL_DYNAMIC
961 /* define to support SQL backend */
964 /* define to support dynamic SQL backend */
965 #undef SLAPD_SQL_DYNAMIC
967 /* define to enable rewriting in back-ldap and back-meta */
968 #undef ENABLE_REWRITE
971 /* begin of postamble */
974 /* don't suck in all of the win32 api */
975 # define WIN32_LEAN_AND_MEAN 1
978 #ifndef LDAP_NEEDS_PROTOTYPES
979 /* force LDAP_P to always include prototypes */
980 #define LDAP_NEEDS_PROTOTYPES 1
987 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
990 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
994 #include "ldap_cdefs.h"
995 #include "ldap_features.h"
997 #include "ac/assert.h"
999 #endif /* _LDAP_PORTABLE_H */