GNOME Bugzilla – Bug 622526
HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
Last modified: 2013-06-18 13:18:10 UTC
when running autogen.sh the following error occurs. Running automake-1.11... libanjuta/Makefile.am:214: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL There's need to add to configure.in the relative checks, but ATM I'm fixing symbol-db and I have no time for this one.
Do you think it's better to add a m4 directory and put introspection.m4 inside ? Or just check for GOBJECT_INTROSPECTION_CHECK ? m4_ifdef(GOBJECT_INTROSPECTION_CHECK, [GOBJECT_INTROSPECTION_CHECK([0.6.7])], AM_CONDITIONAL(HAVE_INTROSPECTION, false))
(In reply to comment #1) > Do you think it's better to add a m4 directory and put introspection.m4 inside > ? > > Or just check for GOBJECT_INTROSPECTION_CHECK ? > m4_ifdef(GOBJECT_INTROSPECTION_CHECK, [GOBJECT_INTROSPECTION_CHECK([0.6.7])], > AM_CONDITIONAL(HAVE_INTROSPECTION, false)) Does introspection support require more than just the macro? If yes, then later is more appropriate since just having the script would not be sufficient condition to enable it. BTW, currently build fails without installing gobject-introspection, something needs to check for its presence before. I don't know if check for this macro gives sufficient clue, I guess not.
(In reply to comment #2) > Does introspection support require more than just the macro? Yes, basically this macro check for the package object-introspection-1.0 and defined several variable it finds it. The issue is that the macro comes with gobject-introspection package, so if it's not installed you cannot use the macro to check if it's installed. > BTW, currently build fails without installing gobject-introspection, something > needs to check for its presence before. I don't know if check for this macro > gives sufficient clue, I guess not. The line 'm4_ifdef...' check if the macro is present. And if it's present, the macro is used to check if introspection is supported. So I think that's fine.
(In reply to comment #3) > > The line 'm4_ifdef...' check if the macro is present. And if it's present, the > macro is used to check if introspection is supported. So I think that's fine. Then I guess checking for the macro is better.
I have committed the fix.
*** Bug 633730 has been marked as a duplicate of this bug. ***
(In reply to comment #5) > I have committed the fix. Just in case anyone from the duped bug is interested, the commit that solved this is: https://git.gnome.org/browse/anjuta/commit/?id=ec82284cc305aa6d2c3ebe85554bfe2aa40278bd