Red Hat Bugzilla – Bug 1017272
introspection.m4 file sometimes not included in widgets/src/Makefile.am
Last modified: 2014-01-30 17:09:46 EST
Description of problem:
automake error: src/Makefile.am:77: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
Version-Release number of selected component (if applicable):
master as of: Tue Oct 8 16:10:58 2013 +0200
If introspection.m4 not found. Apparently it is not included in gobject-introspection package, but rather in gobject-introspection-devel package.
Steps to Reproduce:
1. ./autogen.sh at command line
automake error shown above
widgets/src/Makefile.am -includes $(INTROSPECTION_MAKEFILE) which should be widgets/m4/introspection.m4. This file was included in commit add0aeee but removed again in commit 38a1a9e3 because libtoolize is expected to provide it. It was not provided on my machine, but was once I installed gobject-introspection-devel.
Suggested fix: widgets/configure.ac check for appropriate version of gobject-introspection-devel, not gobject-introspection.
Probably including both is best.
Added a check for whether the GOBJECT_INTROSPECTION_CHECK macro expanded during the autoconf phase, so now the error looks like:
configure.ac:43: error: possibly undefined macro: GOBJECT_INTROSPECTION_CHECK
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
which is hopefully less cryptic.