autoconf/doc
Eric Blake befa52738c doc: mention how to set early defaults
Jonathan Lebon reported an issue to me off-list about a regression
in libvirt's configure script, which I traced to a patch that
rearranged code that was checking $with_library compared to the
AC_ARG_WITH that actually set $with_library [1].  As the whole point
of the libvirt patch was to refactor code to make maintenance
easier by hiding the AC_ARG_WITH in a helper macro for a net
reduction in lines, it makes sense to actually document how to
check what value a variable has prior to the AC_ARG_WITH usage.

Alas, although the functionality for this has been present in
autoconf for ages, the documentation has been lacking.

[1] libvirt.org/git/?p=libvirt.git;a=commitdiff;h=654c709

* doc/autoconf.texi (Diversion support) <m4_divert_text>: Add
anchor.
(External Software) <AC_ARG_WITH>: Demonstrate how to use DEFAULTS
diversion, for earlier defaults.
(Package Options) <AC_ARG_ENABLE>: Likewise.
* THANKS: Add Jonathan Lebon.

Signed-off-by: Eric Blake <eblake@redhat.com>
2013-09-05 14:56:45 -06:00
..
autoconf.texi doc: mention how to set early defaults 2013-09-05 14:56:45 -06:00
fdl.texi maint: remove empty lines at EOF 2012-01-21 11:49:40 +01:00
gendocs_template maint: resync files from upstream 2013-01-03 15:19:05 -07:00
gnu-oids.texi maint: also sync maint.mk and useless-if-before-free from gnulib 2012-01-21 15:14:45 +01:00
install.texi doc: 'configure && make', not 'configure; make' (Bug#15066) 2013-08-10 08:12:30 -07:00
local.mk build: no more recursion for lib 'subdir' 2013-05-06 12:26:37 +02:00
make-stds.texi maint: resync most files from upstream 2012-09-21 21:52:09 +02:00
standards.texi sync: some files from upstream 2013-05-05 17:25:05 +02:00