[gcr] No gir strict when gobject-introspection less than 1.39
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] No gir strict when gobject-introspection less than 1.39
- Date: Sat, 19 Apr 2014 20:37:05 +0000 (UTC)
commit 33ca9eb35cb9257094dc798e40c946405a54d996
Author: Stef Walter <stefw gnome org>
Date: Thu Apr 17 09:28:16 2014 +0200
No gir strict when gobject-introspection less than 1.39
Don't --enable-strict for girscanner when gobject-introspection
is less than 1.39, as it barfs on our headers.
configure.ac | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9d5fc40..7c359eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -304,7 +304,16 @@ if test "$enable_strict" = "yes"; then
-DG_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED"
TEST_MODE="thorough"
- INTROSPECTION_FLAGS="--warn-error"
+ # HACK: Only set strict introspection if gir is greater than 1.39
+ # https://bugzilla.gnome.org/show_bug.cgi?id=698367
+ case $(pkg-config --modversion gobject-introspection-1.0) in
+ 1.3[[45678]]*)
+ INTROSPECTION_FLAGS=""
+ ;;
+ *)
+ INTROSPECTION_FLAGS="--warn-error"
+ ;;
+ esac
AC_DEFINE_UNQUOTED(WITH_STRICT, 1, [More strict checks])
strict_status="yes (-Werror, thorough tests, fatals, no deprecations)"
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]