]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
16 years agoDisable asynchronous job notification for parallel tests.
Eric Blake [Mon, 13 Jul 2009 18:54:19 +0000 (12:54 -0600)] 
Disable asynchronous job notification for parallel tests.

* lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
mode, since zsh leaves it on after 'emulate sh'.
* doc/autoconf.texi (Limitations of Builtins) <set>: Document that
job control options are not portable.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoGuarantee that exit status trumps output matching.
Eric Blake [Tue, 14 Jul 2009 04:03:27 +0000 (22:03 -0600)] 
Guarantee that exit status trumps output matching.

* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
better.
* tests/autotest.at (Skip, parallel skip): Enhance tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix nits in recent patches.
Eric Blake [Tue, 14 Jul 2009 03:34:49 +0000 (21:34 -0600)] 
Fix nits in recent patches.

* configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
zsh.
* doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
Tweak wording.
(Introduction): Recommend m4 1.4.13.
* README: Likewise.
* m4/m4.m4 (AC_PROG_GNU_M4): Likewise.  Use long option --gnu
rather than -g.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agointroduce AT_SKIP_IF and AT_FAIL_IF
Paolo Bonzini [Sun, 12 Jul 2009 10:22:39 +0000 (12:22 +0200)] 
introduce AT_SKIP_IF and AT_FAIL_IF

* NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
* doc/autoconf.texi (Autotest): Document them.
* lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
AT_FAIL_IF, _AT_CHECK_EXIT): New.
(AT_CHECK): Use _AT_LINE_ESCAPED.
* tests/autotest.st: Add tests for AT_SKIP_IF and AT_FAIL_IF.
Use AT_SKIP_IF.
* tests/local.st: Use AT_SKIP_IF.

16 years agouse m4 -g when available
Paolo Bonzini [Sun, 12 Jul 2009 11:50:24 +0000 (13:50 +0200)] 
use m4 -g when available

M4sugar requires GNU m4 extensions to be enabled.  Override
POSIXLY_CORRECT using -g.

* m4/m4.m4: Unset POSIXLY_CORRECT during first test.  Test for -g.
Warn user if he has POSIXLY_CORRECT set but -g is not supported.
* bin/Makefile.am: Substitute @M4_GNU@ into generated files.
* bin/autom4te.in: Pass @M4_GNU@ to m4.

16 years agoFix previous patch.
Eric Blake [Mon, 13 Jul 2009 15:16:06 +0000 (09:16 -0600)] 
Fix previous patch.

* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
proper m4 quoting.
(_AT_DECIDE_TRACEABLE): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSimplify handling of autotest tracing
Paolo Bonzini [Sun, 12 Jul 2009 10:58:36 +0000 (12:58 +0200)] 
Simplify handling of autotest tracing

* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
$at_trace_echo.  Add new REASON argument.
(at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
Use $at_check_filter_trace.
(at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
(at_traceon): Initialize to ':'.
(at_traceoff): Remove, use 'set +x' instead throughout.
(at_check_filter_trace, at_trace_echo): New shell variables.
Initialize them if tracing is requested.
(_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.

16 years agoMove atlocal feature tests to configure
Paolo Bonzini [Sun, 12 Jul 2009 09:28:57 +0000 (11:28 +0200)] 
Move atlocal feature tests to configure

This test makes atlocal code use configure tests instead.  This
is best practice and could make diagnosing autoconf bugs easier.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Test for unsupported characters in files and
directories here...
* tests/atlocal.in: ... and not here.

16 years agorevert previous push
Paolo Bonzini [Mon, 13 Jul 2009 11:39:25 +0000 (13:39 +0200)] 
revert previous push

16 years agouse m4 -g when available
Paolo Bonzini [Sun, 12 Jul 2009 11:50:24 +0000 (13:50 +0200)] 
use m4 -g when available

M4sugar requires GNU m4 extensions to be enabled.  Override
POSIXLY_CORRECT using -g.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* m4/m4.m4: Test for -g.
* bin/Makefile.am: Substitute @M4_GNU@ into generated files.
* bin/autom4te.in: Pass @M4_GNU@ to m4.

16 years agoSimplify handling of autotest tracing
Paolo Bonzini [Sun, 12 Jul 2009 10:58:36 +0000 (12:58 +0200)] 
Simplify handling of autotest tracing

This patch simplifies at_fn_check_prepare_trace by noting that it
need not call at_fn_check_prepare_notrace.  Instead we can make
$at_traceon be ':' or 'set -x' instead of being empty when tracing
is disabled.

A similar approach is used for other variables set by
at_fn_check_prepare_trace and to conditionalize the message
about disabling tracing in at_fn_check_prepare_dynamic.

In addition, I changed $at_traceoff to 'set +x' throughout and
eliminated the variable.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
$at_trace_echo.  Add new REASON argument.
(at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
Use $at_check_filter_trace.
(at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
(at_traceon): Initialize to ':'.
(at_traceoff): Remove, use 'set -x' instead throughout.
(at_check_filter_trace, at_trace_echo): New shell variables.
Initialize them if tracing is requested.
(_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.

16 years agointroduce AT_SKIP_IF and AT_FAIL_IF
Paolo Bonzini [Sun, 12 Jul 2009 10:22:39 +0000 (12:22 +0200)] 
introduce AT_SKIP_IF and AT_FAIL_IF

These are lightweight versions of AT_CHECK that automatically
add the equivalent of ! in front of the command and change a
failure exit status to 77 resp. 99.  They expand to just
two lines of shell code at the expense of not supporting
tracing (but then so does AT_XFAIL_IF).

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
* doc/autoconf.texi (Autotest): Document them.
* lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
AT_FAIL_IF, _AT_CHECK_EXIT): New.
(AT_CHECK): Use _AT_LINE_ESCAPED.
* tests/autotest.st: Add tests for AT_SKIP_IF and AT_FAIL_IF.
Use AT_SKIP_IF.
* tests/local.st: Use AT_SKIP_IF.

16 years agoMove atlocal code to configure
Paolo Bonzini [Sun, 12 Jul 2009 09:28:57 +0000 (11:28 +0200)] 
Move atlocal code to configure

This test makes atlocal code use configure tests instead.  This
is best practice and could make diagnosing autoconf bugs easier.

2009-07-12  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Test for unsupported characters in files and
directories here...
* tests/atlocal.in: ... and not here.

16 years agoFix test typo.
Eric Blake [Wed, 8 Jul 2009 20:43:13 +0000 (14:43 -0600)] 
Fix test typo.

* tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
creating file named -.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix testsuite under dash.
Eric Blake [Wed, 8 Jul 2009 20:35:07 +0000 (14:35 -0600)] 
Fix testsuite under dash.

* tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
(AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
(AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
(Functions Support, Functions and return Support)
(Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
(AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
(AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
(AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
(AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
(_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
options during the testsuite run.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoIgnore messages on stderr when testing for the zsh issue.
Ralf Wildenhues [Thu, 9 Jul 2009 06:19:21 +0000 (08:19 +0200)] 
Ignore messages on stderr when testing for the zsh issue.

* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoSkip parallel tests when zsh 'set -m' fails.
Eric Blake [Wed, 8 Jul 2009 05:01:23 +0000 (23:01 -0600)] 
Skip parallel tests when zsh 'set -m' fails.

* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
is not supported.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake parallel testsuite more portable.
Eric Blake [Tue, 7 Jul 2009 12:58:18 +0000 (06:58 -0600)] 
Make parallel testsuite more portable.

* lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
instead open write descriptor in each group and read descriptor in
main driver.
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid syntax error in ash.
Eric Blake [Thu, 2 Jul 2009 17:32:39 +0000 (11:32 -0600)] 
Avoid syntax error in ash.

* lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
errors on shells that don't recognize <>.
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
tests for this reason.   Skip based on the shell to be tested,
not the shell driving the testsuite.
(parallel syntax error): Rearrange similar to previous patch.
(parallel test execution): Defer skip until after serial tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSkip test on shells that can't catch syntax failure.
Eric Blake [Thu, 2 Jul 2009 13:17:43 +0000 (07:17 -0600)] 
Skip test on shells that can't catch syntax failure.

* tests/autotest.at (Syntax error): Skip test if shell aborts on
syntax error (AIX ksh88) or doesn't detect it (zsh).
* doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
limitations.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid AIX 6.1 ksh88 ECHO_C command substitution bug.
Jan Madzik [Tue, 30 Jun 2009 06:06:24 +0000 (08:06 +0200)] 
Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.

* lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
one character is output with `\c'; reset echo output state
if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
* doc/autoconf.texi (Limitations of Builtins): Document it.
* tests/m4sh.at (ECHO_C): New test.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix grammaro in documenation.
William Pursell [Sat, 27 Jun 2009 10:23:58 +0000 (12:23 +0200)] 
Fix grammaro in documenation.

* doc/autoconf.texi (Guidelines): Fix grammaro.

16 years agoFix AC_CHECK_HEADER infloop for gcc.
Eric Blake [Wed, 17 Jun 2009 12:26:48 +0000 (06:26 -0600)] 
Fix AC_CHECK_HEADER infloop for gcc.

* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
(_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
about obsoletion, to avoid infinite loop in gcc.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd m4_copy_force, m4_rename_force.
Eric Blake [Mon, 15 Jun 2009 12:49:58 +0000 (06:49 -0600)] 
Add m4_copy_force, m4_rename_force.

* lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
macros.
* tests/m4sugar.at (m4@&t@_defn): Test them.
* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
them.
* NEWS: Likewise.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoReinstate _AC_CHECK_HEADER_OLD for gcc.
Eric Blake [Mon, 15 Jun 2009 12:21:06 +0000 (06:21 -0600)] 
Reinstate _AC_CHECK_HEADER_OLD for gcc.

* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
(_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
others used these undocumented macros.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix concurrent autom4te.cache directory creation race.
Ralf Wildenhues [Fri, 12 Jun 2009 11:38:57 +0000 (13:38 +0200)] 
Fix concurrent autom4te.cache directory creation race.

* bin/autom4te.in: Do not error out if another `autom4te'
instance created the cache directory before we could.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoCreate a file in test program when detecting cross-compilation.
Steven G. Johnson [Thu, 11 Jun 2009 13:07:32 +0000 (07:07 -0600)] 
Create a file in test program when detecting cross-compilation.

* lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
program that creates a file.
(_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
and document why it's needed to robustly detect cross-compiling.
(AC_LANG_DEFINE): Copy implementation across similar languages.
* lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
* lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
Likewise.
* lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSimplify AC_LANG(Fortran).
Eric Blake [Thu, 11 Jun 2009 12:59:57 +0000 (06:59 -0600)] 
Simplify AC_LANG(Fortran).

* lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
77, which requires reordering portions of the file.
(AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
automatically.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoClarify m4_copy semantics.
Eric Blake [Thu, 11 Jun 2009 12:43:39 +0000 (06:43 -0600)] 
Clarify m4_copy semantics.

* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
documentation.
* tests/m4sugar.at (m4@&t@_defn): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove documentation on trap pitfalls.
Eric Blake [Sun, 7 Jun 2009 04:03:16 +0000 (22:03 -0600)] 
Improve documentation on trap pitfalls.

* doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
Posix 2008 requirement on trap, and dash bug in implementing it.
Mention various shell bugs with traps defined inside subshells.
Mention older bash limitation with single-command exit trap.
<set>: Mention another 'set -e' limitation.
Reported by Jens Schmidt.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove testsuite's --help output.
Jim Meyering [Wed, 10 Dec 2008 08:57:30 +0000 (09:57 +0100)] 
Improve testsuite's --help output.

* lib/autotest/general.m4: Correct the example in ./testsuite --help.
Improve wording.

16 years agoDocument fallback behavior of AC_PROG_LEX.
Eric Blake [Sat, 6 Jun 2009 16:38:23 +0000 (10:38 -0600)] 
Document fallback behavior of AC_PROG_LEX.

* doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
why fallback is :, and that a --version check must be used to
determine whether flex was found.
Reported by Patrick Welche.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix syntax errors in autoconf.texi.
Jim Meyering [Thu, 28 May 2009 17:08:20 +0000 (19:08 +0200)] 
Fix syntax errors in autoconf.texi.

* doc/autoconf.texi (Erlang Libraries): @-escape curly braces
in example code.

16 years agoNew AC_ERLANG_SUBST_ERTS_VER macro.
Romain Lenglet [Thu, 28 May 2009 11:14:07 +0000 (20:14 +0900)] 
New AC_ERLANG_SUBST_ERTS_VER macro.

* lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
* doc/autoconf.texi (Erlang Libraries): Document
AC_ERLANG_SUBST_ERTS_VER.
* NEWS: Likewise.
* AUTHORS: Update Romain Lenglet's email address.
* THANKS: Update.
Suggested by Ruslan Babayev.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSanitize more problematic environment variables.
Eric Blake [Mon, 4 May 2009 17:00:30 +0000 (11:00 -0600)] 
Sanitize more problematic environment variables.

* doc/autoconf.texi (Environment Variable Index): Add more
entries, particularly for precious variables and known culprit
variables.  Needed to avoid overfull vbox.
(Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
variables known to cause misbehavior.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
known to cause problems.
* THANKS: Update.
Based on reports from Ilya Bobir and Joey Mingrone.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument VPATH = $(variable) issue in VPATH chapter.
Ralf Wildenhues [Thu, 21 May 2009 12:18:39 +0000 (14:18 +0200)] 
Document VPATH = $(variable) issue in VPATH chapter.

* doc/autoconf.texi (Variables listed in VPATH): New node.
(Top, VPATH and Make): Adjust menus.
(Build Directories): Refer to it.
Prompted by report from Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoUpdate uses of all-permissive license.
Eric Blake [Mon, 4 May 2009 15:41:41 +0000 (09:41 -0600)] 
Update uses of all-permissive license.

* ChangeLog: Relicense under GPL.
* ChangeLog.0: Likewise.
* ChangeLog.1: Likewise.
* ChangeLog.2: Likewise.
* THANKS: Likewise.
* m4/m4.m4: Use latest wording of FSF all-permissive license.
* m4/make-case.m4: Likewise.
* doc/install.texi: Likewise.
* tests/statesave.m4: Relicense to match rest of testsuite; this
file does not need all-permissive license since it is not designed
for reuse by other packages.
* BUGS: Relicense under all-permissive license.
* HACKING: Likewise.
* NEWS: Likewise.
* README: Likewise.
* README-alpha: Likewise.
* README-hacking: Likewise.
* TODO: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUpdate some upstream files.
Eric Blake [Mon, 4 May 2009 15:41:04 +0000 (09:41 -0600)] 
Update some upstream files.

* build-aux/config.guess: Resynchronize from upstream.
* build-aux/gnupload: Likewise.
* build-aux/vc-list-files: Likewise.
* build-aux/texinfo.tex: Likewise.
* doc/gendocs_template: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDon't mention undocumented interface in NEWS.
Eric Blake [Tue, 19 May 2009 16:45:08 +0000 (10:45 -0600)] 
Don't mention undocumented interface in NEWS.

* NEWS: Correct earlier entry about AS_FOR.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoNew manual section `Parallel Make'.
Ralf Wildenhues [Sun, 17 May 2009 09:49:44 +0000 (11:49 +0200)] 
New manual section `Parallel Make'.

* doc/autoconf.texi (Parallel Make): New node, document NetBSD
`make -jN' quirks.
(Top, Portable Make): Adjust menus.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agotestsuite: skip `Multiple languages' test without C++ compiler.
Ralf Wildenhues [Thu, 14 May 2009 05:20:58 +0000 (07:20 +0200)] 
testsuite: skip `Multiple languages' test without C++ compiler.

* tests/compile.at (Multiple languages): Skip test on systems
without a C++ compiler.
Report by Jim Meyering.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDocument zsh bug with empty commands.
Eric Blake [Mon, 4 May 2009 16:30:16 +0000 (10:30 -0600)] 
Document zsh bug with empty commands.

* doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
more problems with $?.

16 years agoAlso try X11R7 when looking for X11 files, for NetBSD.
Patrick Welche [Mon, 11 May 2009 18:34:09 +0000 (20:34 +0200)] 
Also try X11R7 when looking for X11 files, for NetBSD.

* lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
with X11R7 in the name.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoLimit stderr logging for C compiler version.
Ralf Wildenhues [Mon, 27 Apr 2009 19:38:40 +0000 (21:38 +0200)] 
Limit stderr logging for C compiler version.

* lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
an optional additional argument to limit the number of lines of
stderr output logged, defaulting to 10.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
_AC_DO_LIMIT for capturing compiler version output.  Also test
-qversion, for the IBM xlc compiler.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* THANKS: Update.
Report by Christian Rössel and John R. Cary against Libtool.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix quoting of m4 macros in AT_CHECK.
Eric Blake [Thu, 23 Apr 2009 04:06:04 +0000 (22:06 -0600)] 
Fix quoting of m4 macros in AT_CHECK.

* lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
escapes, to avoid shell syntax errors caused by late macro
expansion.
* NEWS: Document this change.
* tests/autotest.at (Metacharacters in command from M4 expansion):
New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agomanual: Use consistent spelling of here-document.
Eric Blake [Fri, 24 Apr 2009 14:50:39 +0000 (08:50 -0600)] 
manual: Use consistent spelling of here-document.

* doc/autoconf.texi (Defining Symbols, Programming in M4sh)
(Common Shell Constructs, Macro Names, Writing Testsuites): Fix
spelling.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
Eric Blake [Fri, 24 Apr 2009 14:46:59 +0000 (08:46 -0600)] 
Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.

* lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
undocumented semantics, where unbalanced " cannot be used in the
stdout/stderr argument.
(AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
the text is used in double-quoted context.
* tests/autotest.at (unquoted output): New test.
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
shell expansions are handled.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
Eric Blake [Wed, 22 Apr 2009 23:14:13 +0000 (17:14 -0600)] 
Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.

* lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
of new spelling...
(AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
rename.
* NEWS: Likewise.
* tests/autotest.at (Binary output, Cleanup): Adjust tests.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Likewise.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoNew test to ensure autom4te cache file locking works.
Ralf Wildenhues [Wed, 22 Apr 2009 19:05:57 +0000 (21:05 +0200)] 
New test to ensure autom4te cache file locking works.

* tests/tools.at (autom4te cache locking): New test.
Report by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agomanual: another grammar improvement.
Paolo Bonzini [Wed, 22 Apr 2009 18:27:06 +0000 (20:27 +0200)] 
manual: another grammar improvement.

* doc/autoconf.texi (Fortran Compiler): Avoid dependency on
pronunciation of `FCFLAGS_f90'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoChange FOO placeholder to use @var{text} instead.
Eric Blake [Wed, 22 Apr 2009 22:53:19 +0000 (16:53 -0600)] 
Change FOO placeholder to use @var{text} instead.

* doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
to AC_CONFIG_@var{ITEMS}.
* doc/autoconf.texi (config.status Invocation): Likewise.
(AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
(AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd m4_argn.
Eric Blake [Wed, 22 Apr 2009 16:43:51 +0000 (10:43 -0600)] 
Add m4_argn.

* lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
* NEWS: Document it.
* doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
<m4_car, m4_cdr>: Improve documentation.
* tests/m4sugar.at (m4 lists): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
Ralf Wildenhues [Wed, 22 Apr 2009 05:35:12 +0000 (07:35 +0200)] 
Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.

* doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
and AC_PROG_CC_C99 prefer extended over strict conformance modes.
Report by Vincent Lefèvre.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoRevert bogus change in last commit.
Ralf Wildenhues [Tue, 21 Apr 2009 20:57:15 +0000 (22:57 +0200)] 
Revert bogus change in last commit.

* doc/autoconf.texi (Initialization Macros): Revert change.
Spotted by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agomanual: fix trivial grammar errors.
Ralf Wildenhues [Tue, 21 Apr 2009 19:43:36 +0000 (21:43 +0200)] 
manual: fix trivial grammar errors.

* doc/autoconf.texi (Fortran Compiler, Initialization Macros)
(Limitations of Usual Tools, Pretty Help Strings)
(config.status Invocation): Fix `a' vs. `an' errors.
Report by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoShuffle maintainer-specific rules.
Eric Blake [Tue, 21 Apr 2009 12:41:24 +0000 (06:41 -0600)] 
Shuffle maintainer-specific rules.

* Makefile.am (maintainer-check-tests): Delete.
(autom4te-update): Move...
* cfg.mk (autom4te-update): ...here.
(fetch): Depend on autom4te-update.  Split...
(gnulib-update): ...into new rule.  Import move-if-change from
gnulib.
* maint.mk (maintainer-distcheck): Absorb former maintainer-check
rule.
* build-aux/move-if-change: New file, undistributed.
* .gitattributes: Handle new upstream file.
* .gitignore: Ignore maintainer cruft.
* HACKING: Update maintainer instructions.
* build-aux/config.guess: Update from upstream.
* build-aux/config.sub: Likewise.
* build-aux/gendocs.sh: Likewise.
* build-aux/texinfo.tex: Likewise.
* doc/gendocs_template: Likewise.
* doc/standards.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSync autom4te perl modules from Automake.
Ralf Wildenhues [Sun, 19 Apr 2009 10:54:31 +0000 (12:54 +0200)] 
Sync autom4te perl modules from Automake.

* lib/Autom4te/Channels.pm: Sync from Automake.
* lib/Autom4te/FileUtils.pm: Likewise.
* lib/Autom4te/XFile.pm: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAdjust channel definitions for new Automake `ordered' flag.
Ralf Wildenhues [Sun, 19 Apr 2009 10:48:19 +0000 (12:48 +0200)] 
Adjust channel definitions for new Automake `ordered' flag.

* lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
`ordered' flag to zero for channels `fatal', `automake', and
`verb'.  This has currently no effect on actual semantics but
avoids a consistency check needed for Automake's usage of the
Channels.pm code.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agomanual: clarify m4_if synopsis.
Ralf Wildenhues [Sat, 18 Apr 2009 23:16:56 +0000 (01:16 +0200)] 
manual: clarify m4_if synopsis.

* doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
m4_if in the presence of more than three arguments.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoImprove and clarify `config.status' usage documentation.
Ralf Wildenhues [Sat, 18 Apr 2009 23:12:43 +0000 (01:12 +0200)] 
Improve and clarify `config.status' usage documentation.

* doc/autoconf.texi (config.status Invocation): Fix markup in
synopsis.  Use `tag' instead of `file' notation for the
non-option arguments, to be consistent with the documentation
of the AC_CONFIG_* macros.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
use `tag' notation for non-option arguments.
Report by John Calcote.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoTest that autotest handles binary output.
Eric Blake [Wed, 15 Apr 2009 12:38:58 +0000 (06:38 -0600)] 
Test that autotest handles binary output.

* tests/autotest.at (Binary output): New test.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd stdout-nolog and ignore-nolog to AT_CHECK.
Eric Blake [Mon, 13 Apr 2009 13:10:32 +0000 (07:10 -0600)] 
Add stdout-nolog and ignore-nolog to AT_CHECK.

* lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
(AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
(AT_DIFF_STDOUT(ignore-nolog)): New macros.
* tests/autotest.at (Logging): New test.
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
new logging actions.
* NEWS: Likewise.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoTeach AT_CHECK about hard failures.
Eric Blake [Mon, 13 Apr 2009 12:02:42 +0000 (06:02 -0600)] 
Teach AT_CHECK about hard failures.

* lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
<at_fn_check_status, at_fn_group_postprocess>: Handle hard
failures.
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
AT_CHECK_NOESCAPE and exit status 99.
* NEWS: Likewise.
* tests/autotest.at (Hard fail, Cleanup): New tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix yesterday's regression in AS_IF.
Eric Blake [Wed, 15 Apr 2009 01:06:27 +0000 (19:06 -0600)] 
Fix yesterday's regression in AS_IF.

* lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
branch; it is up to the user to avoid syntax errors.
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd traces for AM_SILENT_RULES.
Ralf Wildenhues [Tue, 14 Apr 2009 20:17:35 +0000 (22:17 +0200)] 
Add traces for AM_SILENT_RULES.

* lib/autom4te.in (Automake-preselections): Trace
AM_SILENT_RULES.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoImprove documentation related to expanded-before-required.
Eric Blake [Fri, 10 Apr 2009 20:43:33 +0000 (14:43 -0600)] 
Improve documentation related to expanded-before-required.

* doc/autoconf.texi (Expanded Before Required): Add a case study.
(Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
running a compile test will AC_REQUIRE the compiler check.
(Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
(C Compiler) <AC_PROG_CC>: Mention the fact that only first
invocation of this macro checks for $EXEEXT, and that many other
macros use it via AC_REQUIRE.
Reported by Andreas Schwab.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMention latest rules about make and set -e.
Eric Blake [Fri, 10 Apr 2009 16:56:40 +0000 (10:56 -0600)] 
Mention latest rules about make and set -e.

* doc/autoconf.texi (Failure in Make Rules): Posix is now clear
that make must use set -e.
(Limitations of Builtins) <set>: Clarify more about set -e
behavior.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove documentation about if exit status.
Eric Blake [Fri, 10 Apr 2009 04:33:37 +0000 (22:33 -0600)] 
Improve documentation about if exit status.

* doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
exit status bugs don't affect modern targets.
Reported by Andreas Schwab.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd cross-reference to new macros.
Eric Blake [Fri, 10 Apr 2009 05:00:22 +0000 (23:00 -0600)] 
Add cross-reference to new macros.

* doc/autoconf.texi (Text processing Macros) <m4_normalize>
<m4_strip>: Reference the new m4_ifblank.
Suggested by Mike Frysinger.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
Eric Blake [Fri, 10 Apr 2009 03:45:18 +0000 (21:45 -0600)] 
Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.

* lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
(_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
including a macro with an empty expansion.
* NEWS: Mention this.
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
tests.
Reported by Mike Frysinger.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd m4_blank and friends.
Eric Blake [Thu, 9 Apr 2009 13:05:00 +0000 (07:05 -0600)] 
Add m4_blank and friends.

* lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
(m4_default_nblank_quoted): New macros.
* NEWS: Document them.
* doc/autoconf.texi (Conditional constructs): Likewise.
* tests/m4sugar.at (m4sugar shorthand conditionals): New test.
Suggested by Mike Frysinger.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFinish upgrade to GFDL 1.3.
Eric Blake [Mon, 13 Apr 2009 11:55:35 +0000 (05:55 -0600)] 
Finish upgrade to GFDL 1.3.

* doc/autoconf.texi (copying): Use correct license; comment change
was missed on 2008-11-04.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoTest parallel handling of syntax error.
Eric Blake [Fri, 10 Apr 2009 18:09:41 +0000 (12:09 -0600)] 
Test parallel handling of syntax error.

* tests/autotest.at (parallel syntax error): New test.
Suggested by Ralf Wildenhues

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument awk and config.status line length limitations.
Ralf Wildenhues [Fri, 10 Apr 2009 14:46:42 +0000 (16:46 +0200)] 
Document awk and config.status line length limitations.

* doc/autoconf.texi (Configuration Actions): The input to
config.status should have reasonable line length.
(Limitations of Usual Tools): Document IRIX, HP-UX awk input
line length limit.
Report by Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoSkip `Multiple languages' test if CC is a C++ compiler.
Ralf Wildenhues [Fri, 10 Apr 2009 14:44:08 +0000 (16:44 +0200)] 
Skip `Multiple languages' test if CC is a C++ compiler.

* tests/compile.at (Multiple languages): Before starting the
test proper, build and run a configure script that tests the
C compiler only, and skips the test if this is found to be a
C++ compiler.
Report by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoNote that AC_DEFUN is needed for aclocal.
Ralf Wildenhues [Fri, 10 Apr 2009 14:37:41 +0000 (16:37 +0200)] 
Note that AC_DEFUN is needed for aclocal.

* doc/autoconf.texi (Coding Style): Public third-party macros
should be AC_DEFUN'ed.
Report by John Calcote.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAdd undocumented _AS_CLEAN_DIR.
Eric Blake [Fri, 10 Apr 2009 12:26:33 +0000 (06:26 -0600)] 
Add undocumented _AS_CLEAN_DIR.

* lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
in previous patch.
* lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
macro.
* tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid problems caused by deleting in-use directory.
Eric Blake [Thu, 9 Apr 2009 17:13:51 +0000 (11:13 -0600)] 
Avoid problems caused by deleting in-use directory.

* lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
remove the contents of $at_group_dir, not the directory itself.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix regression in empty test.
Eric Blake [Thu, 9 Apr 2009 16:29:33 +0000 (10:29 -0600)] 
Fix regression in empty test.

* lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
use in empty test.  Fixes regression introduced 2009-04-06.
(_AT_CHECK): Undo fallback when a test is not empty.
(AT_CLEANUP): Expand AT_ingroup before deleting.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
Paolo Bonzini [Thu, 9 Apr 2009 21:14:27 +0000 (23:14 +0200)] 
Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.

* lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
not crosscompiling to an obsolete system.

16 years agoAutomake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
Ralf Wildenhues [Wed, 8 Apr 2009 22:00:30 +0000 (00:00 +0200)] 
Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.

* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
Automake relies on this macro.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoReduce testsuite size.
Eric Blake [Mon, 30 Mar 2009 23:27:45 +0000 (17:27 -0600)] 
Reduce testsuite size.

* tests/statesave.m4: New file.
* tests/Makefile.am (EXTRA_DIST): Distribute it.
* tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
repeating inline definition of AC_STATE_SAVE.
(AT_CHECK_ENV): Factor code...
(_AT_CHECK_ENV): ...into shell function.
* tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoHandle shell comments in AT_CHECK.
Eric Blake [Mon, 6 Apr 2009 18:13:02 +0000 (12:13 -0600)] 
Handle shell comments in AT_CHECK.

* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
test correctly.  Latent bug in handling shell comment was first
fixed 2008-11-20, but regressed two patches later.
* tests/autotest.at (Shell comment in command): New test.
* NEWS: Document the fix.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoHard fail any test with syntax errors.
Eric Blake [Mon, 6 Apr 2009 16:40:49 +0000 (10:40 -0600)] 
Hard fail any test with syntax errors.

* lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
Guarantee test failure on syntax error, rather than inheriting
status from previous test.
* tests/autotest.at (Syntax error): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago./.prev-version: Record previous version: 2.63b.
Eric Blake [Tue, 31 Mar 2009 12:23:42 +0000 (06:23 -0600)] 
./.prev-version: Record previous version: 2.63b.

16 years agoBeta Release Version 2.63b. v2.63b
Eric Blake [Mon, 30 Mar 2009 14:45:11 +0000 (08:45 -0600)] 
Beta Release Version 2.63b.

* NEWS: Mention the release.
* README: Clarify that this is a beta release.
* build-aux/texinfo.tex: Synchronize from upstream.
* .x-sc_trailing_blank: Exempt more upstream files.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix testsuite failures under zsh.
Eric Blake [Mon, 30 Mar 2009 19:28:02 +0000 (13:28 -0600)] 
Fix testsuite failures under zsh.

* tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
set by zsh -c 'emulate sh'.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFor now, skip parallel tests under less-tested shells.
Eric Blake [Mon, 30 Mar 2009 14:11:09 +0000 (08:11 -0600)] 
For now, skip parallel tests under less-tested shells.

* tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
(Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
(Fallacy, Skip, errexit, Long test source lines)
(Debugging a successful test, Debugging script and environment)
(Debugging a failed test, Using atlocal)
(Choosing where testsuite is run): Adjust callers.
(AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined.  Makes
it easier to avoid testsuite hangs for users with dash or other
less-tested shell.
(parallel test execution, parallel truth, parallel fallacy)
(parallel skip, parallel errexit)
(parallel autotest and signal handling): Use it.
* BUGS: Mention this.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix awk substitution of carriage returns on DJGPP.
Andris Pavenis [Tue, 24 Mar 2009 12:47:09 +0000 (06:47 -0600)] 
Fix awk substitution of carriage returns on DJGPP.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
generation of ac_cs_awk_cr.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoWork around cygwin bash igncr mode.
Aaron W. LaFramboise [Sun, 22 Mar 2009 06:06:58 +0000 (01:06 -0500)] 
Work around cygwin bash igncr mode.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
bash carriage returns if ac_cr lost \r from ``.
* THANKS: Update.
Suggested by Eric Blake.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix underquoted example in manual.
Eric Blake [Tue, 24 Mar 2009 11:58:52 +0000 (05:58 -0600)] 
Fix underquoted example in manual.

* doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
Properly m4-quote #.
* THANKS: Update spelling.
Reported by Matěj Týč.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoManual: mention more expr pitfalls.
Eric Blake [Wed, 18 Mar 2009 01:33:08 +0000 (19:33 -0600)] 
Manual: mention more expr pitfalls.

* doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
Mention HP-UX limitation, and $ ambiguity.
* THANKS: Update.
Reported by Jens Schmidt, in http://bugs.debian.org/466990.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoManual: fix a typo.
Jim Meyering [Mon, 18 Aug 2008 09:08:14 +0000 (11:08 +0200)] 
Manual: fix a typo.

* lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"

16 years agoUse test consistently in examples.
Eric Blake [Tue, 17 Mar 2009 13:39:40 +0000 (07:39 -0600)] 
Use test consistently in examples.

* doc/autoconf.texi (Subdirectories, Caching Results)
(Common Shell Constructs, Prerequisite Macros, Coding Style)
(Changed Results, Particular Programs, Defining Symbols):
Protect against arbitrary user strings.
(Multiple Cases): Mention why $fstype does not need protection.
Reported by Reuben Thomas.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove confusing section names.
Eric Blake [Tue, 17 Mar 2009 12:38:07 +0000 (06:38 -0600)] 
Improve confusing section names.

* doc/autoconf.texi (Specifying Names): Rename node...
(Specifying Target Triplets): ...to this.
(Generic Programs): Adjust references.
* doc/install.texi (System Type): Touch up formatting.
* THANKS: Update.
Reported by Tim Freeman, in http://bugs.debian.org/312873.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRemove historical inaccuracy.
Eric Blake [Tue, 17 Mar 2009 12:09:22 +0000 (06:09 -0600)] 
Remove historical inaccuracy.

* doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
Reported by Reuben Thomas.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRecommend AS_HELP_STRING more prominently.
Eric Blake [Tue, 17 Mar 2009 12:05:11 +0000 (06:05 -0600)] 
Recommend AS_HELP_STRING more prominently.

* doc/autoconf.texi (External Software): Reduce mention of
hand-written help strings.
Reported by Reuben Thomas.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix 'make pdf'.
Eric Blake [Mon, 16 Mar 2009 23:03:27 +0000 (17:03 -0600)] 
Fix 'make pdf'.

* doc/autoconf.texi (Balancing Parentheses): Fix usage of
@itemize.
Reported by Ralf Wildenhues, fix suggested by Karl Berry.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoResync upstream files.
Eric Blake [Sat, 14 Mar 2009 22:23:29 +0000 (16:23 -0600)] 
Resync upstream files.

* GNUmakefile: Run 'make fetch'.
* build-aux/announce-gen: Likewise.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* build-aux/gnupload: Likewise.
* build-aux/texinfo.tex: Likewise.
* build-aux/vc-list-files: Likewise.
* doc/gnu-oids.texi: Likewise.
* doc/standards.texi: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoNew test for SunStudio `restrict' handling.
Ralf Wildenhues [Mon, 9 Mar 2009 18:25:18 +0000 (19:25 +0100)] 
New test for SunStudio `restrict' handling.

* tests/c.at (AC_C_RESTRICT and C++): New test.
Prompted by bug report from Rolf Vandevaart.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>