From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLZIY-0008RO-JS for qemu-devel@nongnu.org; Tue, 30 Jun 2009 05:06:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLZIS-0008QA-RS for qemu-devel@nongnu.org; Tue, 30 Jun 2009 05:06:42 -0400 Received: from [199.232.76.173] (port=48753 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLZIS-0008Q5-KO for qemu-devel@nongnu.org; Tue, 30 Jun 2009 05:06:36 -0400 Received: from wa4ehsobe003.messaging.microsoft.com ([216.32.181.13]:17690 helo=WA4EHSOBE003.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1MLZIS-0006ck-4M for qemu-devel@nongnu.org; Tue, 30 Jun 2009 05:06:36 -0400 Received: from mail178-wa4 (localhost.localdomain [127.0.0.1]) by mail178-wa4-R.bigfish.com (Postfix) with ESMTP id 0B5E015681C5 for ; Tue, 30 Jun 2009 09:06:32 +0000 (UTC) Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail178-wa4.bigfish.com (Postfix) with ESMTP id 484B6160046 for ; Tue, 30 Jun 2009 09:06:29 +0000 (UTC) Received: from svlb1twp01.amd.com ([139.95.250.34]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n5U96OYm018970 for ; Tue, 30 Jun 2009 02:06:27 -0700 Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp01.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 214F288494E for ; Tue, 30 Jun 2009 02:06:11 -0700 (PDT) From: Christoph Egger Date: Tue, 30 Jun 2009 11:06:09 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_BWdSKgK4PBZ54lJ" Message-ID: <200906301106.09570.Christoph.Egger@amd.com> Subject: [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Boundary-00=_BWdSKgK4PBZ54lJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Don't assume sdl-config is present when checking if SDL is there. If sdl is not installed, configure prints this error: sdl-config: No such file or directory Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_BWdSKgK4PBZ54lJ Content-Type: text/x-diff; charset="us-ascii"; name="qemu_configure.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu_configure.diff" diff --git a/configure b/configure index eb9d73a..d57fd39 100755 --- a/configure +++ b/configure @@ -863,8 +863,17 @@ fi sdl_too_old=no +# Before we use sdl-config, check if it is there if test "$sdl" = "yes" ; then - sdl_config="sdl-config" + sdl_config=`which sdl-config` + if test $? -ne 0 ; then + # Clear content if sdl isn't installed. + # For example, Solaris 'which' prints "no sdl-config in $PATH" + sdl_config="" + sdl="no" + fi +fi +if test "$sdl" = "yes" -a -n "$sdl_config" ; then sdl=no sdl_static=no --Boundary-00=_BWdSKgK4PBZ54lJ--