]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
14 years agoAC_REQUIRE: include FAQ URL when warning about duplicate expansion
Mike Frysinger [Mon, 11 Jul 2011 21:24:40 +0000 (17:24 -0400)] 
AC_REQUIRE: include FAQ URL when warning about duplicate expansion

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-11  Mike Frysinger  <vapier@gentoo.org>

* lib/m4sugar/m4sugar.m4 (_m4_require_check): Add URL to warning.

14 years agodocs: fix typo in AC_PATH_PROG
Benoit Sigoure [Tue, 12 Jul 2011 21:00:13 +0000 (14:00 -0700)] 
docs: fix typo in AC_PATH_PROG

* doc/autoconf.texi (Erlang Compiler and Interpreter):
s/AC_PROG_PATH/AC_PATH_PROG/.
* THANKS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years ago* tests/semantics.at (AC_REPLACE_FUNCS): Test for just-fixed bug.
Paul Eggert [Thu, 30 Jun 2011 16:13:41 +0000 (09:13 -0700)] 
* tests/semantics.at (AC_REPLACE_FUNCS): Test for just-fixed bug.

14 years ago* lib/autoconf/functions.m4 (_AC_REPLACE_FUNCS): Fix tr-cpp problem.
Timo Kamph [Thu, 30 Jun 2011 16:12:55 +0000 (09:12 -0700)] 
* lib/autoconf/functions.m4 (_AC_REPLACE_FUNCS): Fix tr-cpp problem.

See http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00058.html

14 years ago* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.
Paul Eggert [Mon, 20 Jun 2011 05:33:03 +0000 (22:33 -0700)] 
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Be even smarter.

GCC was too smart for the previous patch.  See
<http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00035.html>.

14 years ago* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Try to outsmart GCC.
Paul Eggert [Sat, 18 Jun 2011 21:39:57 +0000 (14:39 -0700)] 
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Try to outsmart GCC.

Problem with stack-detection code reported by Andy Wingo in
<http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00032.html>.
This fix is imported from gnulib's c-stack module.

14 years ago* doc/autoconf.texi (File Descriptors): Fix texinfo typo.
Paul Eggert [Sat, 18 Jun 2011 21:36:22 +0000 (14:36 -0700)] 
* doc/autoconf.texi (File Descriptors): Fix texinfo typo.

14 years agodoc: mention more about ksh cloexec behavior
Eric Blake [Mon, 13 Jun 2011 23:33:07 +0000 (17:33 -0600)] 
doc: mention more about ksh cloexec behavior

* doc/autoconf.texi (File Descriptors): Clarify that only the exec
builtin suffers from cloexec issues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: update quoting example
Eric Blake [Tue, 14 Jun 2011 13:45:29 +0000 (07:45 -0600)] 
doc: update quoting example

The existing example triggers an autoconf warning, due to the
change in AC_COMPILE_IFELSE probing for an AC_LANG_SOURCE use.

* doc/autoconf.texi (Autoconf Language): Add AC_LANG_SOURCE use.
* THANKS: Update.
Reported by Křištof Želechovski.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: document dash bug with positional parameters
Eric Blake [Thu, 5 May 2011 14:29:21 +0000 (08:29 -0600)] 
doc: document dash bug with positional parameters

* doc/autoconf.texi (Shell Substitutions) <${10}>: Document
a pitfall with $10.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: document NetBSD join bug
Eric Blake [Wed, 27 Apr 2011 16:26:42 +0000 (10:26 -0600)] 
docs: document NetBSD join bug

* doc/autoconf.texi (Limitations of Usual Tools) <join>: Mention
bug in -a parsing.
Reported by J.T. Conklin.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: reflect recent copyright assignments
Eric Blake [Wed, 13 Apr 2011 21:36:54 +0000 (15:36 -0600)] 
maint: reflect recent copyright assignments

Missed one on my last update.

* AUTHORS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: reflect recent copyright assignments
Eric Blake [Tue, 5 Apr 2011 20:50:14 +0000 (14:50 -0600)] 
maint: reflect recent copyright assignments

* AUTHORS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoNew macro AC_FC_PP_DEFINE for the preprocessor define flag.
Ralf Wildenhues [Sat, 2 Apr 2011 13:20:48 +0000 (15:20 +0200)] 
New macro AC_FC_PP_DEFINE for the preprocessor define flag.

* lib/autoconf/fortran.m4 (AC_FC_PP_DEFINE): New macro.
* lib/autom4te.in (Automake-preselections): Preselect it.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/local.at (_AT_CHECK_ENV): Do not complain about
FCFLAGS_F nor FC_DEFINE.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoNew macro AC_FC_PP_SRCEXT for preprocessed file extensions.
Ralf Wildenhues [Sat, 2 Apr 2011 12:52:20 +0000 (14:52 +0200)] 
New macro AC_FC_PP_SRCEXT for preprocessed file extensions.

