GNOME Bugzilla – Bug 628713
Configure fails when mm-common is not installed.
Last modified: 2011-01-31 14:17:38 UTC
Created attachment 169439 [details] [review] Patch that fixes this problem. To reproduce: Check out git master. Make sure mm-common is not installed. Run ./autogen.sh Actual results: ./configure: line 3564: syntax error near unexpected token `GTHREAD_CFLAGS,' ./configure: line 3564: `MM_PKG_CONFIG_SUBST(GTHREAD_CFLAGS, --cflags-only-other gthread-2.0)' Expected results: Autogen should complain that it does not find mm-common.
How could mm-common-prepare work if mm-common is not installed?
(In reply to comment #1) > How could mm-common-prepare work if mm-common is not installed? It would fail, but at least during autogen rather than configure. The error message is also more useful than the output from configure (mm-common-prepare: command not found).
(In reply to comment #2) > (In reply to comment #1) > > How could mm-common-prepare work if mm-common is not installed? > > It would fail, but at least during autogen rather than configure. The error > message is also more useful than the output from configure (mm-common-prepare: > command not found). However, on looking at the mm-common-prepare script, it seems that it does not copy the macros (this is left to aclocal), so just mentioning the dependency on mm-common in the README would be sufficient.
Comment on attachment 169439 [details] [review] Patch that fixes this problem. The patch could be changed to run mm-common-prepare with the --version argument, as then a failure would indicate lack of an mm-common installation.
(In reply to comment #4)) > The patch could be changed to run mm-common-prepare with the --version > argument, as then a failure would indicate lack of an mm-common installation. Sounds good to me. Feel free to commit such a change. It's not pretty, but I guess it's unusual anyway to use extra external m4 macros.
Fixed by this commit: http://git.gnome.org/browse/gtkmm-documentation/commit/?id=e32c327a1c2859ea32a7c37eeada179481723c25 Thanks