]> granicus.if.org Git - p11-kit/commitdiff
build: Stop linking the library with libpthread when possible
authorDaiki Ueno <dueno@redhat.com>
Fri, 13 Jul 2018 06:37:34 +0000 (08:37 +0200)
committerDaiki Ueno <ueno@gnu.org>
Fri, 10 Aug 2018 08:11:24 +0000 (10:11 +0200)
configure.ac

index 6ee64048a98922a1237a0820d5aa0fac2c8f05ec..d4ff1ad3ef096ac0fe0cb1674c66f5c18ff43c15 100644 (file)
@@ -73,9 +73,9 @@ AC_HEADER_STDBOOL
 AC_CHECK_SIZEOF([unsigned long])
 
 if test "$os_unix" = "yes"; then
-       AC_CHECK_FUNC([pthread_create], , [
-               AC_CHECK_LIB(pthread, pthread_create, , [
-                       AC_MSG_ERROR([could not find pthread_create])
+       AC_CHECK_FUNC([pthread_mutex_lock], , [
+               AC_SEARCH_LIBS([pthread_mutex_lock], [pthread], , [
+                       AC_MSG_ERROR([could not find pthread_mutex_lock])
                ])
        ])