* lib/autoconf/fortran.m4 (AC_FC_PP_SRCEXT): New macro.
* lib/autom4te.in (Automake-preselections): Preselect it.
* doc/autoconf.texi (Fortran Compiler): Document it, rewriting
the documentation for AC_FC_SRCEXT along the way.
* tests/fortran.at (AC_FC_PP_SRCEXT usage): New test.
* tests/mktests.sh: Exclude the macro from default testing.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoNew macro AC_FC_MODULE_OUTPUT_FLAG: module output directory.
Ralf Wildenhues [Sat, 2 Apr 2011 12:21:38 +0000 (14:21 +0200)] 
New macro AC_FC_MODULE_OUTPUT_FLAG: module output directory.

* lib/autoconf/fortran.m4 (AC_FC_MODULE_OUTPUT_FLAG): New macro.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/local.at (_AT_CHECK_ENV): Do not complain about
FC_MODOUT.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoNew macro AC_FC_MODULE_FLAG: Fortran 90 module include path.
Luc Maisonobe [Sat, 2 Apr 2011 12:17:55 +0000 (14:17 +0200)] 
New macro AC_FC_MODULE_FLAG: Fortran 90 module include path.

* lib/autoconf/fortran.m4 (AC_FC_MODULE_FLAG): New macro,
adjusted and rewritten from the AX_F90_MODULE_FLAG macro from
the Autoconf Macro Archive by Luc Maisonobe, Julian C. Cummings,
and Alexander Pletzer.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/fortran.at (AC_FC_MODULE_FLAG): New test.
* tests/local.at (AT_CHECK_ENV): Do not complain about FC_MODINC
setting.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoNew macro AC_FC_MODULE_EXTENSION: Fortran 90 module extension.
Luc Maisonobe [Sat, 2 Apr 2011 12:15:14 +0000 (14:15 +0200)] 
New macro AC_FC_MODULE_EXTENSION: Fortran 90 module extension.

* lib/autoconf/fortran.m4 (AC_FC_MODULE_EXTENSION): New macro,
rewritten from the AX_F90_MODULE_EXTENSION macro from the
Autoconf Macro Archive by Luc Maisonobe and Alexander Pletzer.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/local.at (_AT_CHECK_ENV): Do not complain about
FC_MODEXT setting.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoREADME-hacking: fix typo
Jim Meyering [Sat, 26 Mar 2011 20:50:43 +0000 (21:50 +0100)] 
README-hacking: fix typo

* README-hacking: s/just build/just built/.

14 years agodocs: Document AC_FUNC_FORK cache variables.
Colin Watson [Fri, 4 Mar 2011 20:55:03 +0000 (21:55 +0100)] 
docs: Document AC_FUNC_FORK cache variables.

* doc/autoconf.texi (Particular Functions): Document AC_FUNC_FORK
cache variables.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: BSD and Solaris make trailing space macro issue.
Ralf Wildenhues [Sun, 6 Mar 2011 12:28:42 +0000 (13:28 +0100)] 
docs: BSD and Solaris make trailing space macro issue.

* doc/autoconf.texi (Trailing whitespace in Make Macros):
Document issue with trailing whitespace in macro settings.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix Cray Fortran flag for AC_FC_IMPLICIT_NONE.
Ralf Wildenhues [Sat, 5 Mar 2011 14:27:08 +0000 (15:27 +0100)] 
Fix Cray Fortran flag for AC_FC_IMPLICIT_NONE.

* lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): Use -e I
not -d i, for Cray ftn.
* THANKS: Update.
Thanks to Tobias Burnus for feedback and testing.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: document several Fortran and OpenMP cache variables.
Ralf Wildenhues [Sat, 5 Mar 2011 13:39:10 +0000 (14:39 +0100)] 
docs: document several Fortran and OpenMP cache variables.

* doc/autoconf.texi (Generic Compiler Characteristics)
[AC_OPENMP]: Document associated cache variables.
(Fortran Compiler) [AC_PROG_F77, AC_PROG_FC, AC_PROG_F77_C_O]
[AC_PROG_FC_C_O, AC_F77_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS]
[AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN, AC_F77_MAIN, AC_FC_MAIN]
[AC_F77_WRAPPERS, AC_FC_WRAPPERS, AC_FC_FREEFORM]
[AC_FC_FIXEDFORM, AC_FC_LINE_LENGTH, AC_FC_CHECK_BOUNDS]
[AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE]: Document and/or
index the cache variables used by these macros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agobuild: exclude M4 with buggy strstr
Ralf Wildenhues [Sat, 5 Mar 2011 07:16:41 +0000 (08:16 +0100)] 
build: exclude M4 with buggy strstr

* m4/m4.m4 (AC_PROG_GNU_M4): When searching PATH, do not accept
an m4 that has either the gnulib strstr bug, or the glibc/gnulib
strstr bug.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: fix description of AC_F77_IMPLICIT_NONE.
Ralf Wildenhues [Sat, 5 Mar 2011 10:41:37 +0000 (11:41 +0100)] 
docs: fix description of AC_F77_IMPLICIT_NONE.

* doc/autoconf.texi (Fortran Compiler) [AC_F77_IMPLICIT_NONE]:
This macro modifies FFLAGS, not FCFLAGS.  Fix grammar nit.

14 years agoAC_FC_SRCEXT: allow gfortran to compile .f77 files.
Ralf Wildenhues [Sat, 5 Mar 2011 06:56:21 +0000 (07:56 +0100)] 
AC_FC_SRCEXT: allow gfortran to compile .f77 files.

