From 8df47f8c8d85399cdbe974d83cc5f488bd8603c0 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 15 Feb 2018 01:59:15 +0000 Subject: [PATCH] configure.ac: Use `pthread_create` to determine if pthread is available Instead of `pthread_kill`. This is because emscripten supports `pthread_create` but not `pthread_kill`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 800e44ae89..1cd2d581eb 100644 --- a/configure.ac +++ b/configure.ac @@ -2256,7 +2256,7 @@ AS_IF([test "${universal_binary-no}" = yes ], [ AS_IF([test x"$enable_pthread" = xyes], [ for pthread_lib in thr pthread pthreads c c_r root; do - AC_CHECK_LIB($pthread_lib, pthread_kill, + AC_CHECK_LIB($pthread_lib, pthread_create, rb_with_pthread=yes, rb_with_pthread=no) AS_IF([test "$rb_with_pthread" = "yes"], [ break; fi done