Commit Graph

5239 Commits

Author SHA1 Message Date
Jim Meyering
dcae1fc785 Add autoreconf's -v option, to give some feedback.
Don't imply that $(_curr-ver) is the new version string.
2007-11-13 00:10:48 +01:00
Jim Meyering
b69f240e06 Remove the autoreconf-provided INSTALL, so that we regenerate it.
* GNUmakefile (dummy): Remove INSTALL.
2007-11-13 00:10:48 +01:00
Jim Meyering
576a8cbe13 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.
2007-11-13 00:10:48 +01:00
Jim Meyering
00e9eaeacc 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>
2007-11-13 00:10:48 +01:00
Jim Meyering
3b793a96bb 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.
2007-11-13 00:10:48 +01:00
Jim Meyering
703fbf369a Avoid spurious test failures due to version skew.
* GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.
2007-11-13 00:10:48 +01:00
Ralf Wildenhues
fa8beeb3dc 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.
2007-11-12 20:38:08 +01:00
Benoit Sigoure
db607230cd 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>
2007-11-12 09:46:16 +01:00
Benoit Sigoure
6d8cbe20d4 Document that $((expression)) is not portable.
* doc/autoconf.texi (Shell Substitutions): Here.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
2007-11-12 09:42:37 +01:00
Ralf Wildenhues
00865ec842 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.
2007-11-11 18:55:24 +01:00
Jim Meyering
d6fb497d07 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).
2007-11-11 09:25:51 +01:00
Jim Meyering
8c6b4481bd 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.
2007-11-11 09:25:51 +01:00
Jim Meyering
5f0cbd4774 Distribute git-version-gen.
* Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
since GNUmakefile is distributed, and requires it for dist* rules.
2007-11-11 09:25:50 +01:00
Jim Meyering
20cb79c19f Remove two more generated files from version control.
* INSTALL: Remove generated file.
* lib/autoscan/autoscan.list: Remove generated file.
2007-11-11 09:22:43 +01:00
Paul Eggert
727b3efa93 * GNUmakefile (PATH): Remove stray apostrophes; they become
part of PATH, which isn't wanted here.
2007-11-11 08:47:46 +01:00
Ralf Wildenhues
feef9e7e7e New config files output variable `top_build_prefix'.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
`top_build_prefix'.
* doc/autoconf.texi (Preset Output Variables): Document it.
* NEWS: Update.
Report by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2007-11-09 07:51:19 +01:00
Ralf Wildenhues
83bd220b0c Avoid expr for arithmetic evaluation if the shell accepts $((...)).
* lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
function, to parametrize arithmetic with expr vs. the shell.
Use it where possible.
Suggestion by Benoit Sigoure.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2007-11-09 07:49:29 +01:00
Benoit Sigoure
dc6058abe0 Adjust the documentation of autotest WRT atlocal.
* doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
	when using Automake, to write a rule to produce atlocal, since it's
	an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
	distributed, not atconfig.in.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
