From 023d0d57c7bc2a4d4c45bb4bdb828a3704e716dd Mon Sep 17 00:00:00 2001 From: bvarner Date: Wed, 28 Jun 2017 15:54:00 -0400 Subject: [PATCH] Condense to guilty until proven innocent. --- BasiliskII/src/Unix/configure.ac | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 4f1bfeec..8743f76d 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -291,16 +291,9 @@ AS_IF([test "x$have_libvhd" = "xyes" ], [ dnl We want pthreads. Try libpthread first, then npth, then libc_r (FreeBSD), then PTL. -AC_SEARCH_LIBS([pthread_create], [pthread]) -AC_SEARCH_LIBS([pthread_create], [npth]) -AC_SEARCH_LIBS([pthread_create], [c_r]) -AC_SEARCH_LIBS([pthread_create], [PTL]) - - - -HAVE_PTHREADS=yes -AC_SEARCH_LIBS([pthread_create], [pthread], , [ - HAVE_PTHREADS=no +HAVE_PTHREADS=no +AC_SEARCH_LIBS([pthread_create], [pthread npth c_r PTL], [ + HAVE_PTHREADS=yes ]) if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])