From 13617a602be7479920a50f331fe332c34a19367c Mon Sep 17 00:00:00 2001 From: csoutheren Date: Wed, 5 Sep 2007 12:44:14 +0000 Subject: [PATCH] Fix detection of pthread type --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 8f7d832a..9452c611 100755 --- a/configure +++ b/configure @@ -5065,7 +5065,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then + if test ${P_HAS_RECURSIVE_MUTEX} = 2 ; then echo "$as_me:$LINENO: result: PTHREAD_MUTEX_RECURSIVE" >&5 echo "${ECHO_T}PTHREAD_MUTEX_RECURSIVE" >&6 else diff --git a/configure.ac b/configure.ac index ace5b753..9742be00 100644 --- a/configure.ac +++ b/configure.ac @@ -825,7 +825,7 @@ if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then else AC_TRY_COMPILE([#include ], [pthread_mutexattr_t attr; pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);], P_HAS_RECURSIVE_MUTEX=2) - if test ${P_HAS_RECURSIVE_MUTEX} = 1 ; then + if test ${P_HAS_RECURSIVE_MUTEX} = 2 ; then AC_MSG_RESULT(PTHREAD_MUTEX_RECURSIVE) else AC_MSG_RESULT(no) -- 2.11.4.GIT