[gcr/ecc: 1/12] Never compile gir strictly when gobject-introspection less than 1.39
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/ecc: 1/12] Never compile gir strictly when gobject-introspection less than 1.39
- Date: Thu, 17 Apr 2014 18:25:19 +0000 (UTC)
commit 8fc3b3781b393171ae6df1899b480eb6c4e3640a
Author: Stef Walter <stefw gnome org>
Date: Thu Apr 17 09:28:16 2014 +0200
Never compile gir strictly when gobject-introspection less than 1.39
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]