Commit Graph

2462 Commits

Author SHA1 Message Date
Paul Eggert
c7a560937c * doc/autoconf.texi (Limitations of Usual Tools): Warn about
sed 'command1;command2'.
2005-01-03 08:32:02 +00:00
Paul Eggert
36fab699bd Add support for C89 vs C99. Update copyright dates. 2005-01-03 07:43:25 +00:00
Paul Eggert
8660164d69 * bin/autoreconf.in (autoreconf_current_directory): AM_INIT_AUTOMAKE
signals that the package uses Automake; a `Makefile.am' is typical but
not essential.  Reported by Magnus Therning.
* tests/torture.at (autoreconf.): New banner.
(autoreconf and non-AC configure): Rename to `Non-Autoconf
AC_CONFIG_SUBDIRS'.
(autoreconf an empty directory): Rename to `Empty directory'.
(Unusual Automake input files): New test.
2005-01-02 17:15:40 +00:00
Paul Eggert
8cf50071d7 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH):
If the variable to set is already set, set ac_cv_path_$1
to the preset value.
2005-01-02 16:48:44 +00:00
Paul Eggert
778ced2bda * lib/autotest/general.m4 (AT_CAPTURE_FILE): New macro.
(AT_SETUP): Clear AT_capture_files.
(_AT_CHECK): On failure, log each of AT_capture_files.  Fix comment.
(AT_KEYWORDS): Fix comment typo.
* tests/autotest.at (AT_CHECK_AT): Use AT_CAPTURE_FILE.
* tests/local.at (AT_CHECK_CONFIGURE): Use AT_CAPTURE_FILE.
* doc/autoconf.texi (Writing testsuite.at): Document AT_CAPTURE_FILE.
2005-01-01 08:12:12 +00:00
Paul Eggert
fd2691e7e2 Undo unnecessary 2nd part of previous change to m4sh.m4. 2005-01-01 07:54:40 +00:00
Paul Eggert
d992a7ce41 * BUGS (Minor Problems): Warn about makefile limitations.
* Makefile.am: Find and update `INSTALL' in $(srcdir).
* man/Makefile.am: Find and update manual pages in $(srcdir).
2004-12-29 06:54:44 +00:00
Paul Eggert
5ad4560f86 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Test candidate
shells in subshell.
2004-12-25 07:50:01 +00:00
Paul Eggert
506530e5f9 * doc/autoconf.texi (Limitations of Builtins) <case>, <read>. 2004-12-22 21:50:28 +00:00
Akim Demaille
6834e94321 * lib/autotest/general.m4 (AT_LINE): Don't add srcdir here, to
avoid cluttering displayed messages.  Rather, prepend srcdir where
AT_LINE is used for log files.
2004-12-22 13:29:09 +00:00
Stepan Kasal
9655f04da2 * lib/autoconf/status.m4: Quote ``$tmp'' in many places.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Fix the comment, as traps are
  no longer part of the macro, quote the occurrence of ``$tmp''.
* doc/autoconf.texi (Forbidden Patterns): Typo.
2004-12-21 14:24:01 +00:00
Akim Demaille
fa96c5a632 * lib/autotest/general.m4 (AT_INIT): Make sure the "ok" etc. are
separated from the test title by forcing a white space.
2004-12-21 12:47:57 +00:00
Akim Demaille
337a92a529 Enable Emacs navigation within testsuite.log files.
* lib/autotest/general.m4 (AT_CLEANUP): Add an hint for Emacs to
use the compilation mode.
(AT_LINE): Point to the srcdir.
2004-12-21 12:25:08 +00:00
Paul Eggert
ea190d85f1 Pass TESTSUITEFLAGS. 2004-12-20 04:10:21 +00:00
Paul Eggert
b788fb9a74 * lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
* lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.
2004-12-19 14:40:36 +00:00
Paul Eggert
1a135aaa8d * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): New macro.
(_AT_CHECK): Use it.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): Remove.
(AS_ESCAPE): Fix comment.
* tests/autotest.at: Adjust section banner comments.
(AT_CHECK_AT): Accept STATUS and STDERR.
(AT_CHECK_AT_TEST): Likewise.
(Invalid brace-enclosed parameter expansion)
(Multiline command from M4 expansion)
(Double-M4-quoted command): New tests.
2004-12-19 14:25:56 +00:00
Paul Eggert
68b14fa353 * doc/autoconf.texi: Update GNU FDL version from 1.1 to 1.2. 2004-12-18 00:44:52 +00:00
Akim Demaille
2e8bb72892 * lib/autoconf/general.m4 (AC_SUBST, AC_SUBST_FILES): Pass $1 to
m4_pattern_allow.
Suggested by Alexandre Duret-Lutz.
* doc/autoconf.texi (Setting Output Variables): Catch up.
2004-12-17 16:17:18 +00:00
Stepan Kasal
04c2cc1dbc * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Fix comment. 2004-12-17 14:41:16 +00:00
Stepan Kasal
bc1b400cc4 * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
remove the comment which said we cannot.
2004-12-17 14:36:23 +00:00
Stepan Kasal
bf15a42ad1 Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
Reini Urban and Paul Eggert for reporting the dependencies.