* lib/autoconf/fortran.m4 (AC_FC_SRCEXT): Try '-x f77' for .f77
files, '-x f95' for others, for gfortran.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoNew macros AC_{F77,FC}_IMPLICIT_NONE to disable Fortran implicit int.
Ralf Wildenhues [Sat, 5 Mar 2011 06:55:51 +0000 (07:55 +0100)] 
New macros AC_{F77,FC}_IMPLICIT_NONE to disable Fortran implicit int.

* lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): New internal
macro.
(AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE): New macros.
* doc/autoconf.texi (Fortran Compiler): Document them.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoNew macro AC_FC_CHECK_BOUNDS to enable Fortran array bounds checking.
Ralf Wildenhues [Sat, 5 Mar 2011 06:55:14 +0000 (07:55 +0100)] 
New macro AC_FC_CHECK_BOUNDS to enable Fortran array bounds checking.

* lib/autoconf/fortran.m4 (AC_FC_CHECK_BOUNDS): New macro.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/fortran.at (AC_FC_CHECK_BOUNDS): New test.
* NEWS: Update.
Prompted by report from Eve-Marie Devaliere.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoUpdate known compiler switches for Fortran and OpenMP macros.
Ralf Wildenhues [Fri, 4 Mar 2011 20:26:08 +0000 (21:26 +0100)] 
Update known compiler switches for Fortran and OpenMP macros.

* lib/autoconf/c.m4 (AC_OPENMP): Update for Lahey on GNU/Linux.
* lib/autoconf/fortran.m4 (_AC_F95_FC): Also try nagfor.
(_AC_PROG_FC_V): Update documentation for Lahey switches.
(AC_FC_FREEFORM, AC_FC_FIXEDFORM): Add flags for Absoft, Lahey
on GNU/Linux, document NAGWare, g95, and f2c switches.
(AC_FC_LINE_LENGTH): Document NAGware switch.  Update Absoft,
Lahey, NAGWare, Open Watcom, g95, and f2c switches.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: accept f2c/fort77 as GNU Fortran 77.
Ralf Wildenhues [Fri, 4 Mar 2011 20:25:06 +0000 (21:25 +0100)] 
tests: accept f2c/fort77 as GNU Fortran 77.

* tests/fortran.at (GNU Fortran 77): Try to detect f2c wrapper
fort77 as GNU as well: it defines __GNUC__ too.  Fixes testsuite
failure when f77 is fort77.
Report from Giulio Paci.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: macro synopses document default failure cases.
Ralf Wildenhues [Fri, 4 Mar 2011 20:24:32 +0000 (21:24 +0100)] 
docs: macro synopses document default failure cases.

* doc/autoconf.texi (Fortran Compiler, Obsolete Macros):
Document failure case for AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN,
AC_FC_SRCEXT, AC_FC_FREEFORM, AC_FC_FIXEDFORM,
AC_FC_LINE_LENGTH, and AC_TRY_RUN macros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoReword Fortran macro documentation.
Ralf Wildenhues [Fri, 4 Mar 2011 20:23:49 +0000 (21:23 +0100)] 
Reword Fortran macro documentation.

* doc/autoconf.texi (Fortran Compiler): Improve wording for
AC_FC_FREEFORM, AC_FC_FIXEDFORM, and AC_FC_LINE_LENGTH macros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoconfig.status: do not quote $SHELL when rerunning configure.
Ralf Wildenhues [Sat, 26 Feb 2011 07:19:36 +0000 (08:19 +0100)] 
config.status: do not quote $SHELL when rerunning configure.

* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Allow
$SHELL to contain more than one word, when rerunning configure,
for debugging purposes like CONFIG_SHELL='/bin/sh -x'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAdd support for the Go programming language.
Ian Lance Taylor [Tue, 12 Oct 2010 19:26:39 +0000 (12:26 -0700)] 
Add support for the Go programming language.

* lib/autoconf/go.m4: New file.
* lib/autoconf/autoconf.m4: Include autoconf/go.m4.
* lib/autoconf/Makefile.am (dist_autoconflib_DATA): Add go.m4.
* lib/freeze.mk (autoconf_m4f_dependencies): Add
$(src_libdir)/autoconf/go.m4.
* doc/autoconf.texi: Rebuild menus.
(Preset Output Variables): Mention Go.  Document GOFLAGS.
(Libraries): Mention Go.
(Go Compiler): New subsection.
(Language Choice): Mention Go.
(Generating Sources): Likewise.
(Running the Preprocessor): Likewise.
* tests/go.at: New file.
* tests/suite.at: Include go.at and acgo.at.
* tests/local.at (_AT_CHECK_ENV): Add GOC and GOFLAGS.
* tests/Makefile.am (TESTSUITE_GENERATED_AT): Add
$(srcdir)/acgo.at.
(TESTSUITE_HAND_AT): Add go.at.
(AUTOCONF_FILES): Add $(autoconfdir)/go.m4.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix OpenMP flag detection for various Fortran compilers.
Christian Rössel [Sun, 20 Feb 2011 17:24:23 +0000 (18:24 +0100)] 
Fix OpenMP flag detection for various Fortran compilers.

