]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
17 years agoBe nice with file systems that don't handle unusual characters.
Benoit Sigoure [Tue, 18 Dec 2007 12:54:08 +0000 (13:54 +0100)] 
Be nice with file systems that don't handle unusual characters.

* tests/atlocal.in (func_sanitize_file_name)
(func_sanitize_dir_name): New shell functions.
* tests/tools.at (autom4te and whitespace in file names)
(autotools and whitespace in file names): Use them.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Cover more potentially problemtic file names.  Use the new
functions.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoProperly handle funny file names for headers in config.status.
Benoit Sigoure [Tue, 18 Dec 2007 12:54:07 +0000 (13:54 +0100)] 
Properly handle funny file names for headers in config.status.

The test suite did not cover this bug because the code was not
quoting properly the arguments of `rm -f' (which "fails" silently)
as well as the arguments of `diff' (whose output was redirected to
/dev/null so we couldn't see its error message).
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Properly quote the
file names passed to `rm' and `diff'.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Add a regression test.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoProperly expand @configure_input@ in config.status.
Benoit Sigoure [Tue, 18 Dec 2007 12:54:06 +0000 (13:54 +0100)] 
Properly expand @configure_input@ in config.status.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILE, _AC_OUTPUT_MAIN_LOOP):
Escape the backslashes and ampersands in $configure_input before
using it in the sed replacement string to expand @configure_input@.
Report by Eric Blake and Patrick Welche.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoAdd ChangeLog entry for last commit.
Ralf Wildenhues [Sun, 2 Mar 2008 11:16:06 +0000 (12:16 +0100)] 
Add ChangeLog entry for last commit.

17 years agoIgnore errors from ./run on w32.
Ralf Wildenhues [Sun, 2 Mar 2008 09:53:05 +0000 (10:53 +0100)] 
Ignore errors from ./run on w32.

* tests/autotest.at (whitespace in absolute testdir):
Ignore stderr for `./run' which fails to remove the
busy test directory on w32.

17 years agoImprove documentation for writing autotest suites.
Eric Blake [Fri, 22 Feb 2008 23:23:48 +0000 (16:23 -0700)] 
Improve documentation for writing autotest suites.

* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention that
checks must live inside a test group.
Reported by Christopher Hulbert.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSync git-version-gen from upstream.
Eric Blake [Thu, 21 Feb 2008 14:55:13 +0000 (07:55 -0700)] 
Sync git-version-gen from upstream.

* build-aux/git-version-gen: Pull from gnulib.
* configure.ac (AC_INIT): Adjust to new calling convention.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid trailing space in config.h with AC_DEFINE([var], []).
Eric Blake [Tue, 12 Feb 2008 15:49:59 +0000 (08:49 -0700)] 
Avoid trailing space in config.h with AC_DEFINE([var], []).

* lib/autoconf/general.m4 (_AC_DEFINE_Q): Explicitly mark empty
defines with a comment.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix texinfo typos in previous patch.
Eric Blake [Fri, 8 Feb 2008 15:34:52 +0000 (08:34 -0700)] 
Fix texinfo typos in previous patch.

* doc/autoconf.texi (Site Defaults): s/[{}]/@&/g.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDescribe a config.site that can be used for FHS compliance.
Eric Blake [Fri, 8 Feb 2008 15:13:27 +0000 (08:13 -0700)] 
Describe a config.site that can be used for FHS compliance.

* doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
for FHS.
* THANKS: Update.
Reported by Jules Colding and Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.
Eric Blake [Sat, 2 Feb 2008 23:38:23 +0000 (16:38 -0700)] 
* doc/autoconf.texi (Limitations of Usual Tools) <grep>: Fix typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix autotest --clean, and make it work with `-C dir'.
Ralf Wildenhues [Fri, 1 Feb 2008 23:10:25 +0000 (00:10 +0100)] 
Fix autotest --clean, and make it work with `-C dir'.

* lib/autotest/general.m4 (AT_INIT): Fix --clean to work
again, broken since introduction of `-C dir'.
* tests/autotest.at (Choosing where testsuite is run): Test it.

17 years ago* doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.
Paul Eggert [Thu, 31 Jan 2008 00:48:07 +0000 (16:48 -0800)] 
* doc/autoconf.texi: Update Back-Cover text to reflect new GNU wording.

17 years agoFix more autotest regressions.
Eric Blake [Tue, 29 Jan 2008 23:56:36 +0000 (16:56 -0700)] 
Fix more autotest regressions.