2007-11-04 18:13:48 +01:00
Eric Blake
c79a33de32 Update list information.
* README: Mention new autoconf-commit list.
* doc/autoconf.texi (Introduction): Mention autoconf-commit list.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-11-04 09:56:50 -07:00
Ralf Wildenhues
44fa054865 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo. 2007-11-04 17:02:30 +01:00
Ralf Wildenhues
bf5fec7028 * lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround. 2007-11-04 17:00:57 +01:00
Ralf Wildenhues
e198ad2dcb * build-aux/.gitignore: Ignore mkinstalldirs. 2007-11-04 16:59:38 +01:00
Ralf Wildenhues
17add51e4e * doc/autoconf.texi (autoreconf Invocation): Fix an underfull line. 2007-11-04 16:58:26 +01:00
Jim Meyering
6304c69b45 s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
* build-aux/git-version-gen: This syncs from coreutils.
2007-11-03 22:56:26 +01:00
Jim Meyering
8b5560fc07 Adjust the build procedure so "make check" works reliably.
* README-hacking: Include an extra step between "make" and
"make check" to ensure that the latter passes.
2007-11-03 19:17:32 +01:00
Jim Meyering
f4208c7aa9 Use just-built tools, when possible.
* GNUmakefile (PATH): Set and export here, ...
(dummy): ... rather than here.
2007-11-03 19:15:13 +01:00
Ralf Wildenhues
249f9a38a8 * tests/Makefile.am ($(srcdir)/package.m4): Work around bash
exit status bug.
2007-11-03 18:55:45 +01:00
Ralf Wildenhues
0ed7d2bd84 * configure.ac (AC_PREREQ): Require version 2.60, for
AC_PROG_SED, AC_PROG_GREP.
2007-11-03 18:47:50 +01:00
Benoit Sigoure
c563e730bf Document a bug in GNU Bash with compound commands and redirections.
* doc/autoconf.texi (Limitations of Builtins): Mention that GNU
Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
workaround.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-11-03 10:59:29 -06:00
Eric Blake
8248eff79e Support m4 1.4.5 in testsuite.
* tests/torture.at (Define a newline): Exclude line numbers in
error message.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-11-03 08:46:52 -06:00
Jim Meyering
0ab871c5bb Remove automake-provided files from version control.
* build-aux/elisp-comp: Remove file.
* build-aux/install-sh: Remove file.
* build-aux/missing: Remove file.
* build-aux/mdate-sh: Remove file.
* build-aux/.gitignore: New file.
Suggestion from Ralf Wildenhues.
2007-11-03 15:39:23 +01:00
Eric Blake
dd3c3f2e27 Adjust version comparison to account for git snapshot numbers.
* lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
component separator.
* doc/autoconf.texi (Number processing Macros)
<m4_version_compare>: Document this change.
* tests/m4sugar.at (m4@&t@_version_compare): Test it.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-11-03 07:20:47 -06:00
Bruno Haible
dc51583646 * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
(AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
<http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
Suggested by Paul Eggert.
2007-10-30 19:09:54 -07:00
Jim Meyering
4bf3c4459c README-hacking: Only Autoconf, Automake, and Perl are required to _build_.
List Gzip and Tar separately.  Suggested by Ralf Wildenhues.
2007-10-28 15:32:42 +01:00
Jim Meyering
a441cb176c README-hacking: Recommend running autoreconf -vi.
* GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
so that we use just-built tools when they're available.
Suggestions from Ralf Wildenhues.
2007-10-28 15:30:07 +01:00
Jim Meyering
441bb2a1c3 Make inter-release --version output more useful.
Now, each unofficial build has a version "number" like 2.61a-19-58dd,
which indicates that it is built using the 19th change set
(in _some_ repository) following the "v2.61a" tag, and that 58dd
is a prefix of the commit SHA1.
* build-aux/git-version-gen: New file.
* configure.ac: Run it to set the version.
(AM_INIT_AUTOMAKE): Don't check NEWS here.
* Makefile.am (dist-hook): Arrange so that .version appears only
in distribution tarballs, never in a checked-out repository.
* .gitignore: Add .version here, too.  Just in case.
* tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
not configure.ac, now that the version number changes automatically.

Ensure that $(VERSION) is up to date for dist-related targets.
* GNUmakefile: Arrange to rerun autoconf, if the version reported by
git-version-gen doesn't match $(VERSION), but only for dist targets.
2007-10-28 15:29:01 +01:00
Ralf Wildenhues
0f34566872 Fix `Deep Package' failure with a configure script early in PATH
* tests/torture.at (Deep Package): Add `.' early in PATH.
Report by Jim Meyering.
2007-10-27 19:10:50 +02:00
Jim Meyering
7ffc555888 Remove all generated files from version control.
* aclocal.m4: Remove.
* configure: Remove.
* Makefile.in: Remove, along with all other Makefile.in in subdirs.
* .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
* README-hacking: New file: how to build from just-checked-out sources.
2007-10-27 12:44:59 +02:00
Eric Blake
17b1f091f4 Improve corner case of m4_expand.
* lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
efficiently.
* tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
* doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
documentation.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-23 21:04:12 -06:00
Paul Eggert
ede69c1af0 * doc/make-stds.texi: Update from gnulib. 2007-10-23 13:43:16 -07:00
Paul Eggert
8186482d97 * lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
problem reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.
2007-10-22 14:29:02 -07:00
Eric Blake
893aa58d92 Document previous patch.
* doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
preprocessor.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-22 11:54:27 -06:00
Paul Eggert
592eacfdc2 Don't check for bug in HP-UX 11.00 cpp.
* lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
Use -1ull rather than -1u, since that causes problems with gnulib; see
<http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
2007-10-22 09:55:30 -07:00
Ralf Wildenhues
906afff203 Fix typos in test names.
* tests/autotest.at (Backquote command substitution)
(Multiline backquote command substitution)
(Parenthetical command substitution)
(Multiline parenthetical command substitution): Fix typos in
test names.
2007-10-22 07:24:46 +02:00
Eric Blake
926d62d861 * configure: Regenerate.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-21 17:46:05 -06:00
Ralf Wildenhues
b4b372d68e Fix config status generation with Tru64 ksh.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
escaping of backslash in here-documents.
2007-10-21 20:49:50 +02:00
Ralf Wildenhues
8ccb244888 Fix `Deep Package' test failure on FreeBSD.
* tests/torture.at (Deep Package): Do not add `.' to $PATH
unnecessarily.  Do not try running `/bin/sh configure' with a
configure script to be found in $PATH, if the shell does not do
this resolution.  Fixes test failure on FreeBSD.
2007-10-21 20:15:38 +02:00
Ralf Wildenhues
da605a63cd Fix config header generation with AIX awk.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
script, use helper array D_is_set, as `" 0"' does not evaluate
to true for AIX awk.
2007-10-21 19:41:00 +02:00
Eric Blake
063c2b4f85 * tests/autotest.at (Banners): Reinstate test, with typo corrected.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-21 10:02:17 -06:00
Ralf Wildenhues
92412a20d5 Validate testsuite range arguments.
* lib/autotest/general.m4 (Defaults): Validate input ranges ...
<at_func_validate_ranges>: ... using this new function.
* tests/autotest.at (Keywords and ranges): Test invalid ranges.
Test --list with ranges and keywords.
(Banners): Remove one now-failing test.
2007-10-21 17:34:44 +02:00