Fix test for posix like pthread_cond_timedwait. (#70525)

2002-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fix test for posix like
	pthread_cond_timedwait. (#70525)
This commit is contained in:
Sebastian Wilhelmi 2002-02-05 08:13:38 +00:00 committed by Sebastian Wilhelmi
parent 19a27ad809
commit 4f8c618407
9 changed files with 42 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -1,3 +1,8 @@
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fix test for posix like
pthread_cond_timedwait. (#70525)
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Get the right multithread option for GCC 3.0 and * configure.in: Get the right multithread option for GCC 3.0 and

View File

@ -890,6 +890,7 @@ if test x"$have_threads" != xnone; then
AC_MSG_CHECKING(whether pthread_cond_timedwait is posix like) AC_MSG_CHECKING(whether pthread_cond_timedwait is posix like)
# DCE Threads return -1 as failure, posix ETIMEDOUT. # DCE Threads return -1 as failure, posix ETIMEDOUT.
AC_TRY_RUN([#include <pthread.h> AC_TRY_RUN([#include <pthread.h>
#include <sys/time.h>
int main () { int main () {
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER; pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
@ -898,6 +899,7 @@ if test x"$have_threads" != xnone; then
gettimeofday (&tval, NULL); gettimeofday (&tval, NULL);
tspec.tv_sec = tval.tv_sec; tspec.tv_sec = tval.tv_sec;
tspec.tv_nsec = 0; tspec.tv_nsec = 0;
pthread_mutex_lock (&mutex);
return pthread_cond_timedwait (&cond,&mutex,&tspec) return pthread_cond_timedwait (&cond,&mutex,&tspec)
!= -1;}], != -1;}],
[AC_MSG_RESULT(no)], [AC_MSG_RESULT(no)],