diff options
author | Roman Bogorodskiy <bogorodskiy@gmail.com> | 2014-09-09 14:20:18 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-09-09 14:21:36 +0200 |
commit | 05ae7b960b511ecf5b8200cc3de174caad42e442 (patch) | |
tree | 42b7c553e454a26aabc6b0488b4d69081385cc31 | |
parent | a3667b173de0caff684fc4591fabdfb5feb65060 (diff) | |
download | p11-kit-05ae7b960b511ecf5b8200cc3de174caad42e442.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.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 9607043..6fd9fd3 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]) ]) ]) |