diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-07-13 08:37:34 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-08-10 10:11:24 +0200 |
commit | 50f8906e63c9413a7687bab6608496d83c29a222 (patch) | |
tree | 0e275c51bb353e02bb79be3f5bcc56f3483c0664 | |
parent | ebfd7da82d7b9eea81067479861aac2d2c07cc29 (diff) |
build: Stop linking the library with libpthread when possible
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 6ee6404..d4ff1ad 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_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]) ]) ]) |