check if we need to link pthread dynamically

On Linux, bionic and musl for instance do not need libpthread. With
bionic, there is not even a stub library for compatibility.
This commit is contained in:
Brent Cook
2019-01-01 22:59:47 -06:00
parent 4eb8da3e07
commit 3f189a24f2
2 changed files with 2 additions and 3 deletions

View File

@@ -130,6 +130,7 @@ AC_CHECK_FUNCS([getauxval])
AC_SEARCH_LIBS([dl_iterate_phdr],[dl])
AC_CHECK_FUNCS([dl_iterate_phdr])
AC_SEARCH_LIBS([pthread_once],[pthread])
AC_SEARCH_LIBS([clock_gettime],[rt posix4])
AC_CHECK_FUNCS([clock_gettime])
AM_CONDITIONAL([HAVE_CLOCK_GETTIME], [test "x$ac_cv_func_clock_gettime" = xyes])