* lib/autotest/general.m4 (AT_LINE): Fix regression from
2007-10-04 when file name is `dnl'.
(AT_INIT) <PREPARE_TESTS>: Move command-line assignments...
<TESTS_BEGIN>: ...to this new diversion, to fix regression from
yesterday in libtool's testsuite.
(_AT_ARG_OPTION): Detect write failure.
* doc/autoconf.texi (Diversion support): Document PREPARE_TESTS to
make libtool's use kosher.  Document m4_init.
(Programming in M4sh): Document AS_INIT.
(Writing Testsuites): Document limitation of AT_DATA file name.
* tests/autotest.at (unusual file names): New test.
(Banners, Keywords and ranges): Use correct shell.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMore corner cases in testsuite VAR=VALUE handling.
Eric Blake [Tue, 29 Jan 2008 17:24:12 +0000 (10:24 -0700)] 
More corner cases in testsuite VAR=VALUE handling.

* lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS): Fix quoting
bug.
<PARSE_ARGS_END>: Also detect leading digits in assignments.
* tests/autotest.at (Using atlocal): Enhance test to catch last
bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash bug.
Eric Blake [Tue, 29 Jan 2008 14:45:10 +0000 (07:45 -0700)] 
* doc/autoconf.texi (Limitations of Builtins) <.>: Mention bash bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix regression in handling VAR=VALUE arguments to testsuite.
Eric Blake [Tue, 29 Jan 2008 05:42:17 +0000 (22:42 -0700)] 
Fix regression in handling VAR=VALUE arguments to testsuite.

* lib/autotest/general.m4 (AT_INIT) <PARSE_ARGS_END>: Detect
leading = as invalid.  Defer use of command-line variable
assignments...
<PREPARE_TESTS>: ...here, after atconfig has been sourced.  Fix
regression in sourcing files.
* tests/autotest.at (Using atlocal): New test to catch this.
(Debugging a successful test, Choosing where testsuite is run):
Use correct shell.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
Eric Blake [Thu, 24 Jan 2008 03:24:47 +0000 (20:24 -0700)] 
* doc/autoconf.texi (Limitations of Usual Tools) <grep>: Document
BSD behavior on binary input.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMinor testsuite improvements.
Eric Blake [Mon, 28 Jan 2008 14:02:43 +0000 (07:02 -0700)] 
Minor testsuite improvements.

* lib/autotest/general.m4 (AT_INIT) <PREPARE_TESTS>: Use fewer
forks when sanitizing PATH.  Always output machine information,
not just when atconfig was located.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd 'testsuite -C dir'.
Eric Blake [Mon, 28 Jan 2008 13:57:46 +0000 (06:57 -0700)] 
Add 'testsuite -C dir'.

* lib/autotest/general.m4 (_AT_ARG_OPTION): Move missing argument
detection...
(AT_INIT) <PARSE_ARGS_END>: ...here, since -k always takes
argument.
<DEFAULTS>: Delay computation of variables based on $at_dir...
<PREPARE_TESTS>: ...to here, since -C can change $at_dir.
<TESTS>: Re-invoke via absolute name, since -C may be in effect.
<PARSE_ARGS>: Parse new option.
<HELP_TUNING>: Document it.
* tests/autotest.at (Choosing where testsuite is run): New test
for this feature.
(Keywords and ranges): Add test for missing -k argument.
* NEWS: Document this.
* doc/autoconf.texi (testsuite Invocation): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSync upstream files from gnulib.
Ralf Wildenhues [Thu, 24 Jan 2008 18:35:56 +0000 (19:35 +0100)] 
Sync upstream files from gnulib.

* build-aux/config.guess, build-aux/config.sub,
build-aux/texinfo.tex: Sync from gnulib.
* doc/fdl.texi, doc/make-stds.texi, doc/standards.texi:
Likewise.

17 years ago* doc/autoconf.texi (Particular Programs): Do not mention the
Ralf Wildenhues [Wed, 23 Jan 2008 06:28:19 +0000 (07:28 +0100)] 
* doc/autoconf.texi (Particular Programs): Do not mention the
Autoconf version in which the AC_PROG_INSTALL change was done.
Suggested by Paul Eggert.

17 years agoFix --help=recursive with multiple AC_CONFIG_SUBDIRS.
Ralf Wildenhues [Tue, 22 Jan 2008 20:48:51 +0000 (21:48 +0100)] 
Fix --help=recursive with multiple AC_CONFIG_SUBDIRS.

* lib/autoconf/general.m4 (_AC_INIT_HELP): If, for recursive help
mode, we change to the source directory, also set $ac_pwd so we
do not go back to the build tree for the next config subdir.
* tests/torture.at (Deep Package): Extend test to contain two
config subdirs on the top level.

17 years agoFix parallel `maintainer-check'.
Ralf Wildenhues [Tue, 22 Jan 2008 20:46:59 +0000 (21:46 +0100)] 
Fix parallel `maintainer-check'.

* Makefile.am (maintainer-check-tests): Depend on `all'.
Use `$(MAKE) $(AM_MAKEFLAGS)' instead of plain `make'.
* tests/Makefile.am (maintainer-check-c++, maintainer-check-posix):
Likewise.
(maintainer-check): Serialize the testsuite runs.

