]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
16 years agoChangeLog for previous commit.
Eric Blake [Thu, 2 Oct 2008 14:59:37 +0000 (08:59 -0600)] 
ChangeLog for previous commit.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImplement parallel Autotest test execution: testsuite --jobs.
Ralf Wildenhues [Thu, 2 Oct 2008 05:48:51 +0000 (07:48 +0200)] 
Implement parallel Autotest test execution: testsuite --jobs.

* lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
(AT_INIT): <at_jobs>: New variable.
Accept -j, -jN, --jobs[=N], document them in --help output.
Implement parallel driver loop using a FIFO, enabled with --jobs
and if mkfifo works; otherwise, fall back to sequential loop.
(AT_SETUP): Store, do not output summary progress line if
parallel.
* tests/autotest.at (parallel test execution, parallel truth)
(parallel fallacy, parallel skip): New tests.
* doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
the mkfifo requirement, and that --errexit may cause concurrent
jobs to finish.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix sample isinf definition.
Eric Blake [Sat, 20 Sep 2008 22:19:40 +0000 (16:19 -0600)] 
Fix sample isinf definition.

* doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
first.
* THANKS: Update.
Reported by David Cournapeau.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix Erlang regression, introduced 2006-11-17.
Eric Blake [Tue, 16 Sep 2008 12:37:51 +0000 (06:37 -0600)] 
Fix Erlang regression, introduced 2006-11-17.

* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
caused by underquoting.
* NEWS: Mention this fix.
* THANKS: Update.
Reported by BJ Terry.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove AC_CONFIG_AUX_DIRS a bit.
Ralf Wildenhues [Sat, 13 Sep 2008 13:19:25 +0000 (15:19 +0200)] 
Improve AC_CONFIG_AUX_DIRS a bit.

* lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoMention Solaris sh ':' redirection bug.
Ralf Wildenhues [Sat, 13 Sep 2008 13:17:54 +0000 (15:17 +0200)] 
Mention Solaris sh ':' redirection bug.

* doc/autoconf.texi (File Descriptors): Redirecting ':'
in a loop causes bogus optimization with Solaris sh.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAvoid testsuite bug when autom4te cache is disabled by user.
Eric Blake [Thu, 11 Sep 2008 02:06:05 +0000 (20:06 -0600)] 
Avoid testsuite bug when autom4te cache is disabled by user.

* tests/tools.at (autoconf: forbidden tokens, basic): Enable
cache, even if user normally disabled it.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid testsuite bug in presence of verbose config.site.
Eric Blake [Wed, 10 Sep 2008 20:06:33 +0000 (14:06 -0600)] 
Avoid testsuite bug in presence of verbose config.site.

* tests/base.at (Input/Output): Nullify config.site during test.
Reported by Bob Friesenhahn.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago./.prev-version: Record previous version: 2.63.
Eric Blake [Wed, 10 Sep 2008 01:01:46 +0000 (19:01 -0600)] 
./.prev-version: Record previous version: 2.63.

16 years agoRelease Version 2.63. v2.63
Eric Blake [Mon, 8 Sep 2008 12:21:10 +0000 (06:21 -0600)] 
Release Version 2.63.

* NEWS: Mention the release.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFormatting tweaks to the manual.
Eric Blake [Sat, 6 Sep 2008 22:19:55 +0000 (16:19 -0600)] 
Formatting tweaks to the manual.

* doc/autoconf.texi (Introduction, Systemology)
(File System Conventions, Portable C and C++)
(Floating Point Portability): Allow URLs to split as needed.
(Indices): Add entries, to work around texinfo bug on indices that
start too close to a page break.
(Particular Functions): Mention ftello.
(Introduction, Language Choice): Use @enddots at sentence end.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoResync from gnulib.
Eric Blake [Tue, 2 Sep 2008 12:53:38 +0000 (06:53 -0600)] 
Resync from gnulib.

* cfg.mk (cvs_executable_files, cvs_files): Update list of files,
although for now, they are still manually sync'd.
* build-aux/gnupload: Update.
* build-aux/config.sub: Likewise.
* GNUmakefile: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMention that Automake already supports VPATH.
Eric Blake [Sat, 6 Sep 2008 20:05:09 +0000 (14:05 -0600)] 
Mention that Automake already supports VPATH.

* doc/autoconf.texi (Build Directories): Details in this section
only apply to users avoiding automake.
* THANKS: Update.
Reported by Matej Tyc.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRelax tone when warning about cross-compiler names.
Eric Blake [Sat, 6 Sep 2008 19:20:58 +0000 (13:20 -0600)] 
Relax tone when warning about cross-compiler names.

* lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
with poorly named tools; the issue has been reported too many
times in the last four years to pull support.
* doc/autoconf.texi (Specifying Names, Generic Programs): Update
documentation accordingly.
* THANKS: Update.
Reported by Josef Tran and others, wording suggested by Ralf
Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove AC_C_BIGENDIAN.
Eric Blake [Tue, 2 Sep 2008 01:36:23 +0000 (19:36 -0600)] 
Improve AC_C_BIGENDIAN.

