Commit Graph

1969 Commits

Author SHA1 Message Date
Akim Demaille
07d89a2c97 (Programming in M4sh): Ethymology of M4sh. 2002-07-19 10:16:34 +00:00
Akim Demaille
93ac890413 * doc/autoconf.texi (Function Portability): `exit'. 2002-07-19 09:01:55 +00:00
Akim Demaille
14d8b70b62 * doc/autoconf.texi (AC_LIBOBJ vs LIBOBJS): More about $U. 2002-07-19 08:39:59 +00:00
Akim Demaille
ad8b4e696a Version 2.53b. 2002-07-18 12:08:58 +00:00
Akim Demaille
b6e682e9ff * config/config.guess, config/config.sub: Update. 2002-07-18 12:06:37 +00:00
Akim Demaille
6d854434d2 Handle LIBOBJS and LTLIBOBJS once for all, including Libtool's and
Automake's parts.
* lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): New.
* lib/autoconf/status.m4 (AC_OUTPUT_COMMANDS_PRE): Call it.
* tests/semantics.at (AC_REPLACE_FUNCS): Adjust.
2002-07-18 11:57:32 +00:00
Akim Demaille
f026c08a36 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Install
_AC_AM_CONFIG_HEADER_HOOK for Automake 1.7.
2002-07-18 11:13:55 +00:00
Russ Allbery
3c76f6922d * doc/autoconf.texi (Initializing configure): Clarify the
description of the tarname default.
2002-07-17 18:39:19 +00:00
Akim Demaille
6653b31ca4 * lib/autoconf/functions.m4 (AC_FUNC_FORK): Don't set
ac_cv_func_fork_works before running _AC_FUNC_FORK, do it if the
latter was not run.
2002-07-17 16:55:48 +00:00
Akim Demaille
4cb1a9ef1c * lib/Autom4te/General.pm (find_file): Browse the directories in
the order they are given.
2002-07-17 16:07:32 +00:00
Akim Demaille
276a1433d0 * tests/wrapsh.as, tests/wrappl.as: Merge into...
* tests/wrapper.as: this.
* tests/Makefile.am, configure.ac: Adjust.
2002-07-17 10:13:32 +00:00
Paul Eggert
66d5f073b5 2002-07-17 Mark D. Roth <roth@feep.net>
* configure.ac: Add --enable-site-macro-dir option.
	* bin/Makefile.am: Expand @SITE_MACRO_DIR@.
	* bin/autom4te.in: Add --prepend-include, --include-envvar, and
	--site-macro-subdir options.
	* bin/autoconf.in: Add --prepend-include option.
	* bin/autoheader.in: Add --prepend-include option.
	* bin/autoreconf.in: Add --prepend-include option.
	* bin/autoscan.in: Add --prepend-include option.
	* bin/autoupdate.in: Add --prepend-include option.
	* doc/autoconf.texi: Document use of $AC_MACRO_PATH and site
	macro directory, remove note that include path directories are
	used in reverse order, and document --prepend-include option.
	* lib/autom4te.in: Use --prepend-include instead of --include.
	* tests/wrapsh.in: Use --prepend-include instead of --include.
2002-07-17 08:30:42 +00:00
Akim Demaille
04df9dca08 * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): `_' is allowed in
tarnames.
* doc/autoconf.texi (Initializing configure): Adjust.
2002-07-17 08:17:28 +00:00
Akim Demaille
14fe4a6369 * lib/autoconf/functions.m4 (AC_FUNC_REALLOC, _AC_FUNC_REALLOC)
(_AC_FUNC_MALLOC): New.
(AC_FUNC_MALLOC): Use the latter.
Define HAVE_MALLOC to 0 if broken.
* doc/autoconf.texi (Particular Functions): Adjust.
2002-07-17 08:09:42 +00:00
Akim Demaille
511b665763 * lib/autoconf/c.m4 (AC_C_BACKSLASH_A): New.
* doc/autoconf.texi (C Compiler): Adjust.
2002-07-16 13:37:53 +00:00
Akim Demaille
724a330a7e * doc/autoconf.texi: Properly set the ``header'' part. 2002-07-09 17:01:38 +00:00
Akim Demaille
955e7d6651 * doc/autoconf.texi (Systemology): Some about Darwin. 2002-07-09 16:37:39 +00:00
Alexandre Duret-Lutz
84993ece40 * lib/autoconf/specific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32):
Don't use AC_REQUIRE in AU_DEFUN.
2002-07-09 08:46:08 +00:00
Akim Demaille
c236414974 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate. 2002-07-09 08:32:40 +00:00
Alexandre Duret-Lutz
617c68ef91 * bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in,
bin/autoupdate.in, bin/ifnames.in, lib/Autom4te/General.pm,
lib/Autom4te/Struct.pm, lib/Autom4te/XFile.pm: Add local variables
so that Emacs setups GNU style for perl-mode and cperl-mode.
2002-07-02 20:31:22 +00:00
Paul Eggert
eacf43893a * config/install-sh: Quote $src. Prefer || to test's -o option,
as per "Limitations of Builtins".
* tests/atspecific.m4 (AT_CHECK_ENV): Likewise, for && vs test -a.
* tests/semantics.at (AC_C_BIGENDIAN): Likewise.

