configure: check for gdbus-codegen presence
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 10 Jan 2020 11:27:25 +0000 (15:27 +0400)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Jan 2020 12:18:09 +0000 (12:18 +0000)
Some distros ship gdbus-codegen separately for gio headers/pc...

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20200110112725.689401-1-marcandre.lureau@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
configure

index 0ce2c0354a21c74ef47188e888da1432678a35e8..28ee2a254f6dcd713b2b9d8b30324a6c1c75a001 100755 (executable)
--- a/configure
+++ b/configure
@@ -3702,6 +3702,9 @@ if $pkg_config --atleast-version=$glib_req_ver gio-2.0; then
     gio_cflags=$($pkg_config --cflags gio-2.0)
     gio_libs=$($pkg_config --libs gio-2.0)
     gdbus_codegen=$($pkg_config --variable=gdbus_codegen gio-2.0)
+    if [ ! -x "$gdbus_codegen" ]; then
+        gdbus_codegen=
+    fi
 else
     gio=no
 fi