tests: always extract only the first AC_CONFIG_MACRO_DIR arg.
commit55262b6fe432ee00ef2acf8b76d37b9ed459cf46
authorGary V. Vaughan <gary@gnu.org>
Fri, 19 Oct 2012 05:23:39 +0000 (19 12:23 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 19 Oct 2012 07:24:21 +0000 (19 14:24 +0700)
tree14fe9a5d8d1d1eb589222a8f364ed22a912f56b9
parentf8061eabaf08f75f5f0430a59bb20f4344838b0e
tests: always extract only the first AC_CONFIG_MACRO_DIR arg.

Previous releases of libtoolize used the final invocation when
there were several, and after the rewrite over extract-trace,
all the invocation directories were concatenated.  This change
enforces correct and consistent behaviour.
* tests/libtoolize.at (multiple AC_CONFIG_MACRO_DIR invocation):
New test.
* build-aux/extract-trace (func_extract_trace_first): New function
for clients that source this file, which returns only the first
argument to the first invocation of the named macros.
* libtoolize.in (func_require_ac_macro_dir): Use it to make sure
the first argument is always used.
(func_require_ac_aux_dir, func_require_ac_ltdl_dir)
(func_require_ac_ltdl_options): Future proof these functions against
multiple invocations or additional arguments to the macros they
trace.
* News (Important incompatible changes): Note change in semantics.
Reported by Eric Blake.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
NEWS
build-aux/extract-trace
libtoolize.in
tests/libtoolize.at