From: Kurt Zeilenga Date: Tue, 18 Dec 2001 23:44:06 +0000 (+0000) Subject: Add mkstemp() detection X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~615 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6808cd668c25fe2c124a7cc89f6f68ace8069647;p=openldap Add mkstemp() detection --- diff --git a/configure b/configure index 13a0fb07dc..7386334b83 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # $OpenLDAP$ -# from OpenLDAP: pkg/ldap/configure.in,v 1.384 2001/12/11 21:48:30 hyc Exp +# from OpenLDAP: pkg/ldap/configure.in,v 1.385 2001/12/18 01:54:49 hyc Exp # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved. # @@ -17482,6 +17482,8 @@ for ac_func in \ lockf \ memcpy \ memmove \ + mkstemp \ + mktemp \ pipe \ read \ recv \ @@ -17514,12 +17516,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:17518: checking for $ac_func" >&5 +echo "configure:17520: checking for $ac_func" >&5 if eval "test \"\${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${ac_exeext}; then +if { (eval echo configure:17549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -17571,12 +17573,12 @@ done for ac_func in getopt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:17575: checking for $ac_func" >&5 +echo "configure:17577: checking for $ac_func" >&5 if eval "test \"\${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${ac_exeext}; then +if { (eval echo configure:17606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -17633,13 +17635,13 @@ fi # Check Configuration echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6 -echo "configure:17637: checking declaration of sys_errlist" >&5 +echo "configure:17639: checking declaration of sys_errlist" >&5 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -17652,7 +17654,7 @@ int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:17656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ol_cv_dcl_sys_errlist=yes ol_cv_have_sys_errlist=yes @@ -17675,20 +17677,20 @@ EOF echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6 -echo "configure:17679: checking existence of sys_errlist" >&5 +echo "configure:17681: checking existence of sys_errlist" >&5 if eval "test \"\${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:17692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ol_cv_have_sys_errlist=yes else diff --git a/include/portable.h.in b/include/portable.h.in index 067f815767..bba543cd47 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -205,6 +205,12 @@ /* 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