summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/threads.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/threads.m4 b/m4/threads.m4
index 60b91c02afa..d88b4fface7 100644
--- a/m4/threads.m4
+++ b/m4/threads.m4
@@ -202,6 +202,10 @@ dnl So, we have to add it manually.
],)
])
+ dnl Sometimes thr_create is actually found with explicitly linking against
+ dnl -lthread, so try a more "exotic" function.
+ AC_CHECK_FUNC(rwlock_destroy, , AC_CHECK_LIB(thread, rwlock_destroy,,))dnl
+
dnl Check for POSIX threads
dnl Check if platform provides pthreads backward compatibility macros