Syntax error GOBJECT_INTROSPECTION_CHECK during configuration

In the "./configure" open source project, I get:

user agent OS = Linux ./configure: line 13957: syntax error near unexpected token 0.9.3' ./configure: line 13957: GOBJECT_INTROSPECTION_CHECK(0.9.3)' make: *** [config.status] Error 2 

Ubuntu 12.04 the package "gobject-introspection" and "libgirepository1.0-dev" are present. Removing the line GOBJECT_INTROSPECTION_CHECK allows you to complete the setup, but later the project will fail.

How can I go through this setup step cleanly? Google for this problem shows errors filed against many OS projects for the same blocking problem, but the usual answer is โ€œinstall gobject-introspectionโ€.

+5
source share
1 answer

Once OP opened it himself, he had to install the gobject-introspection package to get the m4 macros that were used.

The error message contains an unprocessed macro in it, since configure scripts are generated from configure.in / configure.ac files via m4 / etc, the fact that the original macro is in the output file indicates that the macro was not translated during generation.

The gobject-introspection m4 files were apparently installed after running autogen.sh (or equivalent) to generate a configure script. Re-running the autogen.sh script should restore the configure script and run the macro correctly.

+7
source

Source: https://habr.com/ru/post/1201933/


All Articles