Commit Graph

3197 Commits

Author SHA1 Message Date
Akim Demaille
4f944b43d5 * bin/autoscan.in (%c_keywords): Build it at top level.
Map to 1 in order to simplify its uses.
2001-11-26 10:53:00 +00:00
Akim Demaille
32e1426355 * bin/autoscan.in (&scan_c_file, &scan_sh_file, &scan_makefile):
Remove $filepath, useless.
(&scan_makefile): Don't remove the $(FOO), ${FOO} and @FOO@
variables, they are really part of the tokens.
Split the input line on spaces and then look for tokens.
Now autoscan ceases to ask for AC_PROG_LEX for the package Bison
because of `lex$U.$(OBJEXT)'.
(&scan_files): Use "@list" instead of join.
* doc/Makefile.am (CLEANFILES): Add *.fns.
2001-11-26 10:52:46 +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
Akim Demaille
d1228cd752 * bin/autoscan.in (used): New.
Use it.
2001-11-26 10:51:44 +00:00
Akim Demaille
6e35b89f81 * bin/autoscan.in (&scan_c_file): Better parsing of CPP
directives.
(&scan_sh_file): Remove a duplicate pattern.
(&check_configure_ac): Use long options.
* lib/autoscan/headers (alloca.h): Check with AC_FUNC_ALLOCA.
2001-11-26 10:51:29 +00:00
Akim Demaille
32598e1b56 * bin/autoscan.in (scan_c_file): Fix the handling of C comments.
Before, having a line containing the opening of a multi line
comment made the whole line be ignored.
2001-11-26 10:51:14 +00:00
Akim Demaille
47b2167bee * doc/autoconf.texi (Using an Autotest Test Suite): New.
(testsuite Scripts): Be one of its subsection.
(Autotest Logs): New.
2001-11-26 10:50:58 +00:00
Akim Demaille
7403ea8e6e Test groups are now run two directories deeper.
* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
at_top_builddir.
* lib/autotest/general.m4 (AT_INIT): Compute srcdir,
top_srcdir, builddir and top_builddir.
Use `at_*dir' relatively to the directory containing the
suite, use `*dir' when relatively to the current group dir.
2001-11-26 10:50:36 +00:00
Paul Eggert
b62a4287e3 Spelling fixes. 2001-11-25 15:13:03 +00:00
Alexandre Duret-Lutz
4359321b90 * doc/autoconf.texi (Using System Type): Add an example of `case
$host' usage so people quit using `case $target' everywhere.
2001-11-22 18:07:56 +00:00
Akim Demaille
0a24bd0df5 * doc/autoconf.texi (Installation Directory Variables): Englishoes
spotted by Jim Meyering.
2001-11-22 16:12:40 +00:00
Paul Eggert
5c2dde6b40 This patch implements a `long double' suggestion by Oliver Kiddle.
* lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
static, to catch errors if the value isn't known at compile-time
and the compiler supports dynamic arrays.  Change its name from
`_array_' to `test_array' to avoid potential name clashes.
(AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
better than double.  Catch a bug in GCC 2.95.2 x86.
* doc/autoconf.texi (C Compiler): Document the above.
* NEWS: Likewise.
2001-11-16 20:12:10 +00:00
Paul Eggert
20a38b69d9 Document that HAVE_LONG_DOUBLE is defined only if long double is
better than double.
2001-11-16 20:11:46 +00:00
Paul Eggert
4af2c02cdf (C Compiler): Document that HAVE_LONG_DOUBLE is defined only if
long double is better than double.
2001-11-16 20:10:52 +00:00
Paul Eggert
71a641098a (AC_LANG_BOOL_COMPILE_TRY(C)): Make the array
static, to catch errors if the value isn't known at compile-time
and the compiler supports dynamic arrays.  Change its name from
`_array_' to `test_array' to avoid potential name clashes.
(AC_C_LONG_DOUBLE): Make it a compile-time test, not a run-time
test.  Do not define HAVE_LONG_DOUBLE if `long double' is no
better than double.  Catch a bug in GCC 2.95.2 x86.
2001-11-16 20:09:58 +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
0ff9d603a6 Typo. 2001-11-13 15:05:20 +00:00
Akim Demaille
bd4aa3ba7d * lib/autotest/general.m4 (AT_INIT): After having run the test
group, go back to the initial directory, not to at_suite_dir.
2001-11-13 15:04:16 +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
3c94358e38 * lib/autotest/general.m4: Change tests?' into groups?' in
variable names when referring to a single test group, or to
`suite' when referring to the whole test suite.
`at_last_test' is removed: m4 compute at_format itself.
(at_stdout, at_stder1, at_stderr): New variables.
(AT_CHECK): Use them.
2001-11-13 14:03:01 +00:00
Akim Demaille
1a08742d0c * lib/autotest/general.m4 (AT_INIT): Be sure to put `.', relative,
in PATH.
Create `testsuite.dir/003/run' instead of `testsuite.003'.
Do it as soon as a test fails, don't wait till the end of the test
suite.
Don't remove $as_me.[0-9]*, since these files no longer exist.
2001-11-13 13:15:48 +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
1205c2b251 Start a new layout for Autotest: `testsuite' creates
`testsuite.dir' in which the at-check-line etc. files are to be
found, and `testsuite.dir/003' where the test group 3 is run.
* lib/autotest/general.m4 (AT_INIT): at_tests_dir,
at_check_line_file, at_format, at_test_normalized, at_group_dir
are new variables.
Create the directories.
Use absolute paths for at- files.
(AT_CHECK): Adjust.
2001-11-13 11:39:14 +00:00
Akim Demaille
7a8927ef93 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
(m4_car2): New.
(m4_car): Properly quote arguments.
2001-11-13 10:42:05 +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
Paul Eggert
ec7f1f72dc * lib/autoconf/c.m4 (AC_C_PROTOTYPES): Define __PROTOTYPES too.
* doc/autoconf.texi (C Compiler): AC_C_PROTOTYPES now defines
  __PROTOTYPES too.
2001-11-12 18:48:58 +00:00
Paul Eggert
fd7fab58ee (C Compiler): AC_C_PROTOTYPES now defines __PROTOTYPES too. 2001-11-12 18:48:02 +00:00
Paul Eggert
ebb2e722f7 (AC_C_PROTOTYPES): Define __PROTOTYPES too. 2001-11-12 18:46:44 +00:00
Akim Demaille
9bbb080f54 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Use AC_CHECK_FUNCS. 2001-11-12 16:11:43 +00:00
Akim Demaille
371707922f * lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/functions.m4, lib/autoconf/general.m4,
* lib/autoconf/headers.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
specify to what the macro should be defined (typically to 1).
2001-11-12 16:08:52 +00:00
Akim Demaille
1492d7c53b * lib/autoconf/functions.m4 (AC_FUNC_STRTOD): AC_SUBST POW_LIB.
From Jim Meyering.
2001-11-12 15:47:35 +00:00
Akim Demaille
80171f9a36 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Use
AC_TRY_EVAL to run $LEX, not AC_TRY_COMMAND.  This validates the
definition used by Automake where LEX is +/- "${missing} lex" and
`missing' itself contains variables.
2001-11-12 08:59:54 +00:00
Akim Demaille
945977991b * lib/autotest/general.m4 (AT_INIT): Push KILL at the end.
Now that M4sh pushes BODY, the comments were output at the end of
the test suites.
2001-11-12 08:59:40 +00:00
Akim Demaille
61c422e02b Typo. 2001-11-09 16:04:55 +00:00
Akim Demaille
b863f27fcc * bin/autoreconf.in (&autoreconf): Run aclocal before tracing, so
that we can trace macros from aclocal.m4.
Trace AC_PROG_LIBTOOL, not AM_PROG_LIBTOOL, since the latter is
obsoleted, and redirect to the former anyway.
Reported by Ralf Corsepius.
2001-11-08 17:21:38 +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
Kevin Ryde
33f893c0f9 * autoconf.texi (Limitations of Usual Tools): Note HP-UX cc
doesn't accept .S files.
2001-11-08 00:29:44 +00:00
Akim Demaille
21b8d2f2dc * lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
* lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
(_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
* bin/autom4te.in (warn_forbidden): New.
(handle_output): Use it.
Read m4_pattern_forbid with messages.
2001-11-07 19:34:20 +00:00
Akim Demaille
eec4a3470d * bin/autom4te.in (--normalize): Remove.
* lib/autom4te.in: Adjust.
2001-11-05 17:39:33 +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
Alexandre Duret-Lutz
fc9782f204 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
the --prefix option, also remove it's argument.
2001-11-05 13:04:41 +00:00
Akim Demaille
06de04bb1c * doc/autoconf.texi (testsuite Invocation): Update.
(Writing testsuite.at): Update.
2001-11-05 09:32:35 +00:00
Akim Demaille
5d5e1e7964 * doc/autoconf.texi: s/@code/@command/ where appropriate. 2001-11-03 12:02:16 +00:00
Akim Demaille
8993e7a7fa * lib/Autom4te/General.pm: (&catfile, &canonfile)
(&file_name_is_absolute): New, wrappers around routines from
File::Spec.
Use and export them.
(&find_configure_ac): Optionally take a directory where to look at.
* bin/autoreconf.in (&parse_args): Trim the configure.ac part of
the arguments.
Default @ARGV to `.', not find_configure_ac.
(&autoreconf): Argument is a directory.
Trace AC_CONFIG_SUBDIRS and schedule the subdirs for autoreconf'ing.
* doc/autoconf.texi (autoreconf Invocation): Update.
2001-11-03 12:01:35 +00:00
Akim Demaille
3b536e758c * lib/Autom4te/General.pm (@export_vars, @export_subs)
(@export_forward_subs): New.
Add basename, dirname, and fileparse.
(@EXPORT): Adjust.
* bin/autoreconf.in (&autoreconf): Fix call to fileparse.
Don't look for aclocal flags if we already know aclocal is not
used.
Move aclocal.m4t only if it exists.
Reported by Ezra Peisach.
2001-11-03 11:59:48 +00:00
Akim Demaille
03cd990470 * bin/autoreconf.in (&parse_args): Work only on the configure.ac
passed on command line, defaulting to ./configure.ac if present.
(&maybe_autoreconf, File::Find): Remove, unused.
(&autoreconf): If autoconf is not used, don't try to trace.
2001-11-03 11:59:35 +00:00
Akim Demaille
43aaa22d43 * configure.ac: Bump to 2.52g. 2001-11-02 17:35:50 +00:00
Akim Demaille
0ca3d2c678 . 2001-11-02 17:26:24 +00:00