summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-02-23 11:13:29 -0500
committerColin Walters <walters@verbum.org>2012-03-05 09:42:44 -0500
commit104312fc07e7308c5ef4f393560639cc0efd372d (patch)
tree8ecc1faf532c8f4d51339b479e6159961a7ce035
parentf8822d285a06827b2ee555f743f1b277a88ef18e (diff)
downloadgobject-introspection-104312fc07e7308c5ef4f393560639cc0efd372d.tar.gz
introspection.m4: Set enable_introspection to yes/no consistently
Some people want the ability to use it inside their configure scripts. http://git.gnome.org/browse/totem/commit/?id=e57d75f555eaad98ec3eee31cf94336ba885174c
-rw-r--r--m4/introspection.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/introspection.m4 b/m4/introspection.m4
index 589721c5..d89c3d90 100644
--- a/m4/introspection.m4
+++ b/m4/introspection.m4
@@ -41,6 +41,8 @@ m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
],dnl
[auto],[dnl
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
+ dnl Canonicalize enable_introspection
+ enable_introspection=$found_introspection
],dnl
[dnl
AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])