Commit Graph

326 Commits

Author SHA1 Message Date
Paolo Bonzini
e09a76cd5a 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
* lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL,
	AC_CHECK_TOOLS): Warn if a cross-tool is found without
	a prefix.
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS): New macros.
	* doc/autoconf.texi (Generic Programs): Document
	(AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOL,
	AC_CHECK_TARGET_TOOLS, and warn for future changes
	in the behavior of AC_PATH_TOOL, AC_CHECK_TOOL and
	AC_CHECK_TOOLS.
	(Specifying Names): Document the reason for these future
	behavioral changes.
	* tests/mktests.sh: Do not generate tests for the
	new macros.
	* NEWS: Document these changes.

	* doc/autoconf.texi: Avoid macros with unbraced arguments,
	they make TeX hang up.
2004-03-19 08:57:51 +00:00
Paul Eggert
1af3ee05ac Add AC_CHECK_ALIGNOF. 2004-03-15 22:00:05 +00:00
Gary V. Vaughan
d2e80858b8 * lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
grep or ggrep program in PATH that accepts as long lines as
possible.
* lib/autoconf/programs.m4 (_AC_PROG_GREP): Factor out the core of
AC_PROG_GREP.
(AC_PROG_EGREP, AC_PROG_FGREP): Use it to find best available
egrep and fgrep respectively if $GREP -E/-F don't work.
(_AC_PATH_PROG_FEATURE_CHECK): Factor out the common core of
_AC_PROG_GREP, and AC_PROG_SED.
(_AC_FEATURE_CHECK_LENGTH): New helper macro for finding the
longest input length accepted by a command.
(AC_PROG_SED): Use it.
* doc/autoconf.texi (Particular Programs): Document the changes.
* NEWS: Updated.
2004-01-27 20:07:12 +00:00
Gary V. Vaughan
f74f53b7c8 * lib/autoconf/programs.m4 (AC_PROG_SED): New macro to test for a
non-truncating sed or gsed program in PATH.
* tests/acprograms.at: Add it.
* doc/autoconf.texi (Particular Programs): Document it.
* NEWS: Updated.
2004-01-23 08:21:51 +00:00
Akim Demaille
5b23e50984 * configure.ac: Bump to 2.59a.
Require 2.59.
2003-11-12 15:21:00 +00:00
Akim Demaille
99a48ad6c1 Version 2.59. 2003-11-06 09:32:24 +00:00
Akim Demaille
8cde79a28b * configure.ac: Bump to 2.58a. 2003-11-05 10:38:00 +00:00
Akim Demaille
22cc67b23b Version 2.58.
* doc/standards.texi: Update from master.
2003-11-04 08:48:23 +00:00
Akim Demaille
610c228914 AC_CONFIG_FILE([d1/foo:d2/foo]) triggers error messages when
computing the absolute path to d1 in the source hierarchy: it may
not exist at all.  So don't cd into it.
From Alexandre Duret-Lutz.
http://mail.gnu.org/archive/html/bug-autoconf/2003-10/msg00205.html
* lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): New.
From Paul Eggert, but named after Perl's IO::Spec->catfile.
* doc/autoconf.texi (Programming in M4sh): Document.
* lib/autoconf/status.m4 (_AC_SRCPATHS): Use it.
2003-11-04 08:32:06 +00:00
Akim Demaille
f159338d6e * tests/fortran.at (GNU Fortran 77): Don't run FC macros.
(GNU Fortran): New.
* doc/autoconf.texi (Language Choice): Document.
* lib/autoconf/fortran.m4 (AC_FC_SRCEXT, AC_FC_FREEFORM): Assert
the current language is Fortran.
2003-10-31 08:44:46 +00:00
Akim Demaille
d7b524a8b0 * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
Don't remove core.* as it may remove valid user files.
* lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
(AC_FUNC_UTIME_NULL): Likewise.
2003-10-27 11:12:49 +00:00
Akim Demaille
32ae8f6d07 Bump to 2.57h. 2003-10-24 10:01:27 +00:00
Akim Demaille
77c5d24444 * lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
same object file in $LIBOBJS.
Reported by Alexandre Duret-Lutz & Derek Robert Price.
* doc/autoconf.texi (Generic Functions): Adjust.
2003-10-23 07:49:15 +00:00
Daniel Jacobowitz
dd1ddde557 * lib/autoconf/lang.m4 (AC_LANG_WERROR): New macro.
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_PREPROC_IFELSE)
	(_AC_LINK_IFELSE): Check the werror flag.
	* doc/autoconf.texi (Generic Compiler Characteristics): Document
	AC_LANG_WERROR.
	* NEWS: Mention it.
