From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Michael Walle" <michael@walle.cc>, "Fam Zheng" <fam@euphon.net>,
"Daniel P . Berrangé" <berrange@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Brad Smith" <brad@comstyle.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: [Qemu-devel] [PATCH v3 4/5] configure: Let SDL support be optional on OpenBSD
Date: Tue, 29 Jan 2019 16:00:28 +0100 [thread overview]
Message-ID: <20190129150029.29829-5-philmd@redhat.com> (raw)
In-Reply-To: <20190129150029.29829-1-philmd@redhat.com>
Currently if we try to build QEMU on OpenBSD with SDL disabled, we get:
$ ./configure --cc=x86_64-unknown-openbsd6.1-gcc-4.9.4 --python=python2.7 --disable-sdl
ERROR: sdl not found or disabled, can not use sdl audio driver
Since SDL is not a requirement for OpenBSD, let it be optional.
If it is not found, or the user explicitly disable it, remove it
from the audio_drv_list.
If no audio backends are available, QEMU will fall back to the
null driver.
Instead of displaying nothing when audio_drv_list ends up empty,
display an informative "none".
This does not change the default behavior:
$ ./configure --cc=x86_64-unknown-openbsd6.1-gcc-4.9.4 --python=python2.7
SDL support yes (1.2.15)
Audio drivers sdl
WARNING: Use of SDL 1.2 is deprecated and will be removed in
WARNING: future releases. Please switch to using SDL 2.0
GEN config-host.h
...
but allows to build without SDL:
$ ./configure --cc=x86_64-unknown-openbsd6.1-gcc-4.9.4 --python=python2.7 --disable-sdl
WARN: sdl not found or disabled, can not use sdl audio driver
SDL support no
Audio drivers none
GEN config-host.h
...
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
configure | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index c7024d6662..df10601fee 100755
--- a/configure
+++ b/configure
@@ -3380,7 +3380,8 @@ for drv in $audio_drv_list; do
sdl)
if test "$sdl" = "no"; then
- error_exit "sdl not found or disabled, can not use sdl audio driver"
+ echo "WARNING: SDL not found or disabled, can not use sdl audio driver"
+ audio_drv_list=$(echo "$audio_drv_list" | sed -e 's/sdl *//g')
fi
;;
@@ -3417,6 +3418,9 @@ for drv in $audio_drv_list; do
;;
esac
done
+if test -z "$audio_drv_list"; then
+ audio_drv_list="none"
+fi
##########################################
# BrlAPI probe
--
2.20.1
next prev parent reply other threads:[~2019-01-29 15:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 15:00 [Qemu-devel] [PATCH v3 0/5] sdl: Let it be optional (in particular, on OpenBSD) Philippe Mathieu-Daudé
2019-01-29 15:00 ` [Qemu-devel] [PATCH v3 1/5] hw/lm32: Move LM32 specific hardware out of common-obj list Philippe Mathieu-Daudé
2019-01-30 7:44 ` Gerd Hoffmann
2019-01-29 15:00 ` [Qemu-devel] [PATCH v3 2/5] configure: LM32 Milkymist Texture Mapping Unit (tmu2) also depends of X11 Philippe Mathieu-Daudé
2019-01-29 15:00 ` [Qemu-devel] [PATCH v3 3/5] hw/display/milkymist-tmu2: Explicit the dependency to both X11 / OpenGL Philippe Mathieu-Daudé
2019-01-29 15:00 ` Philippe Mathieu-Daudé [this message]
2019-01-30 7:52 ` [Qemu-devel] [PATCH v3 4/5] configure: Let SDL support be optional on OpenBSD Gerd Hoffmann
2019-01-29 15:00 ` [Qemu-devel] [PATCH v3 5/5] hw/display/milkymist-tmu2: Move inlined code from header to source Philippe Mathieu-Daudé
2019-02-03 1:24 ` [Qemu-devel] [PATCH v3 0/5] sdl: Let it be optional (in particular, on OpenBSD) no-reply
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=20190129150029.29829-5-philmd@redhat.com \
--to=philmd@redhat.com \
--cc=berrange@redhat.com \
--cc=brad@comstyle.com \
--cc=fam@euphon.net \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=michael@walle.cc \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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.