17 years agoAccept `+' in --enable and --with feature strings.
Ralf Wildenhues [Tue, 22 Jan 2008 20:40:50 +0000 (21:40 +0100)] 
Accept `+' in --enable and --with feature strings.

* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Accept `+'
in feature string for --enable/--with.  Convert to underscore
for variable name.

17 years agoAC_PROG_INSTALL: require installation of multiple files.
Ralf Wildenhues [Tue, 22 Jan 2008 06:00:44 +0000 (07:00 +0100)] 
AC_PROG_INSTALL: require installation of multiple files.

* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Require that
`install -c file1 file2 dir' works.
* doc/autoconf.texi (Particular Programs): Document this.
* NEWS: Update.

17 years agoImprove documentation about default include directives.
Eric Blake [Mon, 21 Jan 2008 19:45:44 +0000 (12:45 -0700)] 
Improve documentation about default include directives.

* doc/autoconf.texi (Generic Headers, Generic Declarations)
(Generic Structures, Generic Types)
(Generic Compiler Characteristics): Add links to
AC_INCLUDES_DEFAULT.
Reported by Reuben Thomas.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMerge branch 'master' of ericb@git.sv.gnu.org:/srv/git/autoconf
Eric Blake [Mon, 21 Jan 2008 19:16:02 +0000 (12:16 -0700)] 
Merge branch 'master' of ericb@git.sv.gnu.org:/srv/git/autoconf

17 years agoUpon release, send to info-gnu, not info at gnu.org.
Ralf Wildenhues [Sun, 20 Jan 2008 08:08:20 +0000 (09:08 +0100)] 
Upon release, send to info-gnu, not info at gnu.org.
Report by Karl Berry.

17 years ago* lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.
Eric Blake [Tue, 15 Jan 2008 15:49:08 +0000 (08:49 -0700)] 
* lib/m4sugar/m4sugar.m4 (m4_qlen): Use fewer macros.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix creation of manpages from test wrapper scripts.
Ralf Wildenhues [Tue, 8 Jan 2008 20:57:36 +0000 (21:57 +0100)] 
Fix creation of manpages from test wrapper scripts.