* lib/autoconf/c.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
OpenMP-conditional compilation construct, to force compile
failure with missing OpenMP flag.
(AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: document fourth argument of AC_RUN_IFELSE better
Eric Blake [Fri, 18 Feb 2011 18:08:08 +0000 (11:08 -0700)] 
docs: document fourth argument of AC_RUN_IFELSE better

* doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Make synopsis show
that the default is configure failure.  Rework the text about
proper use of the fourth argument.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agolong long: don't abort configure when cross-compiling
Eric Blake [Fri, 18 Feb 2011 17:41:56 +0000 (10:41 -0700)] 
long long: don't abort configure when cross-compiling

* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Provide no-op
cross-compiling fallback; fixing regression from 2011-02-16.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: fix a typo
Patrick Welche [Wed, 16 Feb 2011 15:51:22 +0000 (15:51 +0000)] 
docs: fix a typo

* doc/autoconf.texi (Generic Structures): Fix typo.

14 years agodocs: fix some typos
Matt Kraai [Wed, 16 Feb 2011 12:58:53 +0000 (04:58 -0800)] 
docs: fix some typos

* doc/autoconf.texi (testsuite Scripts): Fix typos.
* THANKS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautoconf: tune long long tests, particularly for c99
Paul Eggert [Wed, 16 Feb 2011 09:29:40 +0000 (01:29 -0800)] 
autoconf: tune long long tests, particularly for c99

This change is imported from gnulib.
* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
or running anything if c99, or if unsigned long long int does not
work.  In either case, we know the answer without further tests.
Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
it at most once, and use its results for both long long int and
unsigned long long int.  This is more likely to be efficient in
the common case where the program wants to check for both long
long int and unsigned long long int.
(AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
since the answer is already known.

14 years agodoc: fix debug advice typo
Eric Blake [Tue, 15 Feb 2011 21:22:11 +0000 (14:22 -0700)] 
doc: fix debug advice typo

* doc/autoconf.texi (Debugging): Put shell option in right place.
Reported by Reuben Thomas.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoFix detection of link flags for fort77 on GNU/Linux.
Giulio Paci [Sat, 12 Feb 2011 10:30:32 +0000 (11:30 +0100)] 
Fix detection of link flags for fort77 on GNU/Linux.

* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Properly detect
the fort77 (f2c wrapper) compiler verbose linking output flag.
Fixes also AC_F77_LIBRARY_LDFLAGS and AC_F77_DUMMY_MAIN.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoRebuild menus in the manual.
Ralf Wildenhues [Mon, 7 Feb 2011 23:00:56 +0000 (00:00 +0100)] 
Rebuild menus in the manual.

* doc/autoconf.texi: Rebuild menus using emacs ^C ^U ^A.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoautoconf: new macro AC_HEADER_CHECK_STDBOOL
Paul Eggert [Sat, 5 Feb 2011 04:38:07 +0000 (20:38 -0800)] 
autoconf: new macro AC_HEADER_CHECK_STDBOOL

* NEWS: Document this.
* doc/autoconf.texi (Particular Headers): Likewise.
In example, don't assume a 'system.h' exists.
* lib/autoconf/headers.m4 (AC_CHECK_HEADER_STDBOOL): New macro.
Use it with AN_IDENTIFIER, since it's less heavyweight.
Reindent to match gnulib, since that's a bit nicer.
(AC_HEADER_STDBOOL): Reimplement in terms of it.

14 years agodocs: fix typo in the manual.
Jim Warhol [Sat, 29 Jan 2011 10:35:46 +0000 (11:35 +0100)] 
docs: fix typo in the manual.

* doc/autoconf.texi (Introduction): Fix typo.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: another parallel make issue
Stefano Lattarini [Mon, 24 Jan 2011 21:31:37 +0000 (22:31 +0100)] 
docs: another parallel make issue

* doc/autoconf.texi (Parallel Make): Document that some make
implementations, when run in parallel mode, connect stdout and
stderr of child processes to pipes or temporary files, and might
re-route stderr of spawned processes to stout.  Also document
that FreeBSD make in parallel mode reuses the same shell for
multiple commands within one recipe (like NetBSD make does).

14 years agodocs: advise against HP-UX make due to time stamp semantics.
Ralf Wildenhues [Tue, 25 Jan 2011 19:49:50 +0000 (20:49 +0100)] 
docs: advise against HP-UX make due to time stamp semantics.

* doc/autoconf.texi (Timestamps and Make): Document HP-UX 11.31
make issue with targets having the same time stamps as their
prerequisites.
* doc/install.texi (Particular Systems): Warn against using
HP-UX make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agomaint: reflect recent copyright assignments
Eric Blake [Wed, 26 Jan 2011 02:31:45 +0000 (19:31 -0700)] 
maint: reflect recent copyright assignments

* AUTHORS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: new section about whitespace trimmmed from make command-lines.
Ralf Wildenhues [Sun, 23 Jan 2011 10:24:02 +0000 (11:24 +0100)] 
docs: new section about whitespace trimmmed from make command-lines.

* doc/autoconf.texi (Command-line Macros and whitespace): New
section, document trimming of whitespace from macros set on the
command line and from the environment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: document how to use comment characters in rules.
Ralf Wildenhues [Sat, 22 Jan 2011 18:39:29 +0000 (19:39 +0100)] 
docs: document how to use comment characters in rules.

* doc/autoconf.texi (Comments in Make Rules): Explain how to
produce a `#' in a rule.
(Comments in Make Macros): Add cross reference.
Suggestion from Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: new sections about comments and whitespace in make macros.
Ralf Wildenhues [Sat, 22 Jan 2011 10:16:27 +0000 (11:16 +0100)] 
docs: new sections about comments and whitespace in make macros.

* doc/autoconf.texi (Top, Portable Make): Adjust menus.
(Comments in Make Macros, Trailing whitespace in Make Macros):
New sections.
Suggestion by Stefano Lattarini.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: do not use AIX 5.3 cp -R.
Ralf Wildenhues [Sat, 22 Jan 2011 12:46:06 +0000 (13:46 +0100)] 
docs: do not use AIX 5.3 cp -R.

* doc/autoconf.texi (Limitations of Usual Tools): Document one
instance of the cp -R bug on AIX 5.3.  This seems to have been
fixed in 6.1 and newer releases.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: update entry about unset.
Ralf Wildenhues [Sat, 22 Jan 2011 08:28:44 +0000 (09:28 +0100)] 
docs: update entry about unset.

* doc/autoconf.texi (Limitations of Builtins): NetBSD sh unset
also fails upon `unset' of a variable that is not set.  Bash 2.01
could also dump core over `unset MAILPATH'.
Suggestion by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix LEXLIB and YYTEXT_POINTER with IRIX 6.5 flex 2.5.4.
Ralf Wildenhues [Fri, 21 Jan 2011 20:54:08 +0000 (21:54 +0100)] 
Fix LEXLIB and YYTEXT_POINTER with IRIX 6.5 flex 2.5.4.

* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL):
Overquote nontrivial yyless argument, to compensate for
underquoted macro definition in IRIX 6.5 flex 2.5.4
leading to compile failure due to incompatible operands.
Fixes Automake silent-lex-generic.test failure.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: Tru64/OSF sh treats read as special builtin
Ralf Wildenhues [Sun, 16 Jan 2011 11:48:57 +0000 (12:48 +0100)] 
docs: Tru64/OSF sh treats read as special builtin

* doc/autoconf.texi (Limitations of Builtins): read may exit
upon unreadable or non-existent file with Tru64/OSF 5.1 sh.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: fix description of m4_ifval
Eric Blake [Tue, 11 Jan 2011 23:17:55 +0000 (16:17 -0700)] 
docs: fix description of m4_ifval

* doc/autoconf.texi (Conditional constructs) <m4_ifval>: Use
correct argument order.
* THANKS: Update.
Reported by Mostafa.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAvoid reference to $CYGWIN in Fortran macros.
Ralf Wildenhues [Sun, 9 Jan 2011 09:16:33 +0000 (10:16 +0100)] 
Avoid reference to $CYGWIN in Fortran macros.

* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Require
AC_CANONICAL_HOST.  Replace test for $CYGWIN with $host_s test.
* tests/fortran.at (AC_F77_DUMMY_MAIN usage)
(AC_FC_DUMMY_MAIN usage, AC_F77_MAIN usage, AC_FC_MAIN usage):
Use AT_CONFIGURE_AC and simplify accordingly, so auxiliary
scripts are copied into the test directories.
(AC_F77_FUNC usage, AC_FC_FUNC usage): Likewise.  Adjust to
autoheader being used now.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: link to Gnulib configmake documentation.
Ralf Wildenhues [Mon, 10 Jan 2011 06:26:41 +0000 (07:26 +0100)] 
docs: link to Gnulib configmake documentation.

* doc/autoconf.texi (Defining Directories): Use proper crossref,
now that the Gnulib manual has a configmake section.
Thanks to Karl Berry.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: link to 'set -e' shell behavior overview.
Ralf Wildenhues [Sat, 8 Jan 2011 18:34:32 +0000 (19:34 +0100)] 
docs: link to 'set -e' shell behavior overview.

* doc/autoconf.texi (Limitations of Builtins): Add link to
Sven Mascheck's 'set -e' page.  Replace broken Opengroup link.
Suggestion by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: mention configmake module for defining directories.
Ralf Wildenhues [Sat, 8 Jan 2011 16:35:54 +0000 (17:35 +0100)] 
docs: mention configmake module for defining directories.

* doc/autoconf.texi (Defining Directories): Mention configmake
gnulib module.
Suggestion by Karl Berry and Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodoc: improve install.texi texinfo markup
Eric Blake [Tue, 4 Jan 2011 23:37:41 +0000 (16:37 -0700)] 
doc: improve install.texi texinfo markup

This partially reverts commit 02fa53b19528cbb849b08b68074dcbc31c5a9715.

* doc/install.texi: Don't force @firstparagraphindent on all
clients; instead, add it only when building INSTALL.  Compress
copyright.
* Makefile.am (INSTALL): Match gnulib's formatting.
Reported by Karl Berry.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: update copyright year
Eric Blake [Tue, 4 Jan 2011 23:13:09 +0000 (16:13 -0700)] 
maint: update copyright year

All files changed to add 2011, via 'make update-copyright'.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: resync upstream files
Eric Blake [Tue, 4 Jan 2011 23:11:08 +0000 (16:11 -0700)] 
maint: resync upstream files

* GNUmakefile: Regenerated by 'make fetch'.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* build-aux/gendocs.sh: Likewise.
* build-aux/git-version-gen: Likewise.
* build-aux/texinfo.tex: Likewise.
* doc/make-stds.texi: Likewise.
* lib/Autom4te/Channels.pm: Likewise.
* lib/Autom4te/Configure_ac.pm: Likewise.
* lib/Autom4te/FileUtils.pm: Likewise.
* lib/Autom4te/Struct.pm: Likewise.
* lib/Autom4te/XFile.pm: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: document use of copyright ranges
Eric Blake [Tue, 4 Jan 2011 23:04:12 +0000 (16:04 -0700)] 
maint: document use of copyright ranges

* README: Copy coreutils wording for allowing copyright year
ranges.
* cfg.mk (UPDATE_COPYRIGHT_USE_INTERVALS): Now that GNU Coding
Standards permit it, prefer shorthand copyright.
* .x-update-copyright: Exempt an imported file.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAvoid using @acronym in install.texi.
Karl Berry [Mon, 3 Jan 2011 02:49:25 +0000 (03:49 +0100)] 
Avoid using @acronym in install.texi.

* doc/install.texi (Basic Installation, Multiple Architectures)
(Installation Names): Write `GNU' instead of `@acronym{GNU}'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoautoconf: Use -D_STDC_C99=, not -xc99=all, with Solaris cc
Paul Eggert [Tue, 28 Dec 2010 07:31:43 +0000 (23:31 -0800)] 
autoconf: Use -D_STDC_C99=, not -xc99=all, with Solaris cc

* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Use -D_STDC_C99= rather than
-xc99=all to convince Solaris Studio cc to compile c99 programs.

14 years agoautotest: fix file descriptor leak
Paul Eggert [Fri, 26 Nov 2010 09:21:04 +0000 (01:21 -0800)] 
autotest: fix file descriptor leak

* lib/autotest/general.m4 (_AT_CHECK): Close AS_MESSAGE_LOG_FD
when running the test. Problem reported by Luke Mewburn in
<http://lists.gnu.org/archive/html/autoconf/2010-11/msg00036.html>.

14 years agoautoconf: don't assume sys/stat.h and sys/types.h when testing C89
Paul Eggert [Sat, 20 Nov 2010 23:26:39 +0000 (15:26 -0800)] 
autoconf: don't assume sys/stat.h and sys/types.h when testing C89

Problem reported by Patrick Pelissier in
<http://lists.gnu.org/archive/html/bug-autoconf/2010-11/msg00019.html>.
* lib/autoconf/c.m4 (_AC_PROG_CC_C89): Don't include sys/types.h
and sys/stat.h.  Instead, define a dummy struct stat.  C89 doesn't
guarantee sys/types.h and sys/stat.h.

14 years agodocs: avoid first person, and credit history to David MacKenzie
Reuben Thomas [Wed, 10 Nov 2010 22:01:49 +0000 (22:01 +0000)] 
docs: avoid first person, and credit history to David MacKenzie

* doc/autoconf.texi (History): Add credit.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: Posix now says "((cat))" isn't portable
Paul Eggert [Tue, 26 Oct 2010 23:12:46 +0000 (16:12 -0700)] 
docs: Posix now says "((cat))" isn't portable

* doc/autoconf.texi (Parenthesis): Update documentation to reflect
what Posix 1003.1-2008 says about "((".

14 years agodocs: document dash bug in <>
Eric Blake [Wed, 20 Oct 2010 22:56:40 +0000 (16:56 -0600)] 
docs: document dash bug in <>

* doc/autoconf.texi (File Descriptors): Dash 0.5.5 truncates on
<>; at least this was fixed in dash 0.5.6.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: avoid AC_CACHE_CHECK test failure with dash.
Ralf Wildenhues [Tue, 12 Oct 2010 18:29:58 +0000 (20:29 +0200)] 
tests: avoid AC_CACHE_CHECK test failure with dash.

* tests/base.at (AC_CACHE_CHECK): Normalize configure exit
status in presence of syntax error in sourced site file.
Do not error out if configure is aborted at this point.
Fixes testsuite failure with dash 0.5.5.1.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAS_LITERAL_IF: Treat raw = as literal again.
Eric Blake [Fri, 8 Oct 2010 16:54:31 +0000 (10:54 -0600)] 
AS_LITERAL_IF: Treat raw = as literal again.

* lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Treat = like +.
* tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP)
(AS@&t@_LITERAL_IF): Expand tests.
* NEWS: Document the fix.
Reported via Ben Pfaff; originally http://bugs.debian.org/593838

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: suggest a few more workarounds
Eric Blake [Tue, 5 Oct 2010 15:59:56 +0000 (09:59 -0600)] 
doc: suggest a few more workarounds

* doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
that 'redundant' brackets can work around Solaris bug.
(File Descriptors): Mention that {} works as well as () for
silencing file-not-found warnings.
* THANKS: Update.
Suggested by Pádraig Brady.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: fix typo in AC_CONFIG_FILES example code.
Joshua G. Hale [Fri, 24 Sep 2010 18:59:28 +0000 (20:59 +0200)] 
docs: fix typo in AC_CONFIG_FILES example code.

* doc/autoconf.texi (Configuration Actions): Fix typo.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: normalize trailing spaces in gcc -E -dD output.
Ralf Wildenhues [Fri, 24 Sep 2010 04:34:39 +0000 (06:34 +0200)] 
tests: normalize trailing spaces in gcc -E -dD output.

* tests/compile.at (AC_LANG_SOURCE example)
(AC_LANG_PROGRAM example): Remove trailing spaces before
comparing with expected output.  Fixes testsuite failure
with GCC 2.95.3 on Haiku.
Report by Scott McCreary.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agopost-release administrivia
Eric Blake [Wed, 22 Sep 2010 22:42:42 +0000 (16:42 -0600)] 
post-release administrivia

* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.

14 years agoRelease Version 2.68. v2.68
Eric Blake [Wed, 22 Sep 2010 22:34:13 +0000 (16:34 -0600)] 
Release Version 2.68.

* NEWS: Mention the release.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautom4te: add traces for likely future Automake macros
Ralf Wildenhues [Sun, 19 Sep 2010 08:29:22 +0000 (10:29 +0200)] 
autom4te: add traces for likely future Automake macros

* lib/autom4te.in (Automake-preselections): Trace
AM_MAKEFILE_INCLUDE, AM_NLS, AM_POT_TOOLS, AM_PATH_GUILE,
AM_PROG_MOC, AM_XGETTEXT_OPTION, _AM_MAKEFILE_INCLUDE.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_REPLACE_FUNCS: allow split lines again
Eric Blake [Wed, 22 Sep 2010 21:55:26 +0000 (15:55 -0600)] 
AC_REPLACE_FUNCS: allow split lines again

More fallout from the same 2.66 regression that was partially fixed
yesterday, but until yesterday's AS_LITERAL_IF actually treated \ as a
non-literal, apparently no one noticed the latent bug of a spurious
call to AC_CHECK_FUNC([\]) during automake's libobj5.test.

* lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Flatten newlines
and move guts...
(_AC_REPLACE_FUNCS): ...to new helper.
* tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_LIBOBJ: optimize internal use
Eric Blake [Tue, 21 Sep 2010 23:09:09 +0000 (17:09 -0600)] 
AC_LIBOBJ: optimize internal use

* lib/autoconf/general.m4 (_AC_LIBOBJ): Move literal check...
(AC_LIBOBJ): ...into callers.
* lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): Likewise, thus
avoiding a second call to AS_LITERAL_IF.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_REPLACE_FUNCS: restore shell loop for non-literal
Eric Blake [Tue, 21 Sep 2010 23:00:09 +0000 (17:00 -0600)] 
AC_REPLACE_FUNCS: restore shell loop for non-literal

* lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Handle
non-literals, which was lost in 2010-02-26 optimization.
* tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Wiseman Jun.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: resync upstream files
Eric Blake [Fri, 17 Sep 2010 22:59:32 +0000 (16:59 -0600)] 
maint: resync upstream files

* build-aux/gendocs.sh: Resync via 'make fetch'.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: XFAIL in the face of a MacOS X bug
Eric Blake [Tue, 21 Sep 2010 18:09:55 +0000 (12:09 -0600)] 
tests: XFAIL in the face of a MacOS X bug

* doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
the issue.
* tests/torture.at (Substitute and define special characters):
Detect if sed cannot process 8-bit bytes in the C locale.
* THANKS: Update.
Reported by Rochan.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautom4te: don't filter out portions of location traces
Eric Blake [Mon, 20 Sep 2010 21:00:28 +0000 (15:00 -0600)] 
autom4te: don't filter out portions of location traces

* bin/autom4te.in (_m4_warn): Pass warnings through the channels
machinery as a single chunk, to avoid partial filtering.
* lib/m4sugar/m4sugar.m4 (_m4_warn): Document the conventions.
* tests/m4sugar.at (m4@&t@_warn): Enhance test to catch this.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agobuild: support autobuild
Eric Blake [Fri, 17 Sep 2010 12:16:07 +0000 (06:16 -0600)] 
build: support autobuild

