From patchwork Sun Sep 19 22:50:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 65173 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 53077B70CD for ; Mon, 20 Sep 2010 08:54:19 +1000 (EST) Received: from localhost ([127.0.0.1]:52130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxSlz-00005s-LA for incoming@patchwork.ozlabs.org; Sun, 19 Sep 2010 18:54:15 -0400 Received: from [140.186.70.92] (port=44717 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxSis-0007Oe-GK for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxSiq-0004oq-Tb for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:02 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:49535) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxSiq-0004of-NS for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:00 -0400 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate03.web.de (Postfix) with ESMTP id 04481160CFB1A; Mon, 20 Sep 2010 00:51:00 +0200 (CEST) Received: from [87.173.118.124] (helo=localhost.localdomain) by smtp02.web.de with asmtp (WEB.DE 4.110 #24) id 1OxSip-00017x-01; Mon, 20 Sep 2010 00:50:59 +0200 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Mon, 20 Sep 2010 00:50:44 +0200 Message-Id: <1284936650-1203-3-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1284936650-1203-2-git-send-email-andreas.faerber@web.de> References: <7861078417-BeMail@haiku> <1284936650-1203-1-git-send-email-andreas.faerber@web.de> <1284936650-1203-2-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX18IuWJICnKMNORPv8t3QeS4vACSmpt+C3OxA82i DOIrTpejGM/UatBjZYhX/luPLl3WW4kXT64ngc//HFmQThwQ1q 9tTbzAcrFq/K1tf+Bu0g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: haikuports-devs@ports.haiku-files.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH 2/8] configure: Don't rely on special pthreads library X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Haiku has pthreads integrated into its libroot.so library. No linker arguments are needed for it, so don't fail if -lpthread and similar don't link. Signed-off-by: Andreas Färber --- configure | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/configure b/configure index da32a1c..2ba35a4 100755 --- a/configure +++ b/configure @@ -1706,13 +1706,17 @@ cat > $TMPC << EOF #include int main(void) { pthread_create(0,0,0,0); return 0; } EOF -for pthread_lib in $PTHREADLIBS_LIST; do - if compile_prog "" "$pthread_lib" ; then - pthread=yes - LIBS="$pthread_lib $LIBS" - break - fi -done +if compile_prog "" "" ; then + pthread=yes +else + for pthread_lib in $PTHREADLIBS_LIST; do + if compile_prog "" "$pthread_lib" ; then + pthread=yes + LIBS="$pthread_lib $LIBS" + break + fi + done +fi if test "$mingw32" != yes -a "$pthread" = no; then echo