summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bogorodskiy <bogorodskiy@gmail.com>2014-09-09 14:20:18 +0200
committerStef Walter <stef@thewalter.net>2014-09-09 14:23:51 +0200
commit92ad58dec9a170a128734ea99e532e8a6a7d5499 (patch)
tree1a43f2b641df9d03969b1d60747cb7e2e080da47
parent4dd71231c7b425c44ca231c6c7b1df97545d1501 (diff)
downloadp11-kit-92ad58dec9a170a128734ea99e532e8a6a7d5499.tar.gz
configure: Check for pthread_create() in pthread library
Check for pthread_create() in pthread library instaed of pthread_mutexattr_init(). This fixes a linking error on FreeBSD. https://bugs.freedesktop.org/show_bug.cgi?id=75674
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index d0194f9..87f8a17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,9 +68,9 @@ AC_C_BIGENDIAN
AC_HEADER_STDBOOL
if test "$os_unix" = "yes"; then
- AC_CHECK_FUNC([pthread_mutexattr_init], , [
- AC_CHECK_LIB(pthread, pthread_mutexattr_init, , [
- AC_MSG_ERROR([could not find pthread_mutexattr_init])
+ AC_CHECK_FUNC([pthread_create], , [
+ AC_CHECK_LIB(pthread, pthread_create, , [
+ AC_MSG_ERROR([could not find pthread_create])
])
])