* tests/mktests.sh: Use grep instead of fgrep, as per
"Limitations of Builtins".
2002-06-27 07:51:46 +00:00
Paul Eggert
765d5d9dc8 * tests/wrapsh.as (AUTOCONF, AUTOHEADER, AUTOM4TE, AUTOM4TE_CFG,
autom4te_perllibdir): Set to top build dir or src dir as appropriate,
so that we consistently test the just-built programs.
* tests/wrappl.as: Likewise.
2002-06-15 07:48:56 +00:00
Paul Eggert
9edd82d2ee * bin/autoconf.as (AUTOM4TE): Default to a fully qualified path
name, so that symlinks to 'autoconf' work properly.  Bug reported
by Bruno Haible.
* bin/autoheader.in (AUTOM4TE): Likewise.
* bin/autoreconf.in (autoconf, autoheader): Likewise.
* bin/autoscan.in (autom4te): Likewise.
* bin/autoupdate.in (autom4te): Likewise.
2002-06-12 17:26:19 +00:00
Paul Eggert
3029d70467 * lib/autoconf/functions.m4 (_AC_LIBOBJ_FNMATCH): Also check for
btowc, to fix a portability bug with diffutils-2.8.2/lib/fnmatch.c
on Solaris 2.5.1.
2002-06-12 07:20:43 +00:00
Andreas Schwab
ab73df4404 * doc/autoconf.texi: Add more dir entries. 2002-06-11 11:00:22 +00:00
Alexandre Duret-Lutz
2b18ea7e89 * bin/autom4te.in ($cache): Don't define using `$me', the name
of the cache should not depend on the name under which autom4te
was installed.
2002-06-10 09:54:21 +00:00
Akim Demaille
823860675b * tests/tools.at (autoconf: forbidden tokens, basic)
(autoconf: forbidden tokens, exceptions): Adjust to the change of
words in autom4te.in.
2002-06-07 11:20:19 +00:00
Akim Demaille
105bad12a1 * lib/autoconf/c.m4 (AC_LANG_PROGRAM(C)): Use
_AC_LANG_PROGRAM_C_F77_HOOKS.
2002-06-07 10:04:28 +00:00
Akim Demaille
06e2b8bb73 * lib/autoconf/functions.m4 (AC_REPLACE_FUNC_FNMATCH): Typo,
rename as...
(AC_REPLACE_FNMATCH): this.
* tests/mktests.sh (exclude_list): Exclude AC_REPLACE_FNMATCH,
AC_FUNC_FNMATCH_GNU.
2002-06-07 09:50:32 +00:00
Akim Demaille
e704dc03f1 * doc/autoconf.texi (Systemology): Point to Tru64 docs, and the
Rosetta Stone for Unix.
2002-06-07 08:11:46 +00:00
Akim Demaille
dad5b29768 * bin/autom4te.in (warn_forbidden): When rejecting a token,
suggest m4_pattern_allow.
Suggested by Adam J. Richter.
2002-06-07 08:03:55 +00:00
Akim Demaille
54ae96e2a0 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
ac_config_libobj_dir.
(AC_CONFIG_LIBOBJ_DIR): New.
* lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Split into...
(_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): these.
Use ac_config_libobj_dir to find the replacement files.
(AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU): Split into...
(AC_FUNC_FNMATCH, AC_FUNC_FNMATCH_GNU, AC_REPLACE_FNMATCH)
(AC_REPLACE_FNMATCH_GNU): these.
(AC_FUNC_GETLOADAVG): Use ac_config_libobj_dir.
* doc/autoconf.texi (Particular Functions, Generic Functions): Adjust.
* tests/mktests.sh (ac_exclude_list): Don't check
AC_FUNC_GETLOADAVG as it requires getloadavg.c which is not shipped.
2002-06-07 07:17:53 +00:00
Paul Eggert
967ad84ade * lib/autoconf/status.m4 (_AC_OUTPUT_LINKS): Fall back on cp
if ln doesn't work.
* NEWS: Likewise.
* doc/autoconf.texi (Configuration Links): Likewise.
(Limitations of Usual Tools): Prefer $(LN_S) to ln -s || ln.
2002-06-06 17:56:09 +00:00
Paul Eggert
25c7da5be3 * config/config.guess, config/config.sub, config/texinfo.tex:
Update from masters.
2002-06-05 20:55:35 +00:00
Paul Eggert
6bfa386e50 * bin/autom4te.in ($m4): Do not assume that egrep and fgrep exist.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Likewise.
* lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR, AC_EGREP_CPP):
Likewise.
* lib/autoconf/Makefile.am (check-local): Likewise.
* lib/autoconf/status.m4 (AC_CONFIG_HEADER): Likewise.
* lib/autoconf/types.m4 (commentary only): Likewise.
* lib/autotest/general.m4 (AT_INIT, AT_CHECK): Likewise.
* lib/autotest/Makefile.am (check-local): Likewise.
* lib/m4sugar/Makefile.am (check-local): Likewise.
* tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_DEFINES): Likewise.
* tests/mktests.sh (egrep): New var; use it instead of plain egrep.

* lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): New macros.
* doc/autoconf.texi (Particular Programs): Document them.
(Limitations of Usual Tools): Warn that egrep and fgrep may not exist.
* NEWS: Likewise.
2002-05-29 22:31:59 +00:00
Paul Eggert
7f3d539ce3 * lib/autoconf/types.m4 (AC_TYPE_MBSTATE_T): New macro.
* NEWS, doc/autoconf.texi (Particular Types): Document it.
* lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): Require it
instead of AC_MBSTATE_T, which never existed.
2002-05-28 04:16:17 +00:00
Akim Demaille
44b3643f83 * doc/autoconf.texi (Hosts and Cross-Compilation): Specify the
version of Autoconf that is discussed.
2002-05-23 17:53:10 +00:00
Paul Eggert
faca1d9918 * lib/autoconf/fortran.m4 (AC_PROG_F77): Remove cf77 and cft77
from the default list of compilers to try.  Suggested by
Kate Hedstrom.
* NEWS: Document the above.
* autoconf.texi (Fortran 77 Compiler): Don't suggest cf77.
2002-05-22 23:39:06 +00:00
Paul Eggert
adb3936de1 * lib/autoconf/types.m4 (AC_CHECK_MEMBER): Work correctly even if
the member is itself an aggregate.  Bug reported by Sergey Poznyakoff.
This improves on an earlier suggestion by H. Peter Anvin.
2002-05-18 00:58:09 +00:00
Paul Eggert
4885aeb6b8 AC_FUNC_FNMATCH now tests only for POSIX compatibility.
AC_FUNC_FNMATCH_GNU also tests for GNU extensions.
Both macros now accept an optional source-dir arg.
New macro AC_GNU_SOURCE to define _GNU_SOURCE.