* cfg.mk (gnulib-update): Add autobuild.m4.
* configure.ac (AB_INIT): Output autobuild header.
* m4/autobuild.m4: New file, from gnulib.
* build-aux/config.guess: Resync from upstream.
* build-aux/config.sub: Likewise.
* build-aux/texinfo.tex: Likewise.
* doc/fdl.texi: Likewise.
* doc/gnu-oids.texi: Likewise.
* doc/make-stds.texi: Likewise.
* doc/standards.texi: Likewise.
* build-aux/gendocs.sh: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoconfig.status: avoid corrupting $ac_t
Eric Blake [Fri, 17 Sep 2010 16:39:29 +0000 (10:39 -0600)] 
config.status: avoid corrupting $ac_t

* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): Use a
different name, so as not to clash with pre-2.50 usage of "$ac_t"
as a tab character.
Reported by Sam Steingold.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: mark several macros obsolete
Bruno Haible [Fri, 17 Sep 2010 15:56:27 +0000 (09:56 -0600)] 
docs: mark several macros obsolete

* doc/autoconf.texi (Particular Functions): Mark AC_FUNC_ERROR_AT_LINE,
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_MKTIME, AC_FUNC_STRTOD
as obsolete and refer to Gnulib.
* NEWS: Mention the change.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_FUNC_STRNLEN: more realistic cross-compilation guess
Bruno Haible [Fri, 17 Sep 2010 15:50:34 +0000 (09:50 -0600)] 
AC_FUNC_STRNLEN: more realistic cross-compilation guess

* lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): Require
AC_CANONICAL_HOST. When cross-compiling, guess it works everywhere
except on AIX.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agom4sh: fix today's AS_BOX regression
Eric Blake [Thu, 16 Sep 2010 22:46:36 +0000 (16:46 -0600)] 
m4sh: fix today's AS_BOX regression

* lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Fix underquotation.
Reported by Stefano Lattarini.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agofortran: avoid misparsed FCLIBS from Fortran compiler
Eric Blake [Thu, 16 Sep 2010 22:19:11 +0000 (16:19 -0600)] 
fortran: avoid misparsed FCLIBS from Fortran compiler

* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Also skip
'Configured by:' lines from gfortran.
* NEWS: Mention it.
Reported by Stefano Lattarini.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAdd autom4te trace for AM_PROG_AR.
Ralf Wildenhues [Thu, 16 Sep 2010 17:52:21 +0000 (19:52 +0200)] 
Add autom4te trace for AM_PROG_AR.

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

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agom4sugar: fix regression in AC_MSG_ERROR expansion
Eric Blake [Thu, 16 Sep 2010 14:43:27 +0000 (08:43 -0600)] 
m4sugar: fix regression in AC_MSG_ERROR expansion

AS_ERROR Regression introduced in commit cffdc3947, but the
underlying problem stems from the introduction of m4_defun_init
in commit d0c5f482.