2003-10-20 16:18:26 +00:00
Gary V. Vaughan
2f9a01b432 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Stub out a macro
that future autopoint/aclocal/automake/autoreconf will be able
to trace to find where to install local m4 macros.
* doc/autoconf.texi (Input): Document it.
* NEWS: Updated.
2003-10-08 13:12:19 +00:00
Akim Demaille
69148bc4e5 * lib/autom4te.in (Autoreconf-preselections): Trace AC_CONFIG_AUX_DIR.
* bin/autoreconf.in (autoreconf_current_directory): Create the
AUX_DIR if needed, for sake of automake --add-missing etc.
Suggested by Alexandre Duret-Lutz.
2003-10-03 07:30:01 +00:00
Akim Demaille
b9859c602f Version 2.57f. 2003-10-01 10:29:36 +00:00
Akim Demaille
83424320dc Bump to 2.57f. 2003-09-30 13:02:07 +00:00
Akim Demaille
0d2e796391 Version 2.59e.
* config/mkinstalldirs: Upgrade.
2003-09-29 09:12:46 +00:00
Akim Demaille
9a8ac9d0ba * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
directory for AC_CONFIG_COMMANDS' first argument exists.
This makes valid the invocation of _AC_SRCPATH that follows.
Reported by Eric Sunshine.
* doc/autoconf.texi (Configuration Commands): Adjust.
2003-09-26 13:55:03 +00:00
Akim Demaille
259006c2c7 Bump to 2.57e. 2003-09-25 15:22:43 +00:00
Akim Demaille
f2e174acbe Version 2.57d.
* config/install-sh: Upgrade from CVS Automake.
2003-09-25 08:33:32 +00:00
Akim Demaille
2e24ee3582 * bin/autoheader.in: Issue the "Using auxiliary..." message only
when -Wobsolete is set.
Set it on by default.
Suggested by Klee Dienes.
2003-08-27 11:35:08 +00:00
Akim Demaille
538d939e6b * configure.ac: Bump to 2.57c. 2003-08-24 12:05:20 +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
2fbbb4bafe * tests/mktests.sh (au_exclude_egrep): Fix output copyright notice.
* lib/autom4te.cfg (args): Add local.at? for Autotest args.
* tests/atspecific.m4: Rename as...
* tests/local.at: This.
* tests/suite.at: Move the globals into...
* tests/local.at: here.
* tests/Makefile.am: Adjust.
* doc/autoconf.texi (testsuite Scripts): Adjust.
2003-06-23 11:11:41 +00:00
Akim Demaille
d1398d196e * configure.ac: Bump to 2.57b. 2003-06-20 10:58:56 +00:00
Akim Demaille
97d4e4d4e2 Version 2.57a. 2003-06-20 08:25:12 +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
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
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
Akim Demaille
b44e483cec * lib/autoconf/functions.m4: Use the default includes so that
memcmp be declared before being tested.
Reported by Sander Niemeijer.
(AC_FUNC_ERROR_AT_LINE, AC_FUNC_GETGROUPS, AC_FUNC_STRNLEN): Likewise.
* doc/autoconf.texi (Default Includes): Document
AC_INCLUDES_DEFAULT.
2003-05-17 10:30:07 +00:00
Akim Demaille
d8711f0660 * lib/autoconf/specific.m4: Include signal.h and unistd.h.
* doc/autoconf.texi (Obsolete Macros): Adjust.
Reported by Werner LEMBERG and Debian Bug 190886.
2003-05-17 09:44:22 +00:00
Akim Demaille
46237304df * tests/foreign.at (Libtool): Skip all Libtools pre 1.4. 2003-05-14 08:34:10 +00:00
Akim Demaille
db4f0f52c0 Lock autom4te's cache.
* lib/Autom4te/XFile.pm ($me, &name, &lock, &truncate, &seek): New.
* bin/autom4te.in (&Request::save, &Request::load): Use an IO::File
argument instead of a file name, so that the request file remains
open during the whole autom4te run.
($icache_file): New.
(&freeze): Lock the $icache_file.
2003-05-06 08:51:21 +00:00
Jim Meyering
1d5d3cfba1 Mention the new macro: AC_C_RESTRICT. 2003-04-12 20:53:19 +00:00
Akim Demaille
b473dc2a62 * doc/autoconf.texi (Present But Cannot Be Compiled): New. 2003-02-28 10:46:19 +00:00
Akim Demaille
f6f77d7b72 * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
to a shell that can handle redirection or quoting correctly.
Override SHELL with the shell detected by configure.
Use of $^O suggested by Tim van Holder.
* bin/autom4te.in (BEGIN): Likewise.
* bin/autoreconf.in (BEGIN): Likewise.
* bin/autoscan.in (BEGIN): Likewise.
* bin/autoupdate.in (BEGIN): Likewise.
* bin/ifnames.in (BEGIN): Likewise.
* bin/ifnames.in: Add final newline to help and version messages.
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
to cope with DOS-style absolute paths, when constructing
${ac_make}.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
When constructing paths with IFS=:, quote the path. If we're
constructing a DOS-style absolute path, we don't want to split it
on the colon.
* tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
in description.
2003-02-28 10:11:07 +00:00
Akim Demaille
94a099a5ff Regen. 2003-02-20 16:57:46 +00:00
Paul Eggert
8e884317d9 Version 2.57. 2002-12-03 07:59:21 +00:00
Akim Demaille
c1640cd3d9 Version 2.56.
* config/install-sh: chmod +x.
From Paul Eggert.
* config/move-if-change: Indenting changes.
* Makefile.am (AUTOMAKE_OPTIONS): Move to...
* configure.ac (AM_INIT_AUTOMAKE): here.
Require 1.7.1.
2002-11-15 09:17:30 +00:00
Akim Demaille
c95cfec7a0 Version 2.55.
* config/config.guess, config/config.sub, config/install-sh:
Update from masters.
2002-11-14 11:34:13 +00:00
Akim Demaille
77f69ee45e * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Add -q
option.  Process --recheck after parsing all options.  Pass -q
option to configure on --recheck.
(AC_OUTPUT): Pass -q from configure to config.status.
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Strip -q from
arguments to record.
* doc/autoconf.texi (config.status Invocation): Document
config.status -q option.
2002-11-12 10:54:44 +00:00
Akim Demaille
ba8d11964a 2.54d. 2002-11-07 14:28:57 +00:00
Akim Demaille
6497d928b1 * lib/autoconf/autoheader.m4 (_AH_TEMPLATE_OLD, _AH_VERBATIM_OLD):
Remove.
We _have_ to stop using the old compatibility scheme that tried to
avoid useless backslashes because Libtool 1.4.3 contains a
AC_DEFINE([error_t], [int],
[Define to a type to use for `error_t' if it is not
otherwise available.])
We _have_ to quote the single quote and backslashes with .  The
old compatibility scheme saw that ` was backslashed, and therefore
did not quote the single quote.  Hence before this patch, Autoconf
was not compatible with Libtool.
2002-11-05 20:28:07 +00:00
Akim Demaille
e4a94324d2 Bump to 2.54d. 2002-11-04 10:22:53 +00:00
Akim Demaille
5c74899ef9 * bin/autoreconf.in (&autoreconf_current_directory): New, extracted
from...
(&autoreconf): here.
($help, $make, &parse_args, &autoreconf_current_directory):
Support -m/--make.
* doc/autoconf.texi (autoreconf Invocation): Adjust.
2002-11-03 17:39:29 +00:00
Akim Demaille
8429b06424 * bin/autom4te.in (&parse_args, $help): Support --no-cache.
* doc/autoconf.texi (autom4te Invocation): Adjust.
Suggested by Tim van Holder.
2002-10-30 09:00:23 +00:00
Akim Demaille
e17454b662 * bin/autoreconf.in (&parse_args, $help): Support --warnings.
* doc/autoconf.texi (Invoking autom4te): Rename as...
(autom4te Invocation): this, for consistency with the other nodes.
2002-10-29 08:09:05 +00:00