From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 20 Sep 2010 00:50:44 +0200 Message-Id: <1284936650-1203-3-git-send-email-andreas.faerber@web.de> 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 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 2/8] configure: Don't rely on special pthreads library List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: haikuports-devs@ports.haiku-files.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= Haiku has pthreads integrated into its libroot.so library. No linker argu= ments are needed for it, so don't fail if -lpthread and similar don't link. Signed-off-by: Andreas F=C3=A4rber --- 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=3Dyes - LIBS=3D"$pthread_lib $LIBS" - break - fi -done +if compile_prog "" "" ; then + pthread=3Dyes +else + for pthread_lib in $PTHREADLIBS_LIST; do + if compile_prog "" "$pthread_lib" ; then + pthread=3Dyes + LIBS=3D"$pthread_lib $LIBS" + break + fi + done +fi =20 if test "$mingw32" !=3D yes -a "$pthread" =3D no; then echo --=20 1.7.1.rc2.7.g3e7f1