summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-08-17 12:29:28 +0200
committerDaiki Ueno <ueno@gnu.org>2018-08-17 15:53:42 +0200
commit35b39cb2bf6d50a117a9e4c8e18100d19716ea71 (patch)
tree6042bb410babd6adbf1032b697c5a6c56998eab5
parent56f3b9370747a7a33a9d56ff9365c89700dd0e67 (diff)
Revert "build: Stop linking the library with libpthread when possible"
This reverts commit 50f8906e63c9413a7687bab6608496d83c29a222.
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 28dd32d..aa5a00b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,9 +73,9 @@ AC_HEADER_STDBOOL
AC_CHECK_SIZEOF([unsigned long])
if test "$os_unix" = "yes"; then
- AC_CHECK_FUNC([pthread_mutex_lock], , [
- AC_SEARCH_LIBS([pthread_mutex_lock], [pthread], , [
- AC_MSG_ERROR([could not find pthread_mutex_lock])
+ AC_CHECK_FUNC([pthread_create], , [
+ AC_CHECK_LIB(pthread, pthread_create, , [
+ AC_MSG_ERROR([could not find pthread_create])
])
])