After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707424 - Use autoconf tracing instead of looking inside configure.ac
Use autoconf tracing instead of looking inside configure.ac
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-03 21:51 UTC by Behdad Esfahbod
Modified: 2014-12-29 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use autoconf --trace for AC_CONFIG_MACRO_DIR (994 bytes, patch)
2013-09-05 20:38 UTC, David King
committed Details | Review
gtkdocize: Use autoconf --trace for AC_CONFIG_MACRO_DIR (1019 bytes, patch)
2014-12-29 14:56 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Behdad Esfahbod 2013-09-03 21:51:40 UTC
Eg.

behdad:hb 0 (master*)$ autoconf --trace GTK_DOC_CHECK ./configure.ac 
configure.ac:57:GTK_DOC_CHECK:1.15:--flavour no-tmpl
behdad:hb 0 (master*)$ autoconf --trace GTK_DOC_CHECK:'$1' ./configure.ac 
1.15
behdad:hb 0 (master*)$ autoconf --trace GTK_DOC_CHECK:'$2' ./configure.ac 
--flavour no-tmpl
Comment 1 David King 2013-09-05 20:38:44 UTC
Created attachment 254210 [details] [review]
use autoconf --trace for AC_CONFIG_MACRO_DIR

This is a really neat idea, but I do not think that it will work for the GTK_DOC_CHECK case in gtkdocize, as GTK_DOC_CHECK needs to be in aclocal.m4. You can verify this by doing the --trace on a fresh git clone, which gives no output.

It would be possible to use the tracing for AC_CONFIG_MACRO_DIR, so I attached a patch which does just that. I tested this and it seems to work fine (and for --srcdir too), but more testing would be appreciated.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2014-02-08 16:47:22 UTC
The patch seems to be a nice simplification. Although:
> echo `autoconf --trace 'AC_CONFIG_MACRO_DIR:$1' configure.ac `
configure.ac:57: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:235: AM_PROG_AR is expanded from...
configure.ac:57: the top level
m4

So maybe it should be:
> echo `autoconf 2>/dev/null --trace 'AC_CONFIG_MACRO_DIR:$1' configure.ac `
m4

Apart from the simplification, is there some other benefit?
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2014-12-29 14:56:02 UTC
The following fix has been pushed:
507662a gtkdocize: Use autoconf --trace for AC_CONFIG_MACRO_DIR
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2014-12-29 14:56:11 UTC
Created attachment 293441 [details] [review]
gtkdocize: Use autoconf --trace for AC_CONFIG_MACRO_DIR