* [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
* Re: [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config
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
0 siblings, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2009-07-09 19:55 UTC (permalink / raw)
To: Christoph Egger; +Cc: qemu-devel
Christoph Egger wrote:
> 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>
>
>
`which sdl-config` will result in an error message going to stderr if
sdl-config is not found.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config
2009-07-09 19:55 ` Anthony Liguori
@ 2009-07-10 8:12 ` Christoph Egger
2009-07-10 12:57 ` Anthony Liguori
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2009-07-10 8:12 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
On Thursday 09 July 2009 21:55:29 Anthony Liguori wrote:
> Christoph Egger wrote:
> > 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>
>
> `which sdl-config` will result in an error message going to stderr if
> sdl-config is not found.
Right. The intention of the patch is to suppress this.
It is enough when configure prints "sdl: no"
Christoph
--
---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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] configure: don't assume presence of sdl-config
2009-07-10 8:12 ` Christoph Egger
@ 2009-07-10 12:57 ` Anthony Liguori
0 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2009-07-10 12:57 UTC (permalink / raw)
To: Christoph Egger; +Cc: qemu-devel
Christoph Egger wrote:
> On Thursday 09 July 2009 21:55:29 Anthony Liguori wrote:
>
>> Christoph Egger wrote:
>>
>>> 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>
>>>
>> `which sdl-config` will result in an error message going to stderr if
>> sdl-config is not found.
>>
>
> Right. The intention of the patch is to suppress this.
> It is enough when configure prints "sdl: no"
>
Right, so the patch is unsuccessful in doing that :-)
You need something like `which sdl-config 2> /dev/null`
Regards,
Anthony Liguori
> Christoph
>
>
^ permalink raw reply [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.