From df449fd0aa1a6f88151f91c04fe87b24542b0b06 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 20 Jan 2009 13:45:38 +0000 Subject: [PATCH] Added configure tests for optional POSIX threads functionality. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8995 --- configure.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index ace0161aec..3ae6c73483 100644 --- a/configure.in +++ b/configure.in @@ -1327,7 +1327,12 @@ AC_CHECK_FUNCS([ \ memset \ mkdir \ ppoll \ - pthread_condattr_setclock \ + pthread_barrier_init \ + pthread_condattr_setclock \ + pthread_mutex_timedlock \ + pthread_rwlock_timedrdlock \ + pthread_rwlock_timedwrlock \ + pthread_spin_lock \ semtimedop \ signalfd \ syscall \ @@ -1345,6 +1350,11 @@ AC_CHECK_FUNCS([ \ # want for e.g. vgpreload_core-x86-linux.so LIBS="" +AM_CONDITIONAL([HAVE_PTHREAD_BARRIER], + [test x$ac_cv_func_pthread_barrier_init = xyes]) +AM_CONDITIONAL([HAVE_PTHREAD_SPINLOCK], + [test x$ac_cv_func_pthread_spin_lock = xyes]) + # Do we have a useable MPI setup on the primary and/or secondary targets? # On Linux, by default, assumes mpicc and -m32/-m64 # On AIX, by default, assumes mpxlc and -q32/-q64 -- 2.47.3