summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-05-25 17:42:45 +0200
committerGravatar Nikias Bassen2019-05-25 17:42:45 +0200
commit7b2b09fe7f4bd20cba4dae3e9104970c94618da5 (patch)
tree790b593957d46c66719615df06de4cd6ab460d5f
parent8b82ef166eb2ac12bc5228cf06a883ec86d520ca (diff)
downloadlibusbmuxd-7b2b09fe7f4bd20cba4dae3e9104970c94618da5.tar.gz
libusbmuxd-7b2b09fe7f4bd20cba4dae3e9104970c94618da5.tar.bz2
configure.ac: Make sure pthread_cancel is properly detected
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 55ba1cd..cd5879a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,9 @@ case ${host_os} in
*)
AC_MSG_RESULT([${host_os}])
AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build $PACKAGE])])
- AC_CHECK_FUNCS([pthread_cancel])
+ AC_CHECK_FUNC(pthread_cancel, [AC_DEFINE(HAVE_PTHREAD_CANCEL)], [
+ AC_CHECK_LIB(pthread, [pthread_cancel],[AC_DEFINE(HAVE_PTHREAD_CANCEL)])
+ ])
AC_CACHE_CHECK(for program_invocation_short_name, ac_cv_program_invocation_short_name,[
AC_TRY_LINK([extern char* program_invocation_short_name;],[return program_invocation_short_name;],
[ac_cv_program_invocation_short_name=yes],