* tests/Makefile.am (noinst_SCRIPTS): Renamed from
check_SCRIPTS.  Building the wrappers for `all' allows help2man
to use them for the manpages.
Report by Benoit Sigoure.

17 years ago* bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.
Ralf Wildenhues [Tue, 8 Jan 2008 20:55:47 +0000 (21:55 +0100)] 
* bin/autoreconf.in: Discard stderr for $autoconf/$aclocal --help.

17 years agoFix some write failure cases in Autotest.
Ralf Wildenhues [Sun, 16 Dec 2007 21:24:14 +0000 (22:24 +0100)] 
Fix some write failure cases in Autotest.

* lib/autotest/general.m4 (AT_INIT): Do not exit successfully
upon write failures for --help, --version, --list.
Guard against write failures for intermediate created scripts.
<at_func_create_debugging_script>: Do not make the debugging
script executable if it is not complete.

17 years agoFix thinko in earlier patch - m4_join isn't defined yet.
Eric Blake [Wed, 12 Dec 2007 23:31:21 +0000 (16:31 -0700)] 
Fix thinko in earlier patch - m4_join isn't defined yet.

* lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
(_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
(m4_require): Use m4_do, not m4_join.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix some whitespace tests on cygwin.
Eric Blake [Wed, 12 Dec 2007 22:50:31 +0000 (15:50 -0700)] 
Fix some whitespace tests on cygwin.

* tests/tools.at (autom4te and whitespace in file names): Restore
font-lock.  Create $TMPDIR before it might be used.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix spurious testsuite failure with to M4 1.4.11.
Eric Blake [Wed, 12 Dec 2007 21:41:53 +0000 (14:41 -0700)] 
Fix spurious testsuite failure with to M4 1.4.11.

* tests/local.at (AT_CHECK_M4): Cater to new m4 error message.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize AC_REQUIRE.
Eric Blake [Wed, 12 Dec 2007 21:03:13 +0000 (14:03 -0700)] 
Optimize AC_REQUIRE.

* lib/m4sugar/m4sugar.m4 (m4_expansion_stack_push, _m4_defun_pro)
(_m4_defun_pro_outer, _m4_defun_epi, _m4_defun_epi_outer)
(m4_require): Avoid extra macro calls.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* tests/torture.at (srcdir): Fix quoting.
Ralf Wildenhues [Sat, 8 Dec 2007 11:00:02 +0000 (12:00 +0100)] 
* tests/torture.at (srcdir): Fix quoting.

17 years agoDo not pass top_srcdir to configure scripts in testsuite.
Ralf Wildenhues [Tue, 4 Dec 2007 21:49:36 +0000 (22:49 +0100)] 
Do not pass top_srcdir to configure scripts in testsuite.

* tests/autotest.at (srcdir propagation): Copy install-sh to
source tree.
(my only test): Drop setting of `top_srcdir'.
* tests/base.at (Input/Output): Likewise.
* tests/local.at (AT_CONFIGURE_AC): Copy install-sh,
config.guess, and config.sub to test source tree.
Drop AC_CONFIG_AUX_DIR setting.
(AT_CHECK_CONFIGURE): Drop setting of `top_srcdir'.
* tests/torture.at (Substitute a 2000-byte string): Drop
AC_CONFIG_AUX_DIR setting, copy install-sh to test source tree.
(Substitute a newline, datarootdir workaround): Likewise.
(Define a newline): Adjust for linenumber changes in configure.ac.
* tests/foreign.at (Libtool): Adjust comment to reflect changes.

17 years ago* tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test if `pwd` contains white...
Ralf Wildenhues [Tue, 4 Dec 2007 21:49:06 +0000 (22:49 +0100)] 
* tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): Skip test if `pwd` contains whitespace.

17 years agoQuote $abs_top_srcdir in tests.
Ralf Wildenhues [Tue, 4 Dec 2007 21:48:42 +0000 (22:48 +0100)] 
Quote $abs_top_srcdir in tests.

* tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
* tests/tools.at (Syntax of the shell scripts): Likewise.

17 years ago* tests/m4sh.at (LINENO): Quote $0.
Ralf Wildenhues [Tue, 4 Dec 2007 21:48:04 +0000 (22:48 +0100)] 
* tests/m4sh.at (LINENO): Quote $0.

17 years agoFix testsuite program wrapper for whitespace in `pwd`.
Ralf Wildenhues [Tue, 4 Dec 2007 21:47:42 +0000 (22:47 +0100)] 
Fix testsuite program wrapper for whitespace in `pwd`.

The problem here is that the usual mantra is that command
variables can contain arguments, thus we cannot just escape
$AUTOCONF, $AUTOM4TE etc.  The compromise is to put the
$top_builddir/tests directory early in $PATH, so that the
wrappers are found by their plain name.

* tests/wrapper.as: Put $testdir early in $PATH.
(AUTOCONF, AUTOHEADER, AUTOM4TE): Set to plain command names.

17 years agoProper config.status --file/--header and $srcdir escaping.
Ralf Wildenhues [Thu, 6 Dec 2007 21:54:29 +0000 (22:54 +0100)] 
Proper config.status --file/--header and $srcdir escaping.

* lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Quote special
characters in $ac_file_inputs.
(_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER): eval $ac_file_inputs
accordingly.
* tests/torture.at (datarootdir workaround): Adjust.
(AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Extend test.

17 years agoFix Autotest for whitespace in `pwd`.
Ralf Wildenhues [Tue, 4 Dec 2007 21:46:18 +0000 (22:46 +0100)] 
Fix Autotest for whitespace in `pwd`.

* lib/autotest/general.m4 (AT_INIT)
<at_func_create_debugging_script, Driver Loop>:
Quote $at_group_dir.
* tests/autotest.at (whitespace in absolute testdir): New test.

17 years ago* lib/autom4te.in: Quote @datadir@.
Ralf Wildenhues [Sat, 8 Dec 2007 10:48:10 +0000 (11:48 +0100)] 
* lib/autom4te.in: Quote @datadir@.

17 years agoProper file name escaping in Autoconf programs and Perl modules.
Ralf Wildenhues [Sat, 8 Dec 2007 10:46:43 +0000 (11:46 +0100)] 
Proper file name escaping in Autoconf programs and Perl modules.

This includes escaping of characters special to the shell
as well as special to Perl, e.g., leading `<' or `>'.
For example, when $file starts with `>', `open ">$file"'
wrongly tries to append to a different file.

