]> granicus.if.org Git - p11-kit/commitdiff
Revert "build: Stop linking the library with libpthread when possible"
authorDaiki Ueno <dueno@redhat.com>
Fri, 17 Aug 2018 10:29:28 +0000 (12:29 +0200)
committerDaiki Ueno <ueno@gnu.org>
Fri, 17 Aug 2018 13:53:42 +0000 (15:53 +0200)
This reverts commit 50f8906e63c9413a7687bab6608496d83c29a222.

configure.ac

index 28dd32dd621699c9eece0dead23c1991e96cb675..aa5a00b5691382a9cca0aeb3c4358b8248b84de3 100644 (file)
@@ -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])
                ])
        ])