From: Christoph Egger <Christoph.Egger@amd.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config
Date: Tue, 30 Jun 2009 11:06:09 +0200 [thread overview]
Message-ID: <200906301106.09570.Christoph.Egger@amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
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 <Christoph.Egger@amd.com>
--
---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
[-- Attachment #2: qemu_configure.diff --]
[-- Type: text/x-diff, Size: 573 bytes --]
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
next reply other threads:[~2009-06-30 9:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-30 9:06 Christoph Egger [this message]
2009-07-09 19:55 ` [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config Anthony Liguori
2009-07-10 8:12 ` Christoph Egger
2009-07-10 12:57 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200906301106.09570.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.