* doc/autoconf.texi (C Compiler) <AC_C_BIGENDIAN>: Mention that
universal builds require a config header.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Enhance comments.  Check
AH_HEADER at the last possible moment, so that users can use
AC_CONFIG_HEADER after this macro.
Reported by Stepan Kasal.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix manual date information.
Eric Blake [Mon, 1 Sep 2008 12:27:14 +0000 (06:27 -0600)] 
Fix manual date information.

* doc/autoconf.tex: UPDATED refers to the day the manual was
built, not the release date of Autoconf.
Based on a bison patch by Akim Demaille.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix off-by-one bug in _m4_shiftn.
Eric Blake [Thu, 28 Aug 2008 02:30:25 +0000 (20:30 -0600)] 
Fix off-by-one bug in _m4_shiftn.

* lib/m4sugar/foreach.m4 (_m4_shiftn): Handle case when shifting
all arguments.
* tests/m4sugar.at (M4 loops): Test it.
Reported by Akim Demaille.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove INSTALL formatting.
Eric Blake [Tue, 26 Aug 2008 21:29:17 +0000 (15:29 -0600)] 
Improve INSTALL formatting.

* doc/install.texi [!autoconf]: Ensure first paragraphs are
indented like all others in a plain text rendering.
* Makefile.am ($(srcdir)/INSTALL): Ensure plaintext formatting.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoCheck for case sensitive make.
Stepan Kasal [Thu, 22 May 2008 15:52:28 +0000 (17:52 +0200)] 
Check for case sensitive make.

* m4/make-check.m4 (AC_PROG_MAKE_CASE_SENSITIVE): New macro,...
* configure.ac: ... called here.
* Makefile.am ($(abs_srcdir)/INSTALL, INSTALL): Return to...
($(srcdir)/INSTALL): ...this, but enclose the rule in
"if MAKE_CASE_SENSITIVE".

Signed-off-by: Stepan Kasal <skasal@redhat.com>
16 years agoUpdate invocation documentation.
Eric Blake [Tue, 26 Aug 2008 15:28:15 +0000 (09:28 -0600)] 
Update invocation documentation.

* doc/autoconf.texi (autoscan Invocation): Mention --debug.
(autoreconf Invocation): Mention -v.
(autom4te Invocation): Tie --freeze to -F, not -f.
(autoupdate Invocation): Mention --prepend-include.
* doc/install.texi (configure Invocation): Mention --help=short,
--help=recursive, -n/--no-create, --prefix.  Avoid TABs.
* bin/autoscan.in ($help): Omit space before `...'.
* bin/ifnames.in ($help): Likewise.
* bin/autoconf.as (Usage): Likewise.
* bin/autoreconf.in ($help): Likewise.
* bin/autoheader.in ($help): Likewise.
* bin/autom4te.in ($help): Likewise.
* bin/autoupdate.in ($help): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
`[OPTION]...', rather than `[OPTIONS]'.  Mention --silent.  Indent
--file correctly.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDon't let frozen __m4_version__ break downgrade to m4 1.4.x.
Eric Blake [Tue, 26 Aug 2008 15:07:01 +0000 (09:07 -0600)] 
Don't let frozen __m4_version__ break downgrade to m4 1.4.x.

* bin/autom4te.in: Adjust comments, now that we rely on 1.4.5+.
(files_to_options): Avoid inheriting __m4_version__ from frozen
file if current M4 does not support it.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdjust to recent m4 1.6 change to support m4_debugmode(d).
Eric Blake [Mon, 25 Aug 2008 22:26:27 +0000 (16:26 -0600)] 
Adjust to recent m4 1.6 change to support m4_debugmode(d).

* lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Move
freeze-time decision of using faster 1.6 implementation...
(m4_init): ...to a runtime decision, and add use of new debugmode
flag.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoLimit AC_C_BIGENDIAN univeral checks to Mac OS X.
Peter O'Gorman [Fri, 22 Aug 2008 16:18:25 +0000 (18:18 +0200)] 
Limit AC_C_BIGENDIAN univeral checks to Mac OS X.

* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Limit the check to
__APPLE_CC__ with possible -arch flags.
* NEWS: Document it.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years ago* NEWS: Fix typo.
Ralf Wildenhues [Fri, 22 Aug 2008 14:15:13 +0000 (16:15 +0200)] 
* NEWS: Fix typo.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years ago* TODO: Add an item for additional m4sugar looping constructs.
Eric Blake [Fri, 22 Aug 2008 14:31:03 +0000 (08:31 -0600)] 
* TODO: Add an item for additional m4sugar looping constructs.

Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd reminder to keep dual implementations in sync.
Eric Blake [Fri, 22 Aug 2008 13:26:33 +0000 (07:26 -0600)] 
Add reminder to keep dual implementations in sync.

* lib/m4sugar/m4sugar.m4: Add comments.
* lib/m4sugar/foreach.m4: Likewise.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFormat warning and error messages to match GCS.
Peter Eisentraut [Fri, 22 Aug 2008 06:51:53 +0000 (08:51 +0200)] 
Format warning and error messages to match GCS.

* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK)
(_AC_INIT_PARSE_ARGS, _AC_CACHE_DUMP): Start warning and error
messages with a lowercase letter, end them without punctuation.
* lib/autoconf/lang.m4 (AC_NO_EXECUTABLES): Likewise.
* lib/autoconf/libs.m4 (AC_PATH_X): Likewise.
* lib/autoconf/status.m4 (AC_OUTPUT, _AC_OUTPUT_MAIN_LOOP):
Likewise.
* tests/fortran.at (GNU Fortran): Likewise.
* tests/torture.at (Deep Package): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAvoid extra side effects in m4sugar list expansion.
Eric Blake [Fri, 22 Aug 2008 04:17:33 +0000 (22:17 -0600)] 
Avoid extra side effects in m4sugar list expansion.

* lib/m4sugar/m4sugar.m4 (m4_mapall_sep, m4_list_cmp): Wrap
around...
(_m4_mapall_sep, _m4_list_cmp_raw): ...new helpers, to avoid
duplicate side effects.
(m4_version_compare): Adjust caller.
* lib/m4sugar/foreach.m4 (m4_list_cmp): Rename...
(_m4_list_cmp_raw): ...to match m4sugar.
* doc/autoconf.texi (Looping constructs): Document the behavior of
side effects.
* tests/m4sugar.at (M4 loops, m4@&t@_map, m4@&t@_version_compare):
Ensure only one side effect.
(recursion): Fix test typo.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago* TODO: Add item for compiler default flags.
Ralf Wildenhues [Thu, 21 Aug 2008 20:40:17 +0000 (22:40 +0200)] 
* TODO: Add item for compiler default flags.

Suggested by Bruno Haible.

16 years ago* tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit back to 1000.
Ralf Wildenhues [Thu, 21 Aug 2008 15:55:16 +0000 (17:55 +0200)] 
* tests/m4sh.at (AS_IF and AS_CASE): Set the expansion limit back to 1000.

16 years agoFormatting improvements.
Eric Blake [Wed, 9 Apr 2008 18:14:06 +0000 (12:14 -0600)] 
Formatting improvements.

* doc/autoconf.texi: Use @file and @command, rather than @code,
where appropriate.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument another make bug.
Eric Blake [Thu, 21 Aug 2008 15:32:21 +0000 (09:32 -0600)] 
Document another make bug.

* doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
make, GNU make <= 3.80.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoTweak wording about SHELL in Makefile.
Eric Blake [Wed, 9 Apr 2008 18:09:45 +0000 (12:09 -0600)] 
Tweak wording about SHELL in Makefile.

* doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
the importance of proper SHELL settings.
Reported by Bruno Haible, in
http://lists.gnu.org/archive/html/bug-libtool/2008-04/msg00029.html.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid timestamp races for updated input.
Ralf Wildenhues [Wed, 20 Aug 2008 19:10:17 +0000 (21:10 +0200)] 
Avoid timestamp races for updated input.

