From: Damjan Jovanovic Subject: [1/3] configure.ac: fix libpthread detection on Haiku Message-Id: Date: Fri, 22 Jul 2011 05:16:55 +0200 Changelog: * configure.ac: fix libpthread detection on Haiku Haiku has a single library, libroot.so, for all POSIX functions. There is no separate libc, libm, libpthread, etc. This patch set gets Wine through "configure" (--without-x --without-freetype) and "make depend". Damjan Jovanovic From a8e7d4c036848b58abadc957e29db1040c908d9f Mon Sep 17 00:00:00 2001 From: Damjan Jovanovic Date: Fri, 22 Jul 2011 05:10:42 +0200 Subject: [PATCH 1/3] configure.ac: fix libpthread detection on Haiku --- configure.ac | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index cd5fc18..0290cb5 100644 --- a/configure.ac +++ b/configure.ac @@ -903,9 +903,20 @@ dnl **** Check for pthread **** if test "$ac_cv_header_pthread_h" = "yes" then - AC_CHECK_LIB(pthread,pthread_create,[AC_SUBST(LIBPTHREAD,"-lpthread")]) + ac_save_LIBS="$LIBS" + AC_SEARCH_LIBS(pthread_create,pthread) + if test "$ac_cv_search_pthread_create" = "none required" + then + AC_SUBST(LIBPTHREAD,"") + else + if test "$ac_cv_search_pthread_create" != "no" + then + AC_SUBST(LIBPTHREAD,"-lpthread") + fi + fi + LIBS="$ac_save_LIBS" fi -WINE_ERROR_WITH(pthread,[test "x$LIBPTHREAD" = "x"],[pthread ${notice_platform}development files not found. +WINE_ERROR_WITH(pthread,[test "x$LIBPTHREAD" = "xno"],[pthread ${notice_platform}development files not found. Wine cannot support threads without libpthread.]) dnl **** Check for X11 **** -- 1.7.4.1