diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 52061777..653ee0df 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -292,9 +292,9 @@ AS_IF([test "x$have_libvhd" = "xyes" ], [ dnl We want pthreads. Try libpthread first, then libc_r (FreeBSD), then PTL. HAVE_PTHREADS=yes -AC_CHECK_LIB(pthread, pthread_create, , [ - AC_CHECK_LIB(c_r, pthread_create, , [ - AC_CHECK_LIB(PTL, pthread_create, , [ +AC_SEARCH_LIBS(pthread_create, pthread, , [ + AC_SEARCH_LIBS(pthread_create, c_r, , [ + AC_SEARCH_LIBS(pthread_create, PTL, , [ HAVE_PTHREADS=no ]) ])