* tests/m4sh.at (AS_IF and AS_CASE): Use `autom4te --force' for
second script.  Set the expansion limit back to 1000.
* tests/tools.at (autotools and whitespace in file names): Add
--force for repeated invocations.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAdd section to INSTALL about particular systems.
Bruno Haible [Wed, 20 Aug 2008 13:26:30 +0000 (07:26 -0600)] 
Add section to INSTALL about particular systems.

* doc/install.texi (Particular systems): New node.
* doc/autoconf.texi: Adjust menus.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMention universal binaries in INSTALL.
Bruno Haible [Wed, 20 Aug 2008 04:16:40 +0000 (22:16 -0600)] 
Mention universal binaries in INSTALL.

* doc/install.texi (Compiling For Multiple Architectures): Explain
how to create universal binaries on MacOS X.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid shell parse errors after interrupt due to empty ``.
Jim Meyering [Tue, 19 Aug 2008 21:00:09 +0000 (23:00 +0200)] 
Avoid shell parse errors after interrupt due to empty ``.

* doc/autoconf.texi (Shell Substitutions): Document the issue.
* lib/m4sugar/m4sh.m4 (AS_VAR_IF): New function.
* lib/autoconf/functions.m4 (AC_CHECK_FUNC): Use it in place of
"test AS_VAR_GET([...]) = yes"
* lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL): Likewise.
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Likewise.
(_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD): Likewise.
(_AC_CHECK_HEADER_DIRENT): Likewise.
* lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Use
temporary variable to work around the issue.
* tests/foreign.at (Libtool): Quote result of command
substitution.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoTest m4_transform without tickling shell bugs.
Eric Blake [Tue, 19 Aug 2008 04:20:37 +0000 (22:20 -0600)] 
Test m4_transform without tickling shell bugs.

* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Relax test to
something more manageable.
* tests/m4sugar.at (recursion): Move stress test of
m4_transform_pair here.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoLet 'git diff' give better context for doc updates.
Eric Blake [Mon, 18 Aug 2008 12:25:49 +0000 (06:25 -0600)] 
Let 'git diff' give better context for doc updates.

* .gitattributes (*.texi*): Add new entry.
* README-hacking: Mention how to use it.
Inspired by a coreutils patch by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix m4_map regression from 2007-10-16.
Eric Blake [Fri, 15 Aug 2008 13:06:39 +0000 (07:06 -0600)] 
Fix m4_map regression from 2007-10-16.

* lib/m4sugar/m4sugar.m4 (_m4_apply): New macro.
(m4_map): Ignore empty sublists.  For a list consisting of only an
empty sublist, this restores 2.61 behavior of being a no-op.
(m4_map_sep): Likewise, and expand separator.
(m4_mapall, m4_mapall_sep): New macros, to regain 2.62 behavior.
(_m4_map): Rewrite, to be common base for all four variants.
* lib/m4sugar/foreach.m4 (_m4_map): Adjust to new prototype.
* tests/m4sugar.at (m4@&t@_map): Add tests.
* doc/autoconf.texi (Looping constructs) <m4_map>: Document new
macros, and mention ramifications of expanded separator.
* NEWS: Mention the change.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImplement m4_transform_pair, to speed up AS_IF.
Eric Blake [Wed, 13 Aug 2008 15:12:28 +0000 (09:12 -0600)] 
Implement m4_transform_pair, to speed up AS_IF.

* lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
macros, undocumented for now.
* lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
the m4 1.4.x counterparts.
* lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix AC_*_TARGET_TOOL macros.
Ralf Wildenhues [Thu, 14 Aug 2008 21:29:23 +0000 (23:29 +0200)] 
Fix AC_*_TARGET_TOOL macros.

* lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
(AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
warn about previous AC_CANONICAL_TARGET.
(AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
unusable in the non-cross-compiling case.
* NEWS, THANKS: Update.
Report by Dave Erickson.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoOptimize m4_bmatch.
Eric Blake [Tue, 12 Aug 2008 21:23:56 +0000 (15:23 -0600)] 
Optimize m4_bmatch.

* lib/m4sugar/foreach.m4 (m4_bmatch): Provide linear
implementation for m4 1.4.x.
* tests/m4sugar.at (m4@&t@_bmatch): New test.
(recursion): Test the linear nature.
* NEWS: Document the fix.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix m4_cond corner case.
Eric Blake [Tue, 12 Aug 2008 15:18:53 +0000 (09:18 -0600)] 
Fix m4_cond corner case.

* lib/m4sugar/foreach.m4 (_m4_cond): Ensure alternate
implementation allows concatenation with subsequent text.
* tests/m4sugar.at (m4@&t@_cond): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd test for m4_cond.
Eric Blake [Tue, 12 Aug 2008 12:32:23 +0000 (06:32 -0600)] 
Add test for m4_cond.

* tests/m4sugar.at (m4@&t@_cond): New test.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).
Eric Blake [Mon, 4 Aug 2008 12:56:53 +0000 (06:56 -0600)] 
Fix autoheader 2.62 regression on AC_DEFINE([__EXTENSIONS__]).

* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Use a
unique key for the AH_VERBATIM.
* tests/c.at (AC_USE_SYSTEM_EXTENSIONS): New test.
* NEWS: Mention the fix.
Reported by Andreas Schwab, analyzed by Stepan Kasal.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd linear m4_cond for m4 1.4.x.
Eric Blake [Wed, 30 Jul 2008 22:44:03 +0000 (16:44 -0600)] 
Add linear m4_cond for m4 1.4.x.

* lib/m4sugar/m4sugar.m4 (m4_cond): Split into...
(_m4_cond): ...this, for fewer macros per iteration.
* lib/m4sugar/foreach.m4 (_m4_cond): New implementation.
* tests/m4sugar.at (recursion): Test it.
* NEWS: Document the linear guarantee.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSpeed up diversion handling.
Eric Blake [Wed, 30 Jul 2008 20:45:42 +0000 (14:45 -0600)] 
Speed up diversion handling.

* lib/m4sugar/m4sugar.m4 (m4_divert, m4_divert_push)
(m4_divert_pop, m4_divert_text): Avoid dnl for fewer macro
expansions.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAC_C_CHAR_UNSIGNED is not strictly necessary.
Eric Blake [Wed, 6 Aug 2008 15:24:09 +0000 (09:24 -0600)] 
AC_C_CHAR_UNSIGNED is not strictly necessary.

* doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
portable alternative to this macro.
* THANKS: Update.
Reported by Hallvard B Furuseth.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoUpdate some files from upstream.
Eric Blake [Wed, 6 Aug 2008 14:22:14 +0000 (08:22 -0600)] 
Update some files from upstream.

* GNUmakefile: Update.
* build-aux/announce-gen: Likewise.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* build-aux/git-version-gen: Likewise.
* build-aux/texinfo.tex: Likewise.
* build-aux/vc-list-files: Likewise.
* doc/make-stds.texi: Likewise.
* doc/standards.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix AC_CONFIG_FILES([$var]) 2.62 regression.
Ralf Wildenhues [Mon, 4 Aug 2008 06:02:53 +0000 (08:02 +0200)] 
Fix AC_CONFIG_FILES([$var]) 2.62 regression.

* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
whitespace in $ac_config_files and $ac_config_headers.
* tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
Report by Andreas Schwab and Per Ã˜yvind Karlsen.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoFix bugs in previous version of m4_bpatsubsts.
Eric Blake [Wed, 30 Jul 2008 15:45:21 +0000 (09:45 -0600)] 
Fix bugs in previous version of m4_bpatsubsts.

* lib/m4sugar/foreach.m4 (_m4_bpatsubsts): Don't expand $1, and
allow concatenation with subsequent text.
* tests/m4sugar.at (m4@&t@_bpatsubsts): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd linear m4_bpatsubsts for m4 1.4.x.
Eric Blake [Wed, 30 Jul 2008 02:34:06 +0000 (20:34 -0600)] 
Add linear m4_bpatsubsts for m4 1.4.x.

* lib/m4sugar/m4sugar.m4 (m4_bpatsubsts): Match documentation
about anchors, even for only one substitution.
* lib/m4sugar/foreach.m4 (_m4_bpatsubsts): New implementation.
* doc/autoconf.texi (Conditional constructs) <m4_bpatsubsts>:
Clarify behavior with regard to quoting.
* tests/m4sugar.at (recursion): Test scaling of m4_bpatsubsts.
(m4@&t@_bpatsubsts): New test.
* NEWS: Document the linear guarantee.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoTweak m4_do semantics.
Eric Blake [Tue, 29 Jul 2008 20:17:03 +0000 (14:17 -0600)] 
Tweak m4_do semantics.

* lib/m4sugar/m4sugar.m4 (m4_do): Don't concat final argument with
subsequent text.
* lib/m4sugar/foreach.m4 (m4_do): Don't concat intermediate
arguments, and avoid infinite loop.
* doc/autoconf.texi (Evaluation Macros) <m4_do>: Document the
behavior.
* tests/m4sugar.at (m4@&t@_do): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize m4_for.
Eric Blake [Tue, 29 Jul 2008 18:21:25 +0000 (12:21 -0600)] 
Optimize m4_for.

* lib/m4sugar/m4sugar.m4 (m4_for): Use fewer macros.
(_m4_for): Take additional parameter, for fewer m4_indir calls.
* lib/m4sugar/foreach.m4 (_m4_foreach, _m4_shiftn, m4_do)
(m4_reverse, _m4_list_pad, _m4_list_cmp): Adjust all callers.
* doc/autoconf.texi (Looping constructs) <m4_for>: Document subtle
semantic change caused by the optimization.
* tests/m4sugar.at (M4 loops): Test the new semantics.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOne more m4_list_cmp tweak.
Eric Blake [Tue, 29 Jul 2008 14:28:01 +0000 (08:28 -0600)] 
One more m4_list_cmp tweak.

* lib/m4sugar/m4sugar.m4 (_m4_list_cmp_1): Don't defer shift.
* lib/m4sugar/foreach.m4 (m4_list_cmp): Fix comment.
* tests/m4sugar.at (recursion): Test both directions of list
disparity.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd m4_reverse, and improve m4_list_cmp.
Eric Blake [Tue, 29 Jul 2008 13:12:26 +0000 (07:12 -0600)] 
Add m4_reverse, and improve m4_list_cmp.

* lib/m4sugar/m4sugar.m4 (m4_reverse): New macro.
(m4_list_cmp): Rewrite to give linear behavior with M4 1.6 on an
m4_reverse'd list.
* lib/m4sugar/foreach.m4 (m4_reverse): Add the M4 1.4.x
counterpart.
* tests/m4sugar.at (recursion): Test it.
* doc/autoconf.texi (Evaluation Macros) <m4_reverse>: Document
it.
(Text processing Macros) <m4_append>: Cross-reference to m4_set.
* NEWS: Mention new macro.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid _m4_shiftn for m4 1.6 speedup.
Eric Blake [Mon, 28 Jul 2008 17:24:03 +0000 (11:24 -0600)] 
Avoid _m4_shiftn for m4 1.6 speedup.

* lib/m4sugar/m4sugar.m4 (m4_foreach, _m4_foreach, m4_map)
(_m4_map, m4_map_sep): Rewrite recursion to use one less m4_if.
* lib/m4sugar/foreach.m4 (_m4_map): Accomodate changed signature.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImplement O(n) unique element set creation.
Eric Blake [Mon, 28 Jul 2008 12:35:34 +0000 (06:35 -0600)] 
Implement O(n) unique element set creation.

* lib/m4sugar/m4sugar.m4 (m4_set_add, m4_set_add_all)
(m4_set_contains, m4_set_contents, m4_set_delete)
(m4_set_difference, m4_set_dump, m4_set_empty, m4_set_foreach)
(m4_set_intersection, m4_set_list, m4_set_listc, m4_set_remove)
(m4_set_size, m4_set_union): New macros.
* lib/m4sugar/foreach.m4 (m4_set_add_all): Add O(n) fallback for
m4 1.4.x.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, AC_SUBST): Use
new m4_set API for the set most likely to be large.
* doc/autoconf.texi (Set manipulation Macros): New node.
* NEWS: Mention new macros.
* tests/m4sugar.at (m4@&t@_set): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid infinite aclocal loop.
Eric Blake [Sat, 26 Jul 2008 03:13:23 +0000 (21:13 -0600)] 
Avoid infinite aclocal loop.

* lib/m4sugar/m4sugar.m4 (m4_init): Bypass m4_include tracing, so
that aclocal doesn't insist on finding m4sugar/foreach.m4.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoProvide O(n) replacement macros for M4 1.4.x.
Eric Blake [Fri, 25 Jul 2008 21:17:38 +0000 (15:17 -0600)] 
Provide O(n) replacement macros for M4 1.4.x.

* lib/m4sugar/foreach.m4: New file.
(m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
(m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
linear on 1.4.x].
* lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
older M4 is assumed.
(m4_map_sep): Optimize.
(m4_max, m4_min): Refactor, by adding...
(_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
(m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
* lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
file.
* tests/m4sugar.at (M4 loops): Add a stress test that takes
forever if m4_foreach and friends are quadratic.
* NEWS: Mention this.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoPart two of GNUmakefile sync.
Eric Blake [Tue, 22 Jul 2008 03:49:58 +0000 (21:49 -0600)] 
Part two of GNUmakefile sync.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoIgnore undefined macros, necessary with m4 1.6.
Eric Blake [Mon, 21 Jul 2008 22:41:10 +0000 (16:41 -0600)] 
Ignore undefined macros, necessary with m4 1.6.

* bin/autoupdate.in (_au___undefine): New macro,...
(_au__undefine): ...wrapped by ifdef to silence m4 warnings.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoResync with gnulib.
Eric Blake [Mon, 21 Jul 2008 21:38:40 +0000 (15:38 -0600)] 
Resync with gnulib.

* GNUmakefile: Grab from upstream, to fix issue where 'make
install' would allow installation of stale version string.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSupport multiple arguments to m4_defn, m4_popdef, and m4_undefine.
Eric Blake [Fri, 18 Jul 2008 20:26:41 +0000 (14:26 -0600)] 
Support multiple arguments to m4_defn, m4_popdef, and m4_undefine.

* lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Loop
through all variables, per POSIX and newer m4.
(_m4_text_wrap): Exploit the looping capabilities.
* tests/m4sugar.at (m4@&t@_defn): Test this.
* NEWS: Document it.
* doc/autoconf.texi (Redefined M4 Macros) <m4_defn, m4_popdef>
<m4_undefine>: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoReduce overhead of m4_builtin([defn]).
Eric Blake [Sat, 19 Jul 2008 16:53:10 +0000 (10:53 -0600)] 
Reduce overhead of m4_builtin([defn]).

* lib/m4sugar/m4sugar.m4 (_m4_defn, _m4_popdef, _m4_undefine): New
internal macros, which are slightly more efficient than
m4_builtin([defn]) and company.
(m4_defn, m4_popdef, m4_undefine, m4_warn, m4_ifset)
(_m4_dumpdefs_up, _m4_dumpdefs_down, _m4_wrap, m4_for)
(_m4_divert_n_stack, m4_divert_pop, m4_expansion_stack_push)
(m4_expansion_stack_dump, _m4_defun_pro, _m4_defun_epi)
(_m4_defun_epi_outer, _m4_require_call, m4_combine, m4_append)
(_m4_append_uniq, m4_append_uniq_w, _m4_text_wrap, m4_text_box)
(m4_version_prereq): Use them.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoUse warnings from m4 when available.
Eric Blake [Fri, 18 Jul 2008 18:05:43 +0000 (12:05 -0600)] 
Use warnings from m4 when available.

* lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Don't
define slower wrapper if m4 will warn on our behalf; key off of
__m4_version__, added alongside the new warnings in m4 1.6.
* tests/m4sugar.at (m4@&t@_defn): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd m4_joinall.
Eric Blake [Fri, 18 Jul 2008 14:30:07 +0000 (08:30 -0600)] 
Add m4_joinall.

* lib/m4sugar/m4sugar.m4 (m4_joinall, _m4_joinall): New macros.
* tests/m4sugar.at (m4@&t@_join): Test them.
* doc/autoconf.texi (Text processing Macros) <m4_join>: Document
m4_joinall.
* NEWS: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove documentation of config.h.in template rules.
Stepan Kasal [Fri, 18 Jul 2008 00:55:51 +0000 (18:55 -0600)] 
Improve documentation of config.h.in template rules.

* doc/autoconf.texi (Header Templates): Mention rules on comments
and whitespace, and that the user cannot rely on #undef to survive
through config.status.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoRevert m4_prepend; it is less efficient, and unused by bison.
Eric Blake [Wed, 16 Jul 2008 20:40:48 +0000 (14:40 -0600)] 
Revert m4_prepend; it is less efficient, and unused by bison.

* lib/m4sugar/m4sugar.m4 (m4_prepend, m4_prepend_uniq)
(m4_prepend_uniq_w): Delete addition from 2008-07-11.
(_m4_grow_uniq_1): Rename back...
(_m4_append_uniq): ...to this.
* NEWS: Revert NEWS blurb.
* doc/autoconf.texi (Text processing Macros) <m4_prepend>: Delete.
* tests/m4sugar.at (m4@&t@_prepend): Delete.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid failure if version.m4 is omitted but m4_PACKAGE_* unused.
Eric Blake [Tue, 15 Jul 2008 20:53:21 +0000 (14:53 -0600)] 
Avoid failure if version.m4 is omitted but m4_PACKAGE_* unused.

* lib/m4sugar/m4sugar.m4 (m4_version_compare): Provide alternate
definition for non-Autoconf clients of m4sugar.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoTighten bound of potential speed of m4_append.
Eric Blake [Mon, 14 Jul 2008 16:13:28 +0000 (10:13 -0600)] 
Tighten bound of potential speed of m4_append.

* doc/autoconf.texi (Text processing Macros) <m4_append>
<m4_prepend>: If m4 is fixed, m4_append can be linear rather than
O(n log n).
* lib/m4sugar/m4sugar.m4 (m4_append, m4_append_uniq): Fix comments.
Analysis by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoInherit improvements from bison's fork of m4sugar.
Eric Blake [Fri, 11 Jul 2008 17:14:46 +0000 (11:14 -0600)] 
Inherit improvements from bison's fork of m4sugar.

* lib/m4sugar/m4sugar.m4 (m4_PACKAGE_VERSION): Ignore failure to
find version.texi, since bison does not provide it.
(m4_prepend): Add new macro, from bison.
(m4_prepend_uniq, m4_prepend_uniq_w): Add new macros, for
completeness.
(_m4_append_uniq): Rename...
(_m4_grow_uniq_1): ...to this to share implementation, and
optimize initial assignment.
(m4_append_uniq_w): Adjust caller.
* NEWS: Document new macros.
* doc/autoconf.texi (Text processing Macros) <m4_append>: Mention
speed consideration.
<m4_prepend>: Document the new prepend variants.
* tests/m4sugar.at (m4@&t@_prepend): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWork around M4 1.6 warning on undefined macros.
Eric Blake [Fri, 11 Jul 2008 14:55:15 +0000 (08:55 -0600)] 
Work around M4 1.6 warning on undefined macros.

* lib/m4sugar/m4sugar.m4 (changeword, symbols): Don't rename if
not already available as builtins.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix texinfo macros @dvar, @ovar.
Ralf Wildenhues [Sun, 6 Jul 2008 08:55:00 +0000 (10:55 +0200)] 
Fix texinfo macros @dvar, @ovar.

* doc/autoconf.texi (@dvar): Remove trailing newline.
(@ovar): Likewise.  Fix macro documentation.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoAdd quotes to the header of autoscan-generated source.
Stepan Kasal [Wed, 2 Jul 2008 13:38:24 +0000 (15:38 +0200)] 
Add quotes to the header of autoscan-generated source.

* bin/autoscan.in: Add quotes to AC_PREREQ and AC_INIT.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
17 years agoReplace @item with @itemx where appropriate.
Andreas Schwab [Sat, 28 Jun 2008 09:30:16 +0000 (11:30 +0200)] 
Replace @item with @itemx where appropriate.

* doc/autoconf.texi (autoscan Invocation): Fix spacing.
(autoconf Invocation): Likewise.
(autoreconf Invocation): Likewise.
(autoheader Invocation): Likewise.
(autom4te Invocation): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoAdd comment explaining recent patch.
Eric Blake [Thu, 19 Jun 2008 13:02:20 +0000 (07:02 -0600)] 
Add comment explaining recent patch.

* lib/autotest/general.m4 (AT_INIT) <at_pass_list>: Explain choice
of * vs. ? globbing.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoconfig.status should not warn when it does not link.
Ralf Wildenhues [Thu, 19 Jun 2008 05:55:16 +0000 (07:55 +0200)] 
config.status should not warn when it does not link.

* lib/autoconf/status.m4 (_AC_OUTPUT_LINK): Do not warn when not
linking a file to itself.
Report by Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoResync with gnulib.
Eric Blake [Thu, 19 Jun 2008 05:10:59 +0000 (23:10 -0600)] 
Resync with gnulib.

* GNUmakefile: Grab from upstream, to fix VPATH 'make dist' bug.
Reported by Stepan Kasal.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoReorganize autotest files, factorize for parallel execution.
Ralf Wildenhues [Wed, 18 Jun 2008 19:22:36 +0000 (21:22 +0200)] 
Reorganize autotest files, factorize for parallel execution.

* lib/autotest/general.m4 (AS_MESSAGE_LOG_FD): Move definition
earlier in the file.
(AT_INIT): Create line number cache in
$at_suite_dir/at-source-lines.
<at_helper_dir>: New directory at-groups below $at_suite_dir.
Add comment explaining the new directory structure.
(at_func_group_prepare, at_func_group_postprocess): New shell
functions to factorize per-test group work.  Keep the actual
test execution outside of a shell function in order to avoid
zsh 4.x exit status bugs.
<at_check_line_file, at_status_file, at_stdout, at_stder1>
<at_stderr, at_test_source>: Turn these into per-group files
below $at_helper_dir.  Also store test results there in files
named pass, fail, xpass, xfail, skip.  Let the parent collect
results from $at_helper_dir.  Adjust summary statistics
computation and result output.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoFix '#undef variable /* comment */' transform in config headers.
Ralf Wildenhues [Tue, 17 Jun 2008 06:42:14 +0000 (08:42 +0200)] 
Fix '#undef variable /* comment */' transform in config headers.

* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): For
undefined preprocessor macros that are followed by a comment
in the header template, do not create nested comments in the
output.
* tests/torture.at (@%:@define header templates): Extend test.
* NEWS: Update.
Report by Karsten Hopp <karsten@redhat.com>.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoMark AC_TYPE_SIGNAL as obsolete in NEWS, too.
Eric Blake [Mon, 9 Jun 2008 12:30:17 +0000 (06:30 -0600)] 
Mark AC_TYPE_SIGNAL as obsolete in NEWS, too.

* NEWS: Mention the change.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMark AC_TYPE_SIGNAL as obsolete.
Eric Blake [Mon, 9 Jun 2008 12:25:35 +0000 (06:25 -0600)] 
Mark AC_TYPE_SIGNAL as obsolete.

* lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
* doc/autoconf.texi (Function Portability): Update documentation.
(Particular Types): Move AC_TYPE_SIGNAL...
(Obsolete Macros): ...here, and mention why.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAllow lib64 as a default X library location.
Eric Blake [Mon, 9 Jun 2008 12:19:17 +0000 (06:19 -0600)] 
Allow lib64 as a default X library location.

* lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
* NEWS: Mention the change.
* THANKS: Update.
Reported by Brad Walker.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd URL to previous commit.
Eric Blake [Fri, 6 Jun 2008 14:00:07 +0000 (08:00 -0600)] 
Add URL to previous commit.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
Eric Blake [Thu, 5 Jun 2008 21:18:11 +0000 (15:18 -0600)] 
Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.

* lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
converting it to lower case.
* tests/autotest.at (Keywords and ranges): Test this.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Karsten Hopp.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix 'make dist' regression from 2008-05-08.
Eric Blake [Tue, 3 Jun 2008 19:24:37 +0000 (13:24 -0600)] 
Fix 'make dist' regression from 2008-05-08.

* Makefile.am (INSTALL): Add rule, to accomodate 'make dist' after
GNUmakefile's _autoconf rule removes INSTALL.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDocument Solaris /bin/sh redirection pitfall.
Eric Blake [Tue, 27 May 2008 17:07:01 +0000 (11:07 -0600)] 
Document Solaris /bin/sh redirection pitfall.

* doc/autoconf.texi (File Descriptors): Mention redirection bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove documentation of ! issues.
Eric Blake [Wed, 14 May 2008 19:41:18 +0000 (13:41 -0600)] 
Improve documentation of ! issues.

* doc/autoconf.texi (Limitations of Builtins) <!>: Touch up.
Reported by Noah Misch.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDocument some FreeBSD shell bugs.
Eric Blake [Wed, 14 May 2008 14:25:01 +0000 (08:25 -0600)] 
Document some FreeBSD shell bugs.

* doc/autoconf.texi (Limitations of Builtins) <!>: Mention ! issue
in compound pipe commands.
<export>: Mention difference of exporting an undefined variable.
(Shell Functions): Mention loss of $? in entry to shell functions.
Extracted from the git mailing list.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWork around MSYS and Cygwin bugs when dealing with trailing space.
Stepan Kasal [Tue, 13 May 2008 19:40:55 +0000 (13:40 -0600)] 
Work around MSYS and Cygwin bugs when dealing with trailing space.

* tests/atlocal.in (func_sanitize_dir_name): Let atlocal succeed,
even when platform bugs are tickled.
Reported by Keith Marshall and Eric Blake.

17 years agoLet AC_MSG_FAILURE report pwd.
Ralf Wildenhues [Tue, 6 May 2008 20:41:54 +0000 (22:41 +0200)] 
Let AC_MSG_FAILURE report pwd.

* lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE):
Output $ac_pwd along with fatal failure.
* tests/torture.at (Deep Package): Extend test.
Reported numerous times against GCC, and probably other packages.

17 years agoEnforce --help and --version compliance.
Eric Blake [Wed, 7 May 2008 15:00:16 +0000 (09:00 -0600)] 
Enforce --help and --version compliance.

* configure.ac (AM_INIT_AUTOMAKE): Add std-options option.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid case-insensitive `make install' vs. `INSTALL' conflict.
Keith Marshall [Mon, 12 May 2008 12:41:51 +0000 (06:41 -0600)] 
Avoid case-insensitive `make install' vs. `INSTALL' conflict.