* bin/autoconf.as: Fix quoting for autom4te options.
* lib/Autom4te/General.pm (shell_quote): New function, taken
from coreutils, written by Jim Meyering.
(mktmpdir): Use it.
* bin/autom4te.in (files_to_options, handle_m4): Use shell_quote
and open_quote.
* bin/autoreconf.in (parse_args): Likewise.
* bin/autoscan.in (main): Likewise.
* bin/autoupdate.in (main): Likewise.
* bin/autoheader.in: Likewise, fixing old insufficient escaping.
* bin/ifnames.in: Likewise, XFile usage fixes.
* tests/tools.at (autom4te and whitespace in file names): Extend
test.  Test twice, with special characters allowed on w32, and the
rest.  Test leading and trailing whitespace, for `open_quote'.
(autotools and whitespace in file names): New, analogous test.
Reported by Paul Eggert and Benoit Sigoure, additional suggestions
by Russ Allbery and Eric Blake.

17 years agoSync from Automake.
Ralf Wildenhues [Sat, 8 Dec 2007 10:39:34 +0000 (11:39 +0100)] 
Sync from Automake.

* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm,
lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Likewise.
* lib/Autom4te/FileUtils.pm (open_quote): New function.
(update_file, contents): Use it.

17 years ago* Makefile.am (autom4te-update): Rewrite for git.
Ralf Wildenhues [Sat, 8 Dec 2007 09:14:11 +0000 (10:14 +0100)] 
* Makefile.am (autom4te-update): Rewrite for git.

17 years ago* doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.
Ralf Wildenhues [Tue, 4 Dec 2007 21:36:22 +0000 (22:36 +0100)] 
* doc/autoconf.texi (autom4te Invocation, Autom4te Cache): Fix typos.

17 years agoAdd ChangeLog entry for last commit.
Ralf Wildenhues [Tue, 4 Dec 2007 21:36:02 +0000 (22:36 +0100)] 
Add ChangeLog entry for last commit.

17 years agoFix copyright years.
Ralf Wildenhues [Tue, 4 Dec 2007 21:30:33 +0000 (22:30 +0100)] 
Fix copyright years.

* Makefile.am, doc/install.texi, lib/autoconf/fortran.m4,
lib/autoconf/lang.m4, lib/freeze.mk: Likewise.

17 years agoManually resync with gnulib, since 'make cvs-update' no longer works.
Eric Blake [Tue, 4 Dec 2007 17:20:04 +0000 (10:20 -0700)] 
Manually resync with gnulib, since 'make cvs-update' no longer works.

* build-aux/config.guess: New upstream version.
* build-aux/config.sub: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWhen using older automake, don't downgrade build-aux/texinfo.tex.
Eric Blake [Tue, 4 Dec 2007 17:14:35 +0000 (10:14 -0700)] 
When using older automake, don't downgrade build-aux/texinfo.tex.

* configure.ac (AM_INIT_AUTOMAKE): Add no-texinfo.tex option.
* doc/Makefile.am (TEXINFO_TEX): Add.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix AC_C_BIGENDIAN bug caused by new awk method of substitution.
Paul Eggert [Tue, 27 Nov 2007 17:06:40 +0000 (09:06 -0800)] 
Fix AC_C_BIGENDIAN bug caused by new awk method of substitution.

* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Don't comment out the
#undef as this runs afoul of our new way of creating config.h.
Problem reported by Jim Meyering in
<http://lists.gnu.org/archive/html/autoconf-patches/2007-11/msg00164.html>.

17 years agoFix autom4te for unusual characters in input file names.
Ralf Wildenhues [Mon, 26 Nov 2007 18:40:50 +0000 (19:40 +0100)] 
Fix autom4te for unusual characters in input file names.

* bin/autom4te.in (files_to_options): Quote active characters
for the shell.
* tests/tools.at (autom4te and white space in file names):
New test.

17 years agoDocument Tru64 awk input splitting limitation.
Ralf Wildenhues [Mon, 26 Nov 2007 18:36:48 +0000 (19:36 +0100)] 
Document Tru64 awk input splitting limitation.

* doc/autoconf.texi (Limitations of Usual Tools) <awk>:
Document that Tru64 awk always splits $0.

17 years ago* lib/autotest/general.m4 (AT_INIT): Do not extract the
Stepan Kasal [Fri, 23 Nov 2007 23:35:16 +0000 (00:35 +0100)] 
* lib/autotest/general.m4 (AT_INIT): Do not extract the
`#AT_STOP_...' line at the end of each test.

17 years agoFix awk script optimization.
Ralf Wildenhues [Fri, 23 Nov 2007 18:42:00 +0000 (19:42 +0100)] 
Fix awk script optimization.

