summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLaurent Vivier2019-06-21 15:05:44 +0200
committerLaurent Vivier2020-02-19 11:17:40 +0100
commitd599938af13714ce635c579a96c805c05e8f6e57 (patch)
tree2226956f72eafeda8efed7ba527338a5fc4adf8e /configure
parentlinux-user: implement getsockopt SO_RCVTIMEO and SO_SNDTIMEO (diff)
downloadqemu-d599938af13714ce635c579a96c805c05e8f6e57.tar.gz
qemu-d599938af13714ce635c579a96c805c05e8f6e57.tar.xz
qemu-d599938af13714ce635c579a96c805c05e8f6e57.zip
configure: linux-user doesn't need neither fdt nor slirp
if softmmu is not enabled, we disable by default fdt and slirp as they are only used by -softmmu targets. A side effect is the git submodules are not cloned if they are not needed. Clone and build can be forced with --enable-fdt and --enable-slirp. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190621130544.18860-1-lvivier@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 6f5d850949..5f5f4befb9 100755
--- a/configure
+++ b/configure
@@ -4135,6 +4135,11 @@ elif test "$fdt" != "yes" ; then
fdt=no
fi
+# fdt is only required when building softmmu targets
+if test -z "$fdt" -a "$softmmu" != "yes" ; then
+ fdt="no"
+fi
+
if test "$fdt" != "no" ; then
fdt_libs="-lfdt"
# explicitly check for libfdt_env.h as it is missing in some stable installs
@@ -6078,6 +6083,11 @@ fi
##########################################
# check for slirp
+# slirp is only required when building softmmu targets
+if test -z "$slirp" -a "$softmmu" != "yes" ; then
+ slirp="no"
+fi
+
case "$slirp" in
"" | yes)
if $pkg_config slirp; then