On 06/10/2022 10.33, marcandre.lur...@redhat.com wrote:
From: Marc-André Lureau <marcandre.lur...@redhat.com>
This is an alternative configure-time solution to "[PATCH] net:
print a more actionable error when slirp is not found".
See also "If your networking is failing after updating to the latest git
version of QEMU..." ML thread.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
---
meson.build | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meson.build b/meson.build
index 4321b8f8da..b05080b051 100644
--- a/meson.build
+++ b/meson.build
@@ -690,6 +690,13 @@ if not get_option('slirp').auto() or have_system
endif
endif
+# Remove this error after QEMU 8.1 has been released.
+if not get_option('slirp').disabled() and not slirp.found()
+ error('libslirp is not explicitely disabled and was not found. ' +
+ 'Since qemu 7.2, libslirp is no longer included as a submodule ' +
Maybe s/qemu/QEMU/
+ 'fallback, you must install it on your system or --disable-slirp.')
+endif
+
vde = not_found
if not get_option('vde').auto() or have_system or have_tools
vde = cc.find_library('vdeplug', has_headers: ['libvdeplug.h'],
Reviewed-by: Thomas Huth <th...@redhat.com>