* Makefile.am ($(srcdir)/INSTALL): Replace all references...
($(abs_srcdir)/INSTALL): ...with this.

17 years agoFix typo.
Eric Blake [Tue, 6 May 2008 15:57:48 +0000 (09:57 -0600)] 
Fix typo.

* doc/autoconf.texi (Shell Substitutions): Drop at_ prefix.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid overfull \hbox.
Eric Blake [Tue, 6 May 2008 15:33:11 +0000 (09:33 -0600)] 
Avoid overfull \hbox.

* doc/autoconf.texi (Versioning): Reword to fit line size.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDocument $(( )) pitfalls.
Eric Blake [Tue, 6 May 2008 15:31:55 +0000 (09:31 -0600)] 
Document $(( )) pitfalls.

* doc/autoconf.texi (Shell Substitutions): Mention octal
vs. decimal.  Mention autotest's at_func_arith.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove behavior of './testsuite 01'.
Eric Blake [Tue, 6 May 2008 12:17:41 +0000 (06:17 -0600)] 
Improve behavior of './testsuite 01'.

* lib/autotest/general.m4 (AT_INIT) <at_func_validate_ranges>:
Alter usage to eval its arguments, in order to normalize away
leading zero.  All callers updated.
* tests/autotest.at (Keywords and ranges): Test range
normalization with leading 0.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMention Solaris /usr/ucb/tr pitfall.
Eric Blake [Sat, 26 Apr 2008 12:32:19 +0000 (06:32 -0600)] 
Mention Solaris /usr/ucb/tr pitfall.

* doc/autoconf.texi (Limitations of Usual Tools) <tr>: Add section.
Reported by Bruno Haible and Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>