All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config
@ 2009-06-30  9:06 Christoph Egger
  2009-07-09 19:55 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2009-06-30  9:06 UTC (permalink / raw)
  To: qemu-devel

[-- 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
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-10 12:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-30  9:06 [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config Christoph Egger
2009-07-09 19:55 ` Anthony Liguori
2009-07-10  8:12   ` Christoph Egger
2009-07-10 12:57     ` Anthony Liguori

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.