Commit Graph

475 Commits

Author SHA1 Message Date
Akim Demaille
b187b0e2d8 * tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
Fixes false failures on Darwin.
2002-04-22 10:23:12 +00:00
Akim Demaille
e3bd4560c9 Regen. 2002-04-22 09:10:58 +00:00
Paul Eggert
298b5b57f3 Minor spelling and grammar fixes. 2002-04-21 07:25:20 +00:00
Paul Eggert
62843c4d18 (AT_INIT): Fix typos in yesterday's ZSH_VERSION fixes. Bug reported
by Raja R Harinath.
2002-04-21 06:35:08 +00:00
Paul Eggert
dd756ac977 Minor spelling and grammar fixes. 2002-04-20 06:09:01 +00:00
Paul Eggert
a4a5fae257 We can't have zero arguments, so remove "$@" workarounds that are not
portable to Zsh.
2002-04-19 19:07:49 +00:00
Paul Eggert
adef0cf29a (AT_INIT): Use Zsh alias to work around "$@" problem. 2002-04-19 19:07:04 +00:00
Akim Demaille
498fec2282 Revert the previous patch. 2002-04-12 10:10:10 +00:00
Akim Demaille
36a73b5656 Reformat. 2002-04-12 10:00:13 +00:00
Akim Demaille
15769d2c6a * tests/wrappl.as: New, M4sh precursor of wrappl.in. 2002-04-12 09:56:10 +00:00
Akim Demaille
9d658eddd9 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
workaround for ${1+"$@"}.
* doc/autoconf.texi (Shell Substitutions): Explain it.
From Oliver Kiddle and Peter Stephenson.
Have M4sh perform minimal shell sanitizing.
* lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
part into...
(_AS_PREPARE): this new macro.
(AS_PREPARE): New.
(AS_INIT): Invoke AS_SHELL_SANITIZE.
* tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
Adjust Autoconf and Autotest.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
Invoke _AS_PREPARE (not AS_PREPARE) in addition to
AS_SHELL_SANITIZE.
Use this M4sh to generate Autoconf's shell scripts.
* tests/wrapsh.as: New, precursor of wrapsh.in.
* tests/Makefile.am: Include lib/freeze.mk to get the dependencies
on Autotest and M4sh.
($(TESTSUITE)): Use $(autotest_m4f_dependencies).
(wrapsh.in): New target.
* bin/autoconf.as: New, precursor of autoconf.in.
(autoconf.in): New target.
2002-04-10 15:58:19 +00:00
Akim Demaille
b7c024b172 * lib/autoconf/status.m4 (_AC_CONFIG_FILE, _AC_CONFIG_HEADER)
(_AC_CONFIG_COMMAND, _AC_CONFIG_LINK): New.
Use dnl, not the KILL diversion.
Extracted from...
(AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS)
(AC_CONFIG_LINKS): here.
Adjust.
Don't use the KILL diversion, as it kills spurious output, which
results in failures being hidden.
Use m4_defn where appropriate.
(AC_CONFIG_IF_MEMBER): Kill the real bug: a spurious parenthesis
after the second argument.
Use m4_defn.
* lib/autom4te.in (Autoconf, Autotest, M4sh): Don't pass --warning
syntax, as it is provided by M4sugar.
* tests/torture.at (Multiple AC_CONFIG_FILES): New.
2002-04-03 13:35:59 +00:00
Peter Eisentraut
931312faea Integrate AC_PROG_CC_STDC into AC_PROG_CC.
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): Rename to _AC_PROG_CC_STDC.
AU_DEFUN old name.  Use _AC_COMPILE_IFELSE.
(AC_PROG_CC): Call _AC_PROG_CC_STDC.
(AC_C_INLINE): Do not require AC_PROG_CC_STDC.
(AC_C_CONST): Same.
(AC_C_INLINE): Same.
(AC_C_PROTOTYPES): Same.  Require AC_PROG_CC instead.
* doc/autoconf.texi, NEWS: Document.
* tests/mktests.sh (au_exclude_list): Add AC_PROG_CC_STDC and
AC_C_CROSS.
2002-04-02 18:22:08 +00:00
Paul Eggert
f07b247b73 Don't rely on "PATH=test:$PATH test-1" working
as POSIX requires, as it doesn't work with Zsh.
2002-03-25 22:02:24 +00:00
Akim Demaille
7dc0b2892f * tests/semantics.at (AC_C_BIGENDIAN): s/unknow/unknown/.
From Aaron Ucko.
2002-03-19 15:30:18 +00:00
Akim Demaille
84c660d6dd Version 2.53. 2002-03-08 13:10:19 +00:00
Akim Demaille
fbee53ee14 * Makefile.am (AUTOMAKE_OPTIONS): 1.6. 2002-03-08 12:44:46 +00:00
Akim Demaille
f12cd33d89 * lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): New, for
parallel builds.
2002-03-04 15:08:23 +00:00
Akim Demaille
d03ab7023b * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
case/esac, some shells don't support it.
Reported by Zack Weinberg.
* tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
2002-02-06 17:51:01 +00:00
Akim Demaille
c72b68217e * tests/torture.at (Configuring subdirectories): Skip if aclocal
is not available.
2002-02-06 09:39:54 +00:00
Paul Eggert
f3aff19f8d * doc/autoconf.texi (Specific Compiler Characteristics):
Describe HP-UX cc bug workaround more accurately.
* lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Cast to long,
not unsigned long.
* tests/semantics.at (AC_CHECK_SIZEOF): Check non-GCC
cross-compilers, too.
2002-02-05 22:56:16 +00:00
Akim Demaille
7411fbed13 * tests/Makefile.am (check_SCRIPTS): Use it, instead of WRAPPERS,
to make sure they are up to date when `check' is run.
2002-02-05 08:28:08 +00:00
Akim Demaille
2dad628b1e * tests/semantics.at (AC_CHECK_SIZEOF): Split into two tests: one
for plain code, the other for cross-compilation code.  The latter
is now run with GCC only.
* doc/autoconf.texi (Compilers and Preprocessors): New.
2002-01-30 15:11:49 +00:00
Akim Demaille
06978acd7b * tests/torture.at (Configuring subdirectories): Use configure.in,
so that aclocal 1.4 works.
Reported by Alexandre Duret-Lutz and Larry Schmitt.
2002-01-29 17:19:29 +00:00
Akim Demaille
3b84d54756 * lib/autotest/general.m4 (AT_INIT): Don't be ridiculous: adjust
AUTOTEST_PATH *after* it was set.
Don't put `.' in the PATH: the user should be precise and `./' if
needed.  In addition, given that the test suite does some `cd', if
`.' is in the path, the `tested programs' sections will report
programs found in the test suite's directory, while during the
tests (performed in their own directory), these programs are no
longer visible.  In other words, the results is confusing and
useless.
* tests/m4sh.at: Adjust: don't rely on `.' being in the PATH.
2002-01-28 10:46:00 +00:00
Akim Demaille
fa219f72d2 Don't DISTCLEAN package.m4. 2002-01-25 10:49:12 +00:00
Akim Demaille
b6f98b4ec1 Regen. 2002-01-24 17:39:46 +00:00
Pavel Roskin
1bface2d6c Add atconfig and atlocal. 2002-01-22 17:40:35 +00:00
Akim Demaille
621ee52455 * lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): New, from Jim
Meyering.
* doc/autoconf.texi (Function Portability): Document the strnlen
limitation.
(Particular Functions): Document AC_FUNC_STRNLEN.
* lib/autoscan/functions: Adjust.
2002-01-11 13:25:08 +00:00
Akim Demaille
2e36a44431 * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Don't create
package.m4, since is really depends upon configure.ac, not
configure.
* doc/autoconf.texi (testsuite Scripts): Adjust.
* tests/Makefile.am (package.m4): New.
EXTRA_DIST it since its a source.
2002-01-06 20:48:25 +00:00
Akim Demaille
adb90f0708 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Move the AC_SUBST
of PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING,
and PACKAGE_BUGREPORT from here...
(_AC_INIT_DEFAULTS): to here, since it is unrelated to the
arguments.
(_AC_INIT_PREPARE): AC_DEFINE these symbols.
* lib/autotest/general.m4: Use AT_PACKAGE_*, not PACKAGE_*.
(AT_INIT): No longer catch `^PACKAGE_(BUGREPORT|STRING)$'.
* tests/tools.at (autoheader): Adjust.
* tests/atspecific.m4 (AT_CHECK_DEFINES): Adjust.
2002-01-06 20:48:10 +00:00
Akim Demaille
7e51b629b6 * lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
abs_builddir, top_buildpath to abs_top_builddir, srcpath to
abs_srcdir, top_srcpath to abs_top_srcdir.
(_AC_OUTPUT_FILES): Adjust.
* NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
* tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
* tests/wrappl.in, tests/wrapsh.in: Adjust.
2001-12-14 17:57:27 +00:00
Akim Demaille
ad3db0c13b * tests/autoreconf.in, tests/autom4te.in, tests/autoupdate.in:
Remove, replaced by...
* tests/wrappl.in: Be common for all the Perl executables.
In particular autoscan and autoheader want -I.
* configure.ac: Adjust.
* lib/autoscan/headers: errno.h is portable.
2001-11-26 10:52:31 +00:00
Paul Eggert
b62a4287e3 Spelling fixes. 2001-11-25 15:13:03 +00:00
Akim Demaille
2f4a677544 * tests/m4sh.at (LINENO): Protect from autom4te's substitution by
hand.
* tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
2001-11-13 15:18:26 +00:00
Akim Demaille
9b4635b1cb * tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH)
(AT_DATA_AUTOCONF):  Also protect @&t@ from autom4te.
(AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER): Pass no --include
option.
(AT_CHECK_CONFIGURE): Use absolute paths.
(_AT_CHECK_AC_MACRO): Create aclocal.m4 with AC_STATE_SAVE in it.
The problem is still the old one: there is no means in M4 (that I
know about) to create a defining macro, because there is no means
to create `$1' etc., therefore, the defining macro ``swallows''
all the arguments meant to the defined macro.
2001-11-13 14:43:50 +00:00
Akim Demaille
2b88201591 * tests/atspecific.m4 (AT_DATA_AUTOCONF): New.
* tests/aclocal.m4: Remove, as it is no longer used.
2001-11-13 14:05:25 +00:00
Akim Demaille
1f3be93758 * tests/tools.at: Use absolute paths, since we are no longer run
in place.
2001-11-13 12:03:11 +00:00
Akim Demaille
10dca17297 Now that tests are running in their own private dir, there is no
need to list the files to remove at the end of tests groups.
* lib/autotest/general.m4 (_AT_CLEANUP_FILE, AT_CLEANUP_FILES):
(AT_data_files, at_data_files): Remove.
(AT_CLEANUP, AT_DATA): Simplify.
(AT_INIT): Adjust.
Remove the group dir if !debug && !failed.
* tests/atspecific.m4: Adjust.
2001-11-13 11:41:08 +00:00
Akim Demaille
68ffec6920 * tests/aclocal.m4 (AC_STATE_SAVE): s/LIBOBJS/LIB@&t@OBJS/ to cope
with stricter rules on LIBOBJS.
2001-11-13 09:56:46 +00:00
Akim Demaille
00b6183c8e * bin/autoreconf.in (&autoreconf): AC_CONFIG_SUBIDRS are to be
processed only if present.
* tests/torture.at (Configuring subdirectories): Use autoreconf
instead of successive calls to autoconf.
Add a nonexistent subdirectory to exercise the patch above.
Reported by Ralf Corsepius.
2001-11-08 16:15:20 +00:00
Akim Demaille
191ad539dc * tests/Makefile.am (testsuite): Rename this target as...
($(TESTSUITE)): this.
From Nicolas Joly.
2001-11-05 17:35:02 +00:00
Akim Demaille
89af419b83 Regen. 2001-10-31 10:43:31 +00:00
Akim Demaille
f1644c8ebb * tests/Makefile.am (atconfig): Remove this target, Automake
handles it now.
2001-10-31 10:42:16 +00:00
Akim Demaille
d7089440fc * m4/: Remove, merged into...
* config/: here.
2001-10-24 13:30:56 +00:00
Akim Demaille
e4ac357228 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Name the generated
file in @configure_input@.
Don't mention `automatically' in addition to `generated'.
* tests/torture.at (#define header templates): Adjust.
2001-10-19 17:34:53 +00:00
Paul Eggert
f37f894c46 (DIRNAME_TEST): New arg $3.
Allow "dirname //FOO" to return either / or //, as POSIX allows
either behavior.
2001-10-18 23:44:54 +00:00
Pavel Roskin
5c84691fbd Add install-sh. 2001-10-10 20:08:15 +00:00
Akim Demaille
fa70471557 * tests/tools.at (AT_CHECK_PERL_SYNTAX): Check autoreconf.
(Syntax of the shell scripts): Don't.
* bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in: Don't
bother with $force since...
* lib/Autom4te/General.pm: does.
2001-10-08 08:26:43 +00:00
Akim Demaille
0a757bb3dc * lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
(m4_list_cmp): Use $0 to reinvoke yourself.
(m4_patsubsts): New.
(m4_strip, m4_version_unletter): Use it.
* tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.
2001-10-08 08:22:49 +00:00