Fix pthread_rwlock_destroy detection

This commit is contained in:
Howard Chu 2007-01-11 00:56:27 +00:00
parent 6111087fac
commit 68ce55418f

72
configure vendored
View file

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.643 2007/01/09 22:44:09 hyc Exp . # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.644 2007/01/10 23:54:45 hyc Exp .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59. # Generated by GNU Autoconf 2.59.
# #
@ -23174,8 +23174,7 @@ echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
fi fi
for ac_func in pthread_kill
for ac_func in pthread_kill pthread_rwlock_destroy
do do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5 echo "$as_me:$LINENO: checking for $ac_func" >&5
@ -23277,6 +23276,73 @@ fi
done done
echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <pthread.h>
pthread_rwlock_t rwlock;
int
main ()
{
pthread_rwlock_destroy(&rwlock);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ol_cv_func_pthread_rwlock_destroy=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ol_cv_func_pthread_rwlock_destroy=no
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD_RWLOCK_DESTROY 1
_ACEOF
],
fi
echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
if test "${ol_cv_func_pthread_detach+set}" = set; then if test "${ol_cv_func_pthread_detach+set}" = set; then