* lib/m4sugar/m4sugar.m4 (m4_defun_init): Avoid macro
concatenation on subsequent expansions
* tests/m4sh.at (AS_WARN and AS_ERROR): New test.
* tests/m4sugar.at (m4@&t@_require: one-shot initialization):
Enhance test.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Adrian Bunk and and Nishio Futoshi.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: simplify grepping of 'automake --version'.
Stefano Lattarini [Mon, 13 Sep 2010 18:26:40 +0000 (20:26 +0200)] 
tests: simplify grepping of 'automake --version'.

* tests/tools.at (autom4te preselections): Remove minor
redundancies in regular expressions used to grep the output
'automake --version' for test skipping.
* tests/torture.at (Configuring subdirectories)
(Unusual Automake input files): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautotest: work around zsh bug
Eric Blake [Mon, 13 Sep 2010 17:31:23 +0000 (11:31 -0600)] 
autotest: work around zsh bug

* lib/autotest/general.m4 (AT_DATA): Special case an empty data
file, since zsh botches empty here-docs.
* doc/autoconf.texi (Writing Testsuites) <AT_DATA>: Document that
this allows empty contents.
* tests/autotest.at (AT_DATA): New test.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: mention gnulib portability docs
Eric Blake [Mon, 13 Sep 2010 16:42:09 +0000 (10:42 -0600)] 
docs: mention gnulib portability docs

* doc/autoconf.texi (Function Portability, Header Portability):
Add external links to gnulib.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: document zsh specialty with empty here-documents.
Ralf Wildenhues [Sun, 12 Sep 2010 16:37:08 +0000 (18:37 +0200)] 
docs: document zsh specialty with empty here-documents.

* doc/autoconf.texi (Here-Documents): zsh 4.3.10 adds a newline
to empty here-docs.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: document zsh special array $options.
Ralf Wildenhues [Sun, 12 Sep 2010 15:04:49 +0000 (17:04 +0200)] 
docs: document zsh special array $options.

* doc/autoconf.texi (Special Shell Variables): Add entry for
`options'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodoc: minor updates.
Ralf Wildenhues [Sun, 12 Sep 2010 07:46:41 +0000 (09:46 +0200)] 
doc: minor updates.

* doc/autoconf.texi (Generic Compiler Characteristics): Use
second argument of @uref consistently, for nicer OpenMP link.
(Polymorphic Variables): Restore font-lock.
(Debugging): Add item for bashdb.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoDocument and test AT_CHECK args shell execution environment.
Ralf Wildenhues [Sun, 12 Sep 2010 07:45:34 +0000 (09:45 +0200)] 
Document and test AT_CHECK args shell execution environment.

* doc/autoconf.texi (Writing Testsuites): Document that COMMANDS
is run in a subshell, but RUN-IF-FAIL and RUN-IF-PASS are not.
* tests/autotest.at (AT@&t@_CHECK execution environment): New
test.
* NEWS: Update.

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