* NEWS: Document this.
* doc/autoconf.texi (Particular Functions, UNIX Variants): Likewise.

* lib/autoconf/functions.m4 (_AC_FUNC_FNMATCH): New macro.
(AC_FUNC_FNMATCH): Use it.  Test only for POSIX conformance,
not for GNU extensions; this undoes part of the 2000-11-03 change,
reverting to 2.13-compatible behavior.
Add new optional argument DIR.
(AC_FUNC_FNMATCH_GNU): New macro.

* lib/autoconf/specific.m4 (AC_GNU_SOURCE): New macro.
2002-05-17 07:14:37 +00:00
Paul Eggert
0f6e2f118e * lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Add optional
argument specifying location of getloadavg.c.  This removes a
FIXME.  This idea was taken from Jim Meyering's implementation in
textutils.
* doc/autoconf.texi (Particular Functions): Document this.
Also, mention HAVE_NLIST_H rather than NLIST_STRUCT, since
that's what the code does; this fixes a bug reported by
Paul D. Smith.
2002-05-08 22:31:14 +00:00
Paul Eggert
92e609390c * lib/autoconf/headers.m4 (AC_HEADER_TIOCGWINSZ):
Don't require AC_SYS_POSIX_TERMIOS.  The test is unnecessary,
and it causes a 'test' syntax error if it fails.
Bug reported by Stephen Gildea.
2002-05-08 20:26:31 +00:00
Paul Eggert
1d5a58c62c * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED):
If prototypes are supported, use them to check this at compile-time,
instead of trying to check it at run-time.  If we must do a run-time
check, assume that setvbuf is standard when cross-compiling, as
nonstandard setvbuf occurs only on ancient and unlikely hosts.
2002-05-08 19:57:14 +00:00
Akim Demaille
e7c982f548 * bin/autoreconf.in (autoreconf): Rewrite to use Gettext's
autopoint instead of gettextize.
($uses_alocal): Rename as...
($uses_aclocal): this.
* doc/autoconf.texi (autoreconf Invocation): Adjust.
Suggested by Bruno Haible.
2002-05-03 16:09:11 +00:00
Akim Demaille
89dd0d23ad * lib/m4sugar/m4sugar.m4 (m4_map_sep): New. 2002-05-03 08:26:29 +00:00
Paul Eggert
8f8b3c874a * bin/autoreconf.in (autoreconf): Don't age aclocal.m4's input
files to be 1 second older; just set them to be the same time.
Also, sleep 1 second after the first aclocal, to work around
problems with sub-second time stamps on the input files.
2002-04-30 06:33:41 +00:00
Akim Demaille
d658e7f3be * doc/autoconf.texi: Mention "set -e -x" lossage
under node "Limitations of Builtins".
2002-04-29 13:35:51 +00:00
Akim Demaille
e00977c735 * doc/install.texi: Better wording for setting variables when
running configure.
From Christian Cornelssen.
2002-04-29 13:33:22 +00:00
Akim Demaille
25a7a663ed * tests/m4sh.at (LINENO): If testsuite itself is rewritten because
of lack of $LINENO support, then the test will compare the $LINENO
in testsuite vs. the lineno in the test file.  This is wrong, of
course.
Be sure to protect it.
Reported by Patrick Welche.
2002-04-29 13:29:40 +00:00
Akim Demaille
ee1648fd44 * doc/autoconf.texi (Obsolete Macros): Typo.
Reported by Vladimir Volovich.
2002-04-25 15:32:15 +00:00