Commit Graph

1608 Commits

Author SHA1 Message Date
Akim Demaille
29be1600df * bin/autom4te.in: Use &fatal where more appropriate than &error.
(freeze): When exiting, use $exit_code.
* lib/autoconf/fortran.m4: Comment changes.
2003-09-04 13:01:09 +00:00
Akim Demaille
e99011cfd5 * tests/mktests.sh (ac_exclude_list): Add AC_FC_FUNC. 2003-09-04 12:52:35 +00:00
Paul Eggert
bfbc355ad4 Add support for newer Fortran dialects. The F77 interface is
unchanged, and continues to support Fortran 77.  New FC macros
correspond to all the old F77 macros.
2003-09-03 00:35:52 +00:00
Akim Demaille
9a71d441c5 * tests/m4sugar.at (cross_warning): Make sure to enable the
output, so that we can track spurious m4sugar output.
* tests/local.at: Require 2.57.
(AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't m4_default the arguments that
are defaulted by AT_CHECK anyway.
Use AT_CHECK_AUTOM4TE.
* lib/m4sugar/m4sugar.m4: There should be no output at all: add a
missing dnl.
2003-08-27 15:14:03 +00:00
Akim Demaille
358bc50517 Output stack traces in warnings.
* lib/m4sugar/m4sugar.m4 (_m4_warn): New.
Replace the former...
(m4_warn): Pass the call stack to _m4_warn.
* bin/autom4te.in: Adjust to output the call stack.
* tests/m4sugar.at (m4@&t@_warn): Adjust.
2003-08-22 13:38:33 +00:00
Akim Demaille
b9d97d70dc * lib/Autom4te/Request.pm, lib/Autom4te/C4che.pm: New.
* bin/autom4te.in: Adjust.
2003-08-22 08:09:12 +00:00
Akim Demaille
a5b49f45d6 * lib/Autom4te/General.pm (&file_name_is_absolute): Remove.
(&verbose): Remove.
(&getopt): Adjust the note and verb channels, depending upon
--verbose.
* bin/autoheader.in, bin/autom4te.in, bin/autoscan.in,
* bin/autoupdate.in: Adjust.
Use &verb, not &verbose.
2003-08-21 17:50:11 +00:00
Akim Demaille
cf2308cf7b * bin/autoheader.in (&parse_args): Use &parse_warnings and
&parse_WARNINGS.
($help): Use Autom4te::ChannelDefs::usage.
* bin/autoscan.in: Use Autom4te::ChannelDefs.
* lib/Autom4te/General.pm: Don't export error: you don't own it.
2003-08-21 17:31:25 +00:00
Akim Demaille
e491f83180 First stab at preserving warnings between calls to autom4te,
including when the cache is used.
There are still several issues: (i) there are too many runs of m4
(one for include, one for warnings, and some more), (ii) warnings
spreading on several lines are not handled gracefully, (iii) the
code meant to have the call stack display for errors does not work
(its handling should move from m4 to autom4te).
* bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
Use them.
(@preselect): Add m4_warn.
($exit_status): Remove, use $exit_code.
($help): Use Autom4te::ChannelDefs::usage.
(&handle_m4): No longer define the m4_warnings.
At each run, extract and report the warnings.
Always cache the result, including if the exit status is on
failure, since if nothing changes, we should result in the same
failure, hence we can use the cache.
* lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
Remove.
(m4_warn): Redefine as a do-nothing: it is its invocation that
matters, as warnings are now reported via traces.
* lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
the contents of m4_warn: make it _call_ m4_warn, so that tracing
the latter reveals calls to the former.
Adjust the tests.
* tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
2003-08-21 17:25:28 +00:00
Akim Demaille
561b426684 * lib/Autom4te/FileUtils.pm (&find_file): Walk the @include in
forward order.
* lib/Autom4te/ChannelDefs.pm: Doc typos.
(&parse_warnings): Accept a list of warning requests.
(&usage): Return a string, not a side effect.
(cross): New warning category.
2003-08-21 16:15:40 +00:00
Akim Demaille
59b8e13699 * lib/Autom4te/Configure_ac.pm (&find_configure_ac)
(&require_configure_ac): Accept an optional directory argument.
($configure_ac): Remove.
* lib/Autom4te/General.pm (&find_configure_ac, &canonfile)
(&catfile): Remove.
* bin/autoheader.in, bin/autoreconf.in, bin/autoupdate.in,
* bin/autoscan.in: Adjust.
2003-08-21 06:55:41 +00:00
Akim Demaille
c99bf18b5c * bin/autoupdate.in, bin/auheader.in, bin/autoreconf.in,
* bin/autom4te: Adjust.
In particular, be Autoconf tools are really silent when properly
working, bind the verbosity of the 'note' channel to $verbose.
* lib/Autom4te/General.pm (&find_file, &mtime, &update_file)
(&xsystem, &contents): Remove, since they are exported by...
* lib/Autom4te/FileUtils.pm: this.
More perldoc.
* lib/Autom4te/General.pm (&up_to_date_p): Move to...
* lib/Autom4te/FileUtils.pm: here.
2003-08-20 12:52:18 +00:00
Akim Demaille
990192b641 * lib/Autom4te/Channels.pm, lib/Autom4te/ChannelDefs.pm
* lib/Autom4te/Configure_ac.pm, lib/Autom4te/FileUtils.pm: New,
from CVS Automake.
2003-08-20 06:51:33 +00:00
Akim Demaille
1649ca79e6 * Makefile.am (automake_cvsweb, automake_cvsargs, autom4te_files)
(autom4te-update): New.
* Makefile.cfg (update): Bind autom4te-update.
2003-08-20 06:29:54 +00:00
Derek Price
e5333fb2d2 * lib/autotest/general.m4: Comment various HELP_* diversions.
(PARSE_ARGS_BEGIN): New section for option parsing related
initialization.
(AT_ARG_OPTION,AT_ARG_OPTION_ARG,_AT_ARG_OPTION): New macros to define
package specific options and associated help.
2003-08-19 18:21:39 +00:00
Alexandre Duret-Lutz
50af7ca5ab * lib/autom4te.in (Automake-preselections): Preselect
AC_CONFIG_LIBOBJ_DIR, AC_CONFIG_LINKS, m4_include,
and m4_sinclude.
2003-08-19 07:58:37 +00:00
Alexandre Duret-Lutz
51e84cdd91 * lib/autom4te.in (Autoconf): Move all args except aclocal.m4? into ...
(Autoconf-without-aclocal-m4): ... this new language.
* doc/autoconf.texi (autom4te Invocation): Mention
Autoconf-without-aclocal-m4.
2003-08-19 07:56:56 +00:00
Derek Price
30c4fcea69 * lib/autotestgeneral.m4 (AT_INIT): Reformat test summary line to print
DESCRIPTION rather than FILE and LINE.  Shorten result to fit in new,
shorter column three.  Add DESCRIPTION to log file content.
2003-08-14 13:49:05 +00:00
Derek Price
b2722eb1c8 * lib/autotest/general.m4 (AT_INIT): Correct typo in final status
output.
2003-08-13 21:35:28 +00:00
Derek Price
43eea41b9e * lib/autotest/general.m4 (AT_CHECK): Use new _AT_CHECK API.
(AT_CHECK_NOESCAPE): Move core functionality to...
(_AT_CHECK): ...this new macro.
2003-08-12 19:01:34 +00:00
Derek Price
bdb8ae014e * lib/autotest/general.m4 (AT_CHECK): Move core functionality...
(AT_CHECK_NOESCAPE): ...to this new macro.
2003-08-07 17:47:48 +00:00
Paul Eggert
a0efe16f10 (_AS_UNSET_PREPARE): Work around a bug in Bash 2.01. Problem reported
by Brian Gough in
<http://mail.gnu.org/archive/html/bug-autoconf/2003-07/msg00106.html>.
2003-08-01 01:10:58 +00:00
Paul Eggert
fbb2facb8b (AC_F77_LIBRARY_LDFLAGS): Also ignore -lcrt1.o, for OS X. 2003-07-25 21:23:10 +00:00
Paul Eggert
dbc482418a (AC_C_INLINE): Wrap the '#define inline ...'
inside '#ifndef __cplusplus'.  Problem reported by
Bob Friesenhahn.
2003-07-07 07:41:07 +00:00
Paul Eggert
efd247863d (AC_FUNC_MMAP): Cast pointer to
'long', not 'int', for benefit of Sun's recent C++ compilers
(trivial change).  See:
http://mail.gnu.org/archive/html/autoconf-patches/2003-07/msg00007.html
(This really should be 'intptr_t', not 'long', but that would
take more work.)
2003-07-07 06:18:01 +00:00
Akim Demaille
2978241cd8 * lib/Makefile.am (autom4te.cfg): Make it read only.
Depend on Makefile since it contains substitutions.
From Paolo Bonzini.
* lib/autom4te.in (args): Add local.at? for Autotest args.
This change was made on autom4te.cfg which is generated.
Reported by Raja R. Harinath.
2003-06-25 13:38:54 +00:00
Akim Demaille
e3c0ef0f8d * lib/autotest/general.m4 (AT_INIT): Report a single config.log,
not all of them.  This fixes 1. the fact that when testing
Autoconf there are many many config.log, 2. the incorrect use of
top_srcdir to find config.log.
Don't mix the detailed output of failed test with the summary of
failures.  Rather, append detailed log afterwards.
2003-06-23 15:29:02 +00:00
Akim Demaille
9c4ac634f9 Regen. 2003-06-23 08:39:09 +00:00
Kevin Ryde
dc17cd9dac (_AC_PROG_CC_STDC): Extend test program to get an
error from OSF 4.0 Compaq cc in its default almost-ANSI mode, thereby
ensuring we add -std1 for full-ANSI.
2003-06-21 00:01:04 +00:00
Akim Demaille
97df4a3e31 Regen with fixed Automake. 2003-06-20 08:18:15 +00:00
Akim Demaille
f6d54deb80 * lib/autotest/general.m4: Use at_times_file only if used.
From Nicolas Joly.
2003-06-20 07:53:03 +00:00
Akim Demaille
2e52204a16 Regen. 2003-06-20 07:34:29 +00:00
Paolo Bonzini
c102ed8494 Add expected failures to autotest. 2003-06-12 11:03:55 +00:00
Akim Demaille
39364b438d White space and Copyright updates. 2003-06-02 06:56:51 +00:00
Akim Demaille
ff9230c146 * bin/autom4te.in, bin/autoscan.in, bin/autoheader.in: White space
changes.
* lib/Autom4te/General.pm (&backname): Remove, no longer used by
Autoconf nor Automake.
(&contents): New, from Automake.
PODify.
* lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
Remove `#include <stdlib.h>' from the list; we should never
2003-06-02 06:55:03 +00:00
Paul Eggert
3a1b2ca878 * NEWS, doc/autoconf.texi (Particular Functions),
lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Check that mktime
is the inverse of localtime.
2003-05-28 20:03:52 +00:00
Alexandre Duret-Lutz
a4d96919f1 * lib/Autom4te/General.pm (END): Print diagnostics to STDERR.
(handle_exec_errors): New function.  Work around $! being
altered by WEXITSTATUS.
(xqx, xsystem): Use handle_exec_errors.
2003-05-25 11:02:21 +00:00
Alexandre Duret-Lutz
bc41c779b7 * lib/Autom4te/General.pm (END): Rewrite exit code processing.
Do not call `_exit()', simply modify `$?'.
(xsystem): Reset $! before running system, and check it afterward.
* tests/tools.at (autoupdating AC_PREREQ): Expect exit status
63 for version mismatches.
2003-05-23 18:16:56 +00:00
Akim Demaille
c12a45b703 * lib/autoconf/status.m4: Prefer "TAB-SP" to "SP-TAB", because of
Emacs' danger whitespace.el behavior (smashing "useless" spaces in
the middle of a line).
* lib/m4sugar/m4sugar.m4: Likewise.
Remove useless spaces in comments.
2003-05-23 13:58:06 +00:00
Akim Demaille
172bea7727 * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an
exit 63, so that we (or Automake's "missing") can tell the
difference with a plain failure.
* doc/autoconf.texi (Notices): Adjust.
2003-05-23 13:14:30 +00:00
Akim Demaille
c17b6fe889 Whitespace change. 2003-05-23 13:13:30 +00:00
Akim Demaille
4c64440ba1 * Makefile.am, bin/Makefile.am, config/Makefile.am,
* doc/Makefile.am, lib/autoconf/Makefile.am, tests/Makefile.am:
White spaces cleanup.
2003-05-23 13:09:28 +00:00
Jim Meyering
1512240def (_AC_PROG_CXX_EXIT_DECLARATION):
Remove `#include <stdlib.h>' from the list; we should never
make confdefs.h include <stdlib.h> or <cstdlib>, because the
resulting namespace pollution would cause other tests to fail.
Configure scripts run with some older versions of g++ and HP's
aCC would fail due to such an #include.  Problems reported by
Matthew Mueller in <http://bugs.debian.org/120704> and by
Keith Bostic in
<http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
In the test, use the test declaration before including <stdlib.h>,
as that's closer to how it'll be used.
2003-05-23 09:36:17 +00:00
Paolo Bonzini
df6cb74cb6 Overhaul Autotest's logging: generate separate log files
in testsuite.dir/NNN/testsuite.log, and append them to
testsuite.log instead of re-running the test verbosely.
Adapt documentation.  Update NEWS to signal possible bad
interactions between -x and experr.
2003-05-22 21:52:43 +00:00
Paolo Bonzini
2f7d336646 * lib/m4sugar/m4sh.m4: actually use the 2nd parameter to AS_REQUIRE 2003-05-22 21:39:45 +00:00
Akim Demaille
ebf56a4251 * lib/autoconf/autotest.m4, lib/autoconf/autoupdate.m4
* lib/autoconf/fortran.m4 lib/autoconf/general.m4
* lib/autoconf/headers.m4 lib/autoconf/oldnames.m4
* lib/autoconf/status.m4: Fix and adjust copyright notices.
2003-05-22 15:17:05 +00:00
Akim Demaille
3cb00cdb8b * aclocal.m4, bin/autoconf.as, lib/autoconf/autoconf.m4,
* lib/autoconf/autoheader.m4, lib/autoconf/autoupdate.m4,
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/general.m4, lib/autoconf/headers.m4,
* lib/autoconf/lang.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/status.m4, lib/autoconf/types.m4,
* lib/autotest/general.m4, lib/m4sugar/m4sugar.m4,
* tests/atspecific.m4, tests/base.at, tests/compile.at,
* tests/foreign.at, tests/m4sh.at, tests/semantics.at,
* tests/tools.at, tests/torture.at:
Whitespace clean up.
Suggested by Jim Meyering.
2003-05-22 13:24:04 +00:00
Akim Demaille
b9cff516d2 * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Restore smashed
' t' as 't ' so that Emacs' whitespace.el keep it.
Reported by Jim Meyering.
2003-05-22 08:24:04 +00:00
Paolo Bonzini
f16c8d206e * lib/m4sugar/m4sh.m4: protect RHS of AS_VAR_SET against expansion of
quotes (it is delayed to after the eval).
2003-05-21 19:04:41 +00:00
Paul Eggert
68a50ebf5f Update copyright date. 2003-05-19 18:15:37 +00:00