4c2806d81918f40e4dc2f3b060daa2af4d9cacfb
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libgtk3 / 0002-fix-introspection-check.patch
1 Fix HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
2
3 During autoreconf GOBJECT_INTROSPECTION_CHECK could not be resolved because we
4 don't have introspection which provides its custom m4 macro. Reconfigure fails
5 with:
6
7 gdk/Makefile.am:196: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
8 gtk/Makefile.am:1347: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
9
10 We avoid to add a copy of introspection.m4 in the m4 directory of libgtk3 by
11 adding a check, as performed in Systemd.
12
13 Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
14
15 --- a/configure.ac
16 +++ b/configure.ac
17 @@ -1621,7 +1621,10 @@
18  # GObject introspection
19  ##################################################
20
21 -GOBJECT_INTROSPECTION_CHECK(introspection_required_version)
22 +m4_ifdef([GOBJECT_INTROSPECTION_CHECK],
23 +         [GOBJECT_INTROSPECTION_CHECK(introspection_required_version)],
24 +         [AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
25 +          enable_introspection=no])
26
27  ##################################################
28  # colord module