From: Kurt Zeilenga Date: Tue, 20 Oct 1998 04:17:33 +0000 (+0000) Subject: update to NT port for UNIX testing X-Git-Tag: PHP3_TOOL_0_0~18^2~57 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27faaf1ce11eb0ac42ce6fb2cee66a226b0a4ddc;p=openldap update to NT port for UNIX testing --- diff --git a/acconfig.h b/acconfig.h index 2e363ba7fa..545db86416 100644 --- a/acconfig.h +++ b/acconfig.h @@ -53,12 +53,12 @@ /* define if your POSIX Threads implementatin is circa Draft 4 */ #undef HAVE_PTHREADS_D4 -/* define if you have -ltermcap */ -#undef HAVE_TERMCAP - /* define if you have -lwrap */ #undef HAVE_TCPD +/* define if you have -ltermcap */ +#undef HAVE_TERMCAP + /* define this for connectionless LDAP support */ #undef LDAP_CONNECTIONLESS @@ -77,6 +77,30 @@ /* define this for LDAP User Interface support */ #undef LDAP_LIBUI +/* define this to use DB2 in native mode */ +#undef LDBM_USE_DB2 + +/* define this to use DB2 in compat185 mode */ +#undef LDBM_USE_DB2_COMPAT185 + +/* define this to use DBBTREE w/ LDBM backend */ +#undef LDBM_USE_DBBTREE + +/* define this to use DBHASH w/ LDBM backend */ +#undef LDBM_USE_DBHASH + +/* define this to use GDBM w/ LDBM backend */ +#undef LDBM_USE_GDBM + +/* define this to use NDBM w/ LDBM backend */ +#undef LDBM_USE_NDBM + +/* define this if you want no termcap support */ +#undef NO_TERMCAP + +/* define this if you want no thread support */ +#undef NO_THREADS + /* define this for ACL Group support */ #undef SLAPD_ACLGROUPS @@ -104,30 +128,6 @@ /* define this to use SLAPD shell backend */ #undef SLAPD_SHELL -/* define this to use DB2 in native mode */ -#undef LDBM_USE_DB2 - -/* define this to use DB2 in compat185 mode */ -#undef LDBM_USE_DB2_COMPAT185 - -/* define this to use DBBTREE w/ LDBM backend */ -#undef LDBM_USE_DBBTREE - -/* define this to use DBHASH w/ LDBM backend */ -#undef LDBM_USE_DBHASH - -/* define this to use GDBM w/ LDBM backend */ -#undef LDBM_USE_GDBM - -/* define this to use NDBM w/ LDBM backend */ -#undef LDBM_USE_NDBM - -/* define this if you want no termcap support */ -#undef NO_TERMCAP - -/* define this if you want no thread support */ -#undef NO_THREADS - /* define this if the thread package is preemptive */ #undef THREAD_PREEMPTIVE diff --git a/configure b/configure index afdc7fe1f5..bbf7761518 100755 --- a/configure +++ b/configure @@ -4955,13 +4955,16 @@ fi for ac_hdr in \ stddef.h \ + errno.h \ fcntl.h \ filio.h \ limits.h \ malloc.h \ sgtty.h \ sys/file.h \ + sys/errno.h \ sys/ioctl.h \ + sys/param.h \ sys/time.h \ syslog.h \ termios.h \ @@ -4970,17 +4973,17 @@ for ac_hdr in \ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4974: checking for $ac_hdr" >&5 +echo "configure:4977: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -5008,12 +5011,12 @@ done echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:5012: checking for uid_t in sys/types.h" >&5 +echo "configure:5015: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF @@ -5042,7 +5045,7 @@ EOF fi echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 -echo "configure:5046: checking type of array argument to getgroups" >&5 +echo "configure:5049: checking type of array argument to getgroups" >&5 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5050,7 +5053,7 @@ else ac_cv_type_getgroups=cross else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_type_getgroups=gid_t else @@ -5089,7 +5092,7 @@ fi if test $ac_cv_type_getgroups = cross; then cat > conftest.$ac_ext < EOF @@ -5113,12 +5116,12 @@ EOF echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:5117: checking for mode_t" >&5 +echo "configure:5120: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5146,12 +5149,12 @@ EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:5150: checking for off_t" >&5 +echo "configure:5153: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5179,12 +5182,12 @@ EOF fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:5183: checking for pid_t" >&5 +echo "configure:5186: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5212,12 +5215,12 @@ EOF fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:5216: checking return type of signal handlers" >&5 +echo "configure:5219: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -5234,7 +5237,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:5238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -5253,12 +5256,12 @@ EOF echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:5257: checking for size_t" >&5 +echo "configure:5260: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -5286,12 +5289,12 @@ EOF fi echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:5290: checking for uid_t in sys/types.h" >&5 +echo "configure:5293: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF @@ -5320,12 +5323,12 @@ EOF fi echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 -echo "configure:5324: checking for st_blksize in struct stat" >&5 +echo "configure:5327: checking for st_blksize in struct stat" >&5 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -5333,7 +5336,7 @@ int main() { struct stat s; s.st_blksize; ; return 0; } EOF -if { (eval echo configure:5337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_st_blksize=yes else @@ -5354,12 +5357,12 @@ EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:5358: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:5361: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -5368,7 +5371,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -5389,12 +5392,12 @@ EOF fi echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:5393: checking whether struct tm is in sys/time.h or time.h" >&5 +echo "configure:5396: checking whether struct tm is in sys/time.h or time.h" >&5 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -5402,7 +5405,7 @@ int main() { struct tm *tp; tp->tm_sec; ; return 0; } EOF -if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else @@ -5424,12 +5427,12 @@ fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:5428: checking for working const" >&5 +echo "configure:5431: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -5501,7 +5504,7 @@ fi echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 -echo "configure:5505: checking for 8-bit clean memcmp" >&5 +echo "configure:5508: checking for 8-bit clean memcmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5509,7 +5512,7 @@ else ac_cv_func_memcmp_clean=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_func_memcmp_clean=yes else @@ -5537,12 +5540,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o" echo $ac_n "checking for strftime""... $ac_c" 1>&6 -echo "configure:5541: checking for strftime" >&5 +echo "configure:5544: checking for strftime" >&5 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_strftime=yes" else @@ -5587,7 +5590,7 @@ else echo "$ac_t""no" 1>&6 # strftime is in -lintl on SCO UNIX. echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 -echo "configure:5591: checking for strftime in -lintl" >&5 +echo "configure:5594: checking for strftime in -lintl" >&5 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5595,7 +5598,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5633,12 +5636,12 @@ fi fi echo $ac_n "checking for vprintf""... $ac_c" 1>&6 -echo "configure:5637: checking for vprintf" >&5 +echo "configure:5640: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else @@ -5685,12 +5688,12 @@ fi if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 -echo "configure:5689: checking for _doprnt" >&5 +echo "configure:5692: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else @@ -5738,7 +5741,7 @@ fi fi echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6 -echo "configure:5742: checking for wait3 that fills in rusage" >&5 +echo "configure:5745: checking for wait3 that fills in rusage" >&5 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5746,7 +5749,7 @@ else ac_cv_func_wait3_rusage=no else cat > conftest.$ac_ext < #include @@ -5777,7 +5780,7 @@ main() { } } EOF -if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_func_wait3_rusage=yes else @@ -5827,12 +5830,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5831: checking for $ac_func" >&5 +echo "configure:5834: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5883,12 +5886,12 @@ done for ac_func in strdup do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5887: checking for $ac_func" >&5 +echo "configure:5890: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5941,13 +5944,13 @@ done # Check Configuration echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6 -echo "configure:5945: checking declaration of sys_errlist" >&5 +echo "configure:5948: checking declaration of sys_errlist" >&5 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -5957,7 +5960,7 @@ int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:5961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ol_cv_dcl_sys_errlist=yes else @@ -5978,20 +5981,20 @@ if test $ol_cv_dcl_sys_errlist = no ; then EOF echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6 -echo "configure:5982: checking existence of sys_errlist" >&5 +echo "configure:5985: checking existence of sys_errlist" >&5 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ol_cv_have_sys_errlist=yes else diff --git a/configure.in b/configure.in index 586fe693e3..f7d7bb54ae 100644 --- a/configure.in +++ b/configure.in @@ -683,13 +683,16 @@ AC_HEADER_DIRENT AC_HEADER_SYS_WAIT AC_CHECK_HEADERS( \ stddef.h \ + errno.h \ fcntl.h \ filio.h \ limits.h \ malloc.h \ sgtty.h \ sys/file.h \ + sys/errno.h \ sys/ioctl.h \ + sys/param.h \ sys/time.h \ syslog.h \ termios.h \ diff --git a/include/portable.h.in b/include/portable.h.in index f68de6de3c..c87347f45b 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -152,12 +152,12 @@ is provided ``as is'' without express or implied warranty. /* define if your POSIX Threads implementatin is circa Draft 4 */ #undef HAVE_PTHREADS_D4 -/* define if you have -ltermcap */ -#undef HAVE_TERMCAP - /* define if you have -lwrap */ #undef HAVE_TCPD +/* define if you have -ltermcap */ +#undef HAVE_TERMCAP + /* define this for connectionless LDAP support */ #undef LDAP_CONNECTIONLESS @@ -176,6 +176,18 @@ is provided ``as is'' without express or implied warranty. /* define this for LDAP User Interface support */ #undef LDAP_LIBUI +/* define this to use DBBTREE w/ LDBM backend */ +#undef LDBM_USE_DBBTREE + +/* define this to use DBHASH w/ LDBM backend */ +#undef LDBM_USE_DBHASH + +/* define this if you want no termcap support */ +#undef NO_TERMCAP + +/* define this if you want no thread support */ +#undef NO_THREADS + /* define this for ACL Group support */ #undef SLAPD_ACLGROUPS @@ -203,18 +215,6 @@ is provided ``as is'' without express or implied warranty. /* define this to use SLAPD shell backend */ #undef SLAPD_SHELL -/* define this to use DBBTREE w/ LDBM backend */ -#undef LDBM_USE_DBBTREE - -/* define this to use DBHASH w/ LDBM backend */ -#undef LDBM_USE_DBHASH - -/* define this if you want no termcap support */ -#undef NO_TERMCAP - -/* define this if you want no thread support */ -#undef NO_THREADS - /* define this if the thread package is preemptive */ #undef THREAD_PREEMPTIVE @@ -311,6 +311,9 @@ is provided ``as is'' without express or implied warranty. /* Define if you have the header file. */ #undef HAVE_DIRENT_H +/* Define if you have the header file. */ +#undef HAVE_ERRNO_H + /* Define if you have the header file. */ #undef HAVE_FCNTL_H @@ -368,6 +371,9 @@ is provided ``as is'' without express or implied warranty. /* Define if you have the header file. */ #undef HAVE_SYS_DIR_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 @@ -377,6 +383,9 @@ is provided ``as is'' without express or implied warranty. /* 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_TIME_H @@ -420,6 +429,7 @@ is provided ``as is'' without express or implied warranty. # include #endif +#include "bridge.h" #include "ldap_cdefs.h" #endif /* _LDAP_PORTABLE_H */