[Spice-devel] [linux-vdagent v2 2/4] build-sys: fix summary with yes/no info on --with-gtk
Victor Toso
victortoso at redhat.com
Wed Jun 6 09:22:29 UTC 2018
From: Victor Toso <me at victortoso.com>
Before this patch, the summary would have 'auto' instead of yes or no
for building with gtk.
Signed-off-by: Victor Toso <victortoso at redhat.com>
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
configure.ac | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index aa1751a..df02e20 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,9 +82,12 @@ AC_ARG_WITH([gtk],
[],
[with_gtk="auto"])
if test "x$with_gtk" != "xno"; then
- PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.10],
- [AC_DEFINE([WITH_GTK], [1], [If defined, vdagent will favor GTK+ over Xlib])],
- [AS_IF([test "x$with_gtk" = "xyes"], [AC_MSG_ERROR([GTK+ requested but not found])])])
+ PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.10], [
+ AC_DEFINE([WITH_GTK], [1], [If defined, vdagent will favor GTK+ over Xlib])
+ with_gtk="yes"
+ ], [
+ AS_IF([test "x$with_gtk" = "xyes"], [AC_MSG_ERROR([GTK+ requested but not found])])
+ with_gtk="no"])
fi
AC_ARG_ENABLE([pciaccess],
--
2.17.0
More information about the Spice-devel
mailing list