meson.build: Do not look for VNC-related libraries if have_system is not set
authorThomas Huth <thuth@redhat.com>
Mon, 6 Sep 2021 15:39:39 +0000 (17:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Sep 2021 11:56:26 +0000 (13:56 +0200)
commit95e2289fdac8e329f3282e943715e2a5c4e3177b
tree6a32d38852dfcd70f927526c51a6fca9b82a8a8c
parentc2c7f3351ad8d3230f190740e174365965f6f6b3
meson.build: Do not look for VNC-related libraries if have_system is not set

When running "./configure --static --disable-system" there is currently
a warning if the static version of libpng is missing:

 WARNING: Static library 'png16' not found for dependency 'libpng', may not
 be statically linked

Since it does not make sense to look for the VNC-related libraries at all
when we're building without system emulator binaries, let's add a check
for have_system here to silence this warning.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210906153939.165567-1-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build