* lib/autoconf/headers.m4 (AC_HEADER_RESOLV): New macro.
* doc/autoconf.texi (AC_HEADER_RESOLV): Document it.
(AC_HEADER_STAT): @cvindex{STAT_MACROS_BROKEN}, not @acindex.
2004-12-17 14:32:51 +00:00
Stepan Kasal
b26f03d5be * bin/autoscan.in: Open autoscan.log only after ``parse_args'';
so that eg. ``autoscan --help'' doesn't truncate it.
2004-12-17 14:21:50 +00:00
Paul Eggert
632f88fbc0 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Remove generated
conftest files.
2004-12-15 22:37:46 +00:00
Paul Eggert
bea2437161 * lib/autotest/general.m4 (_AT_CHECK) [--trace]: Do not enable shell
tracing on commands with possibly-escaped newlines.
* doc/autoconf.texi (Writing testsuite.at): Delete documentation of the
discontinued behavior and its implications.
* tests/autotest.at (BS-newline in command, ^BS-newline in command)
(BSx641-newline in command, BS-BS-newline in command)
(BSx640-newline in command, Newline-CODE-BS-newline in command)
(Single-quote-BS-newline in command)
(Single-quote-newline-BS-newline in command): New tests.
2004-12-14 01:04:25 +00:00
Paul Eggert
a090c3988a * lib/m4sugar/m4sh.m4 (AS_EXECUTABLE_P): Use test -f && test -x
on platforms where it works.
(_AS_TEST_PREPARE): Test for ``test -x''.
(_AS_BROKEN_TEST_PREPARE): Nuke.
2004-12-13 18:22:55 +00:00
Paul Eggert
5d3ad5cb5a * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Move the trap commands ...
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): ... here;
  give only 4-letter prefix to AS_TMPDIR, comment fixed.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FEATURE_CHECK): Don't
  create the temporary directory.
  (_AC_FEATURE_CHECK_LENGTH): Work in current directory.
2004-12-13 17:58:03 +00:00
Paul Eggert
498b9c8446 * bin/autoheader.in: Exit if no AC_CONFIG_HEADERS was found. 2004-12-13 07:15:26 +00:00
Alexandre Duret-Lutz
84bb23ef6f * doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>: Typo. 2004-12-12 11:56:40 +00:00
Paul Eggert
37fb0cb6be Don't use negated character sets. 2004-12-12 09:51:10 +00:00
Paul Eggert
56f937c296 Simplifications to bin/Makefile.am and man/Makefile.am. 2004-12-10 23:57:42 +00:00
Paul Eggert
04dcf25d6e * bin/.cvsignore: Add autoconf.in.
* tests/.cvsignore: Add wrapper.in.

* man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes.

* lib/autotest/general.m4 [--trace] (AT_INIT): Do not `set -v'.

* tests/autotest.at: New file.
* tests/suite.at: Include it.
* tests/Makefile.am: Distribute it.

* lib/autotest/general.m4 [--trace] (_AT_CHECK): Do not enable
  shell tracing on a command that could contain multiple lines.
* doc/autoconf.text: Document that fact and its implications.
* lib/m4sugar/m4sh.m4 (AS_ESCAPE_FOR_EXPAND): New macro.
* tests/autotest.at (Multiline backquote command substitution,
  Multiline parameter expansion, Literal multiline command,
  Multiline parenthetical command substitution): Remove XFAIL.
2004-12-10 07:08:52 +00:00
Paul Eggert
61966b580a * man/Makefile.am (autoconf.1): Regenerate when `autoconf.as' changes. 2004-12-10 05:00:17 +00:00
Paul Eggert
0557a75b76 * doc/autoconf.texi (Libraries): Clarify problems with AC_CHECK_LIB
and suggest AC_SEARCH_LIBS.
2004-12-09 21:32:05 +00:00
Paul Eggert
5574d5b7ba * configure.ac (test suite): Cease to generate wrapper scripts.
* configure: Regenerate.
* lib/freeze.mk (MY_AUTOM4TE): Wrap the uninstalled autom4te directly.
(m4f_dependencies): Adjust accordingly.
* tests/Makefile.am (Wrappers): Generate wrapper scripts.
(wrapper.in): Generate it in the build directory.
(MAINTAINERCLEANFILES): Delete wrapper.in.
(CLEANFILES): Add wrapper.in.
* tests/wrapper.as: Move AS_INIT to very top, preserving copyright in
the output.  Replace each $as_me with a @wrap_program@.
* tests/wrapper.in: Delete it; we always build it.