* lib/autotest/general.m4 (AT_INIT): For awk line number
extraction script, ensure `$at_group' has a defined value
even for the empty set, and properly quote its usage inside
the awk script.

17 years ago* doc/autoconf.texi (Shell Functions): New chapter. Document
Ralf Wildenhues [Thu, 22 Nov 2007 07:11:00 +0000 (08:11 +0100)] 
* doc/autoconf.texi (Shell Functions): New chapter.  Document
IRIX sh $0 issue in functions, move content from ...
(Portable Shell): ... here.
(Shell Script Compiler): Note that shell functions are not
totally unportable any more.

17 years ago* lib/autotest/general.m4 (AT_INIT): Exit awk script after
Ralf Wildenhues [Thu, 22 Nov 2007 07:09:03 +0000 (08:09 +0100)] 
* lib/autotest/general.m4 (AT_INIT): Exit awk script after
extracting the line numbers of the last needed test.

17 years ago* lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
Ralf Wildenhues [Tue, 20 Nov 2007 21:11:47 +0000 (22:11 +0100)] 
* lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
Fix quoting.

17 years agoFix IRIX testsuite debugging failures: $0 in functions.
Ralf Wildenhues [Mon, 19 Nov 2007 20:24:54 +0000 (21:24 +0100)] 
Fix IRIX testsuite debugging failures: $0 in functions.

* lib/autotest/general.m4 (AT_INIT) <at_func_create_debugging_script>:
Do not use $0 inside a function, as IRIX sh will set that to the
function name rather than the script invocation name.

17 years ago* lib/autotest/general.m4 (at_func_test): Use cached line numbers
Paolo Bonzini [Sun, 18 Nov 2007 17:01:24 +0000 (18:01 +0100)] 
* lib/autotest/general.m4 (at_func_test): Use cached line numbers
to extract test scripts.
(AT_INIT): Extract and cache test script line numbers.

17 years ago* lib/autotest/general.m4: Revert 2007-11-15 patch and
Ralf Wildenhues [Sun, 18 Nov 2007 16:35:02 +0000 (17:35 +0100)] 
* lib/autotest/general.m4: Revert 2007-11-15 patch and
subsequent fixups; the awk -> here-document conversion trashes
performance too much with AIX sh.

17 years ago* tests/local.at: Do not test m4, perl with AT_TESTED.
Ralf Wildenhues [Sun, 18 Nov 2007 16:24:56 +0000 (17:24 +0100)] 
* tests/local.at: Do not test m4, perl with AT_TESTED.

17 years agoDiagnose and guard against write errors dealing with config.status.
Ralf Wildenhues [Sun, 18 Nov 2007 13:03:06 +0000 (14:03 +0100)] 
Diagnose and guard against write errors dealing with config.status.

The general idea is this: all write failures from `configure'
writing `config.status' are indicated by $ac_write_error, which
is only checked at the end.  This is safe because config.status
code is not executed before the file is complete.  Other write
failures, be they inside config.status, or in sub shell/awk
scripts spawned from configure or config.status, typically need
earlier checking, as their results are used right afterwards.
* lib/autoconf/status.m4 (AC_OUTPUT): Initialize `ac_write_fail'
before writing config.status, check afterwards.
(_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
(_AC_OUTPUT_HEADERS_PREPARE,_AC_OUTPUT_CONFIG_STATUS):
Set `ac_write_error' for write failures to config.status.  Barf
upon write failures to temporary files.
Adjust note about closing and reopening the here-document.
(_AC_OUTPUT_HEADER, _AC_OUTPUT_LINK, _AC_OUTPUT_COMMAND)
(_AC_OUTPUT_MAIN_LOOP): Likewise, adjust note about closing and
reopening the here-document.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Ensure `ac_write_error' does not escape into config.status.
Also, add a couple of code paths not yet exercised in the test
suite: a config file with input from stdin, and a config header
output to stdout.
Suggestion for catching write errors by Bruno Haible.

17 years agoAvoid error with Tru64 awk and testsuite lines with many words.
Ralf Wildenhues [Sat, 17 Nov 2007 08:36:17 +0000 (09:36 +0100)] 
Avoid error with Tru64 awk and testsuite lines with many words.

* lib/autotest/general.m4 (AT_INIT): In the awk script that
reads the testsuite, set the field separator to an unusual value,
in order to not run over the limit of 199 fields.  Tru64 4.0D awk
even splits the input if $i, i>0, was never accessed in the script.

17 years agoRevert 2007-10-17 change.
Ralf Wildenhues [Sat, 17 Nov 2007 08:31:11 +0000 (09:31 +0100)] 
Revert 2007-10-17 change.

* TODO: Multiline args in config files and headers mean something
different and are not fixed, see
<http://lists.gnu.org/archive/html/autoconf-patches/2007-05/msg00017.html>
Report by Stepan Kasal.

17 years ago* doc/autoconf.texi (Generic Programs): Fix typo.
Ralf Wildenhues [Sat, 17 Nov 2007 08:24:52 +0000 (09:24 +0100)] 
* doc/autoconf.texi (Generic Programs): Fix typo.

17 years agoadd a chlog entry for the prev commit
Stepan Kasal [Fri, 16 Nov 2007 22:00:41 +0000 (23:00 +0100)] 
add a chlog entry for the prev commit

17 years agodoc: AC_*_TOOL does not canonicalize the prefix
Stepan Kasal [Fri, 16 Nov 2007 13:47:00 +0000 (14:47 +0100)] 
doc: AC_*_TOOL does not canonicalize the prefix

* doc/autoconf.texi (Generic Programs): Do not say that the *_TOOL
macros canonicalize, they simply use the `host_alias'.

17 years agoDiagnose write errors in config.status instantiations.
Ralf Wildenhues [Fri, 16 Nov 2007 06:51:10 +0000 (07:51 +0100)] 
Diagnose write errors in config.status instantiations.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
(_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
on write errors.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Extend test to also check for some write error failures, using...
<AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
Report by Bruno Haible.

17 years agoIndentation fixups.
Ralf Wildenhues [Fri, 16 Nov 2007 06:48:55 +0000 (07:48 +0100)] 
Indentation fixups.

* lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
indentation.
(_AT_CHECK): Use less indentation, to save space.

17 years agoAdd witness macro for @top_build_prefix@ substitution.
Ralf Wildenhues [Thu, 15 Nov 2007 21:30:15 +0000 (22:30 +0100)] 
Add witness macro for @top_build_prefix@ substitution.

* lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
(_AC_OUTPUT_FILE): Mention it here.

17 years ago* lib/autotest/general.m4 (at_func_test): Remove.
Ralf Wildenhues [Thu, 15 Nov 2007 21:23:59 +0000 (22:23 +0100)] 
* lib/autotest/general.m4 (at_func_test): Remove.
(AT_INIT): Pre-extract test groups into separate files.
(AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
Remove at-test-source files together with the $at_group_dir.
* tests/autotest.at (Long test source lines): New test.

17 years agoShell functions and variables may share a namespace.
Ralf Wildenhues [Thu, 15 Nov 2007 06:58:03 +0000 (07:58 +0100)] 
Shell functions and variables may share a namespace.

* doc/autoconf.texi (Portable Shell): Mention Solaris sh
limitation.

17 years ago* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
Paul Eggert [Wed, 14 Nov 2007 23:42:59 +0000 (15:42 -0800)] 
* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match

gnulib.

17 years ago* lib/autoconf/status.m4: Fix a couple of comment typos.
Ralf Wildenhues [Wed, 14 Nov 2007 20:57:37 +0000 (21:57 +0100)] 
* lib/autoconf/status.m4: Fix a couple of comment typos.

17 years ago* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
Ralf Wildenhues [Wed, 14 Nov 2007 20:55:59 +0000 (21:55 +0100)] 
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.

17 years agoFix typo in my previous changelog entry.
Paul Eggert [Tue, 13 Nov 2007 20:42:02 +0000 (12:42 -0800)] 
Fix typo in my previous changelog entry.

17 years agoClean up the rule to create "expr".
Jim Meyering [Tue, 13 Nov 2007 08:34:52 +0000 (09:34 +0100)] 
Clean up the rule to create "expr".

* tests/Makefile.am (expr): Don't redirect directly to target.
Redirect just once, not for each echo statement.
Use $@, not literal "expr".

17 years agoDon't worry about preprocessor when testing long long.
Paul Eggert [Tue, 13 Nov 2007 08:16:19 +0000 (00:16 -0800)] 
Don't worry about preprocessor when testing long long.

See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
* doc/autoconf.texi (Preprocessor Arithmetic): New section.
(AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
These no longer check for preprocessor flaws.
* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
Do not check for preprocessor flows.

17 years agoAdapt dependencies, now that a version change doesn't modify configure.ac
Jim Meyering [Tue, 13 Nov 2007 07:56:32 +0000 (08:56 +0100)] 
Adapt dependencies, now that a version change doesn't modify configure.ac

* GNUmakefile: Remove "make clean" kludge.
* lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
configure.ac.
Don't redirect directly to target.
Use $@, not literal "version.m4".

17 years ago* doc/autoconf.texi (Making testsuite Scripts): Document
Ralf Wildenhues [Tue, 13 Nov 2007 07:30:58 +0000 (23:30 -0800)] 
* doc/autoconf.texi (Making testsuite Scripts): Document

":;{" shorthand as in previous patch.

2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>

* doc/autoconf.texi (Limitations of Builtins): Document problem
with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
for the workaround.
* lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
Use ":;{" shorthand.
* tests/Makefile.am ($(srcdir)/package.m4): Likewise.

17 years agoAdd more non-srcdir build support.
Jim Meyering [Mon, 12 Nov 2007 19:09:13 +0000 (20:09 +0100)] 
Add more non-srcdir build support.

* GNUmakefile (dummy): Split a long line.
Add -v option to autoreconf invocation.

17 years agoAdd autoreconf's -v option, to give some feedback.
Jim Meyering [Sun, 11 Nov 2007 20:46:53 +0000 (21:46 +0100)] 
Add autoreconf's -v option, to give some feedback.
Don't imply that $(_curr-ver) is the new version string.

17 years agoRemove the autoreconf-provided INSTALL, so that we regenerate it.
Jim Meyering [Sun, 11 Nov 2007 20:14:20 +0000 (21:14 +0100)] 
Remove the autoreconf-provided INSTALL, so that we regenerate it.

* GNUmakefile (dummy): Remove INSTALL.

17 years agoRemove racy commands to build scripts in bin/ and tests/.
Jim Meyering [Sun, 11 Nov 2007 19:08:52 +0000 (20:08 +0100)] 
Remove racy commands to build scripts in bin/ and tests/.

* man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
are guaranteed to be built, remove the rules that tried to build
them.  Before, with a parallel build, these rules could lead to
two processes writing tests/wrapper.in concurrently.

17 years agoBuild in man/ only *after* building in bin/ and tests/.
Jim Meyering [Sun, 11 Nov 2007 17:02:34 +0000 (18:02 +0100)] 
Build in man/ only *after* building in bin/ and tests/.

* Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
in both bin/ and tests/.

Signed-off-by: Jim Meyering <meyering@redhat.com>
17 years agoAccommodate non-srcdir build-from-checkout.
Jim Meyering [Sun, 11 Nov 2007 19:05:08 +0000 (20:05 +0100)] 
Accommodate non-srcdir build-from-checkout.

* build-aux/git-version-gen: Require an additional parameter: $srcdir.
Use git's --git-dir=$srcdir/.git option.
Add quotes, in case tarball_version_file contains shell meta-characters.
* GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
* configure.ac: Pass "." to git-version-gen.

17 years agoAvoid spurious test failures due to version skew.
Jim Meyering [Sun, 11 Nov 2007 17:08:53 +0000 (18:08 +0100)] 
Avoid spurious test failures due to version skew.

* GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.

17 years agoAvoid warnings about conftest.dSYM directories on Mac OS X Leopard.
Ralf Wildenhues [Mon, 12 Nov 2007 19:34:44 +0000 (20:34 +0100)] 
Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.

* lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
Remove conftest.dSYM directory.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
(_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
Remove `conftest.*' recursively.
* lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
Likewise.
(_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
* THANKS: Update.
Report and analysis by Jeff Squyres and Peter O'Gorman.

17 years agoFix typos in variable names.
Benoit Sigoure [Mon, 12 Nov 2007 08:46:16 +0000 (09:46 +0100)] 
Fix typos in variable names.

* tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
17 years agoDocument that $((expression)) is not portable.
Benoit Sigoure [Sun, 11 Nov 2007 17:41:58 +0000 (18:41 +0100)] 
Document that $((expression)) is not portable.

* doc/autoconf.texi (Shell Substitutions): Here.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
17 years agoIgnore configure --help* errors due to LINENO-impaired shells.
Ralf Wildenhues [Sun, 11 Nov 2007 17:55:24 +0000 (18:55 +0100)] 
Ignore configure --help* errors due to LINENO-impaired shells.

* tests/torture.at (Configuring subdirectories, Deep Package):
In the --help* tests in read-only trees, make `.' temporarily
writable again for the `stderr' file, and ignore errors due to
the attempt to write configure.lineno.
Report by Patrick Welche.

17 years agoGenerate package.m4 in build-dir, not srcdir.
Jim Meyering [Sat, 10 Nov 2007 21:26:01 +0000 (22:26 +0100)] 
Generate package.m4 in build-dir, not srcdir.

* tests/Makefile.am (package.m4): Adjust target.
Don't redirect directly to $@.
(CLEANFILES): Add package.m4.
($(TESTSUITE)): Depend on just-built package.m4, not the one
in $(srcdir).
When running $(AUTOTEST), search "." before searching $(srcdir).

17 years agoAvoid a race condition that would make parallel "distclean" fail.
Jim Meyering [Sat, 10 Nov 2007 21:22:44 +0000 (22:22 +0100)] 
Avoid a race condition that would make parallel "distclean" fail.

* tests/Makefile.am (distclean-generic): Replace the default,
automake-provided rule with an identical one, but with an additional
dependency on distclean-local.  Simply adding the dependency would
cause automake not to emit the rule at all.
* BUGS: Building with -jN works, now.

17 years agoDistribute git-version-gen.
Jim Meyering [Sat, 10 Nov 2007 21:03:12 +0000 (22:03 +0100)] 
Distribute git-version-gen.

* Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
since GNUmakefile is distributed, and requires it for dist* rules.

17 years agoRemove two more generated files from version control.
Jim Meyering [Sat, 10 Nov 2007 11:22:46 +0000 (12:22 +0100)] 
Remove two more generated files from version control.

* INSTALL: Remove generated file.
* lib/autoscan/autoscan.list: Remove generated file.