configure: Test that gio libs from pkg-config work
commit76346b6264a9b01979829a5d4366c3799e2dd15a
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 2 Nov 2020 16:52:17 +0000 (2 16:52 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 2 Nov 2020 16:52:17 +0000 (2 16:52 +0000)
tree8624e19059d747493bed4a2db820e75d2ffcd058
parent7142eb9e24b4aa5118cd67038057f15694d782aa
configure: Test that gio libs from pkg-config work

On some hosts (eg Ubuntu Bionic) pkg-config returns a set of
libraries for gio-2.0 which don't actually work when compiling
statically. (Specifically, the returned library string includes
-lmount, but not -lblkid which -lmount depends upon, so linking
fails due to missing symbols.)

Check that the libraries work, and don't enable gio if they don't,
in the same way we do for gnutls.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200928160402.7961-1-peter.maydell@linaro.org
configure