[Spice-devel] [PATCH 2/4] Use PKG_CHECK_EXISTS for g-i has_symbol_prefix check
Christophe Fergeau
cfergeau at redhat.com
Tue Jan 24 09:03:24 PST 2012
GOBJECT_INTROSPECTION_CHECK will alread test for the presence of
gobject-introspection. The PKG_CHECK_MODULES(GOBJECT_INTROSPECTION)
call only needs to set the has_symbol_prefix variable, so we can
use PKG_CHECK_EXISTS here, and let GOBJECT_INTROSPECTION_CHECK do
the rest of the work.
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 202aa3c..1288091 100644
--- a/configure.ac
+++ b/configure.ac
@@ -421,7 +421,7 @@ AC_DEFINE_UNQUOTED(WITH_GTHREAD,[$WITH_GTHREAD], [Whether to use gthread corouti
AM_CONDITIONAL(WITH_GTHREAD, [test "x$WITH_GTHREAD" = "x1"])
AM_CONDITIONAL([HAVE_INTROSPECTION], [test "0" != "1"])
-PKG_CHECK_MODULES([GOBJECT_INTROSPECTION],
+PKG_CHECK_EXISTS([GOBJECT_INTROSPECTION],
[gobject-introspection-1.0 >= 0.9.4],
[has_symbol_prefix=yes], [:])
GOBJECT_INTROSPECTION_CHECK([0.6.7])
--
1.7.7.6
More information about the Spice-devel
mailing list