* bin/Makefile.am (autoconf.in): Generate it in the build directory.
(EXTRA_DIST): Remove autoconf.in.
(CLEANFILES): Add autoconf.in.
(autoconf): Find autoconf.in in the build directory.
* bin/autoconf.in: Delete it; we always build it.
2004-12-09 21:14:45 +00:00
Paul Eggert
c567224651 * lib/autotest/general.m4 (AT_INIT): Replace a tr' with a sed'. Join
PATH members so as to not prepend an empty element.  Move a comment.
* Makefile.am (SUBDIRS): Build in `tests' last.
* tests/Makefile.am (installcheck-local): Add check-local dependencies.
2004-12-09 21:01:37 +00:00
Paul Eggert
dee725cb84 * lib/mdate-sh: Don't use "set - x$ls_command /". 2004-12-08 20:37:41 +00:00
Paul Eggert
34fa7e5287 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Fix typo in previous
patch: extra "-l"s.
2004-12-07 18:23:06 +00:00
Paul Eggert
3077af0f26 Add support for UNICOS getmntent. 2004-12-06 21:24:19 +00:00
Paul Eggert
636a864089 * lib/autoconf/general.m4 (AC_DEFINE, AC_DEFINE_UNQUOTED): Factor
out the common code to ...
(_AC_DEFINE_Q).
2004-12-05 19:55:44 +00:00
Paul Eggert
26fc6c2b61 * lib/autoconf/functions.m4 (AC_FUNC_MEMCMP): Use "char c = '\200';". 2004-12-02 21:51:06 +00:00
Paul Eggert
b9bc8e0a42 * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Prefer -qlanglvl=extc89. 2004-12-02 20:09:23 +00:00
Paul Eggert
389b830ea8 Minor rewording to fix problems reported by Ralf Wildenhues. 2004-11-29 21:43:33 +00:00
Paul Eggert
3f0a1ceaad * NEWS: Add ^L above each release. 2004-11-29 21:25:15 +00:00
Paul Eggert
76da3417c6 * HACKING: Refer to "coreutils", not "File, Shell or Text utils".
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): A typo in the comment.
2004-11-29 04:34:31 +00:00
Paul Eggert
f72fc4eb29 Fix documentation problems reported by Russ Boylan in
<http://lists.gnu.org/archive/html/bug-autoconf/2004-11/msg00056.html>,
along with some nearby cruft.
* doc/autoconf.texi (Libtool): Libtool can be used without
Automake (not without Autoconf).
(Introduction): Mention lists.gnu.org.
* BUGS: Don't mention bugs.gnu.org.
Remove mention of ancient libtool compatibility problem.
* NEWS: Mention that bugs.gnu.org is kaput.
* README: Likewise.  Mention where mailing list archives can be found.
2004-11-29 04:29:08 +00:00
Paul Eggert
a9f8c9f48e * doc/autoconf.texi (Pretty Help Strings): Go back to single-quoting 2004-11-26 08:58:50 +00:00
Paul Eggert
09158bc896 * lib/autoconf/general.m4 (AC_ARG_ENABLE, AC_ARG_ENABLE): Expand $1.
* doc/autoconf.texi (Pretty Help Strings): more fixes
2004-11-23 19:13:33 +00:00
Paul Eggert
bbf4de9810 * doc/autoconf.texi (Pretty Help Strings): Fix typo. 2004-11-23 09:01:18 +00:00
Paul Eggert
2749e0cd5b * doc/autoconf.texi: Explain overquoting in descriptions. 2004-11-22 23:32:25 +00:00
Paul Eggert
d134956a15 * lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Move test. 2004-11-16 18:05:25 +00:00