Akim Demaille
774e64915e
* doc/autoconf.texi (autoconf Invocation): Explain `-W error'
...
gives back traces.
2000-11-14 10:00:25 +00:00
Pavel Roskin
edf0d70863
* acfunctions.m4 (AC_CHECK_FUNCS): Add missing m4 quotes.
...
(AC_FUNC_GETPGRP): Likewise.
* acspecific.m4 (AC_AIX): Likewise.
* m4/init.m4 (AM_INIT_AUTOMAKE): Likewise.
* m4/missing.m4 (AM_MISSING_PROG): Likewise.
* m4/sanity.m4 (AM_SANITY_CHECK): Likewise.
2000-11-11 07:05:02 +00:00
Pavel Roskin
03d06c0d47
* acfunctions.m4: Always quote first argument of AC_MSG_ERROR,
...
AC_MSG_WARN, AC_MSG_CHECKING, AC_MSG_RESULT,
AC_MSG_RESULT_UNQUOTED.
* acgeneral.m4: Likewise.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.
* configure.in: Likewise.
* doc/autoconf.texi: Likewise.
2000-11-11 05:59:21 +00:00
Pavel Roskin
fa48839ba3
* doc/autoconf.texi (Particular Structures): Fix examples for
...
AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV.
2000-11-11 04:24:29 +00:00
Pavel Roskin
00a0e79b34
* doc/autoconf.texi (Limitations of Usual Tools): Don't use
...
uncommon abbreviations.
2000-11-10 17:14:14 +00:00
Akim Demaille
443972e0fc
* doc/autoconf.texi (Limitations of Builtins): Some information
...
about `trap'.
Document the Free BSD bug observed by Pavel.
2000-11-10 16:56:22 +00:00
Pavel Roskin
fddcd13579
* autoscan.pl (scan_files): Eliminate a warning if no C files
...
are found.
(output): Likewise. Use AC_CONFIG_SRCDIR and AC_CONFIG_FILES
instead of old-style arguments for AC_INIT and AC_OUTPUT.
2000-11-10 15:49:15 +00:00
Akim Demaille
6b14324407
* doc/autoconf.texi (Limitations of Usual Tools): `&' in sed's rhs
...
is portable.
2000-11-10 15:04:10 +00:00
Akim Demaille
b621286c09
* doc/autoconf.texi (Shell Substitutions): Some information about
...
Solaris' sh handling of ``foo=${foo='}'}'' collected by Alexandre,
reported by David Taylor.
2000-11-10 14:55:37 +00:00
Akim Demaille
8ced8eb0a4
* tests/m4sh.at (Negated classes in globbing): New test.
2000-11-10 14:43:33 +00:00
Akim Demaille
d2329b45d3
* doc/autoconf.texi (Limitations of Builtins): `for i; do'.
2000-11-10 14:24:46 +00:00
Akim Demaille
ab3629569e
* doc/autoconf.texi (Shellology): Some about /usr/xpg4/bin/sh on
...
Solaris.
Sort the entries.
Some words about POSIX vs Bourne shell.
From Russ Allbery and Robert Lipe.
2000-11-10 12:10:13 +00:00
Akim Demaille
ea5e4b0457
* doc/autoconf.texi (Shell Substitutions): Split into...
...
(Shell Substitutions, Assignments): these.
Move them before `Special Shell Variables'.
(Shell Substitutions): Include information on `$()' from Russ
Allbery.
2000-11-10 11:43:23 +00:00
Akim Demaille
41ec08f9ed
When running
...
AC_INIT
AC_PROG_CC
AC_LANG_COMPILER_REQUIRE
AC_PROG_CC is expanded twice, because AC_PROG_CC provides
`AC_PROG_CC', and not `AC_LANG_COMPILER(C)' as expected by
AC_LANG_COMPILER_REQUIRE.
* aclang.m4 (AC_LANG_COMPILER(C)): Instead of calling AC_PROG_CC,
require it.
(AC_LANG_COMPILER(C++), AC_LANG_COMPILER(Fortran 77)): Likewise.
2000-11-10 10:57:34 +00:00
Akim Demaille
f9fd1e4edc
* m4sh.m4 (AS_MKDIR_P, AS_DIRNAME_SED): Don't shell quote $1.
...
Adjust callers.
Reported by Paul Eggert.
* tests/m4sh.at: Sort.
2000-11-10 10:14:44 +00:00
Pavel Roskin
ef0983118d
* install-sh: Use ":" instead of "true".
2000-11-09 20:59:26 +00:00
Pavel Roskin
a885ca5436
* tests/tools.at (Syntax of the scripts): Check "autoreconf"
...
only once. Check "install-sh", "mkinstalldirs" and "missing".
2000-11-09 19:13:23 +00:00
Pavel Roskin
1d03fe1675
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Use ":" instead of
...
"true".
* tests/atgeneral.m4 (AT_INIT): Likewise.
* tests/tools.at (Syntax of the scripts): Likewise.
2000-11-09 18:59:18 +00:00
Pavel Roskin
167526b3b2
* tests/m4sugar.at (m4_warn): Adjusted to accept stack dump when
...
-Werror is used.
2000-11-09 18:50:55 +00:00
Akim Demaille
97cdb56113
* m4sugar.m4 (_m4_expansion_stack_dump): Really rename as...
...
(m4_expansion_stack_dump): this.
2000-11-08 17:54:11 +00:00
Akim Demaille
6a1fe22942
* aclang.m4 (AC_LANG_PROGRAM(Fortran 77): Complain about $1 having
...
a value.
Reported by Paul Martinolich.
(_AC_LANG_COMPILER_GNU): Pass the test as the body of
AC_LANG_PROGRAM, not the prologue.
2000-11-08 17:46:24 +00:00
Pavel Roskin
603fad0c9c
* autoconf.sh: Temporarily disable recognizing of abbreviated
...
long options - it's hard to maintain them by hand.
* autoheader.sh: Likewise.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* ifnames.sh: Likewise.
2000-11-07 17:58:43 +00:00
Akim Demaille
a9102fbdf9
* aclang.m4 (ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77):
...
Be AU_DEFUN'd, not AU_ALIAS'd.
Reported by Ralf Corsepius.
* tests/mktests.sh (exclude_list): Skip these variables.
2000-11-07 14:16:54 +00:00
Akim Demaille
674d4eef25
m4_syscmd was reestablished as syscd' intead of
syscmd' because
...
instead of `s/^m4_//', m4_copy_unm4 was running `s/[m4_]//'.
* m4sugar.m4 (m4_copy_unm4): Fix.
2000-11-07 11:49:35 +00:00
Akim Demaille
b4ae99995f
* acgeneral.m4 (AC_CHECKING): Is not an alias of AC_MSG_NOTICE,
...
hence use AU_DEFUN, not AU_ALIAS.
2000-11-07 10:50:29 +00:00
Jim Meyering
860977669c
.
2000-11-04 22:08:13 +00:00
Akim Demaille
b4a8fae52b
AC_CONFIG_AUX_DIR_DEFAULTS overrides AC_CONFIG_AUX_DIR. Ouch.
...
Reported by Paul Martinolich.
* acgeneral.m4 (AC_PROVIDE): Don't forget to `m4_provide'!!!
Tss, novice...
* tests/base.at (AC_REQUIRE & AC_PROVIDE): New test.
2000-11-03 16:02:54 +00:00
Akim Demaille
43703ea9aa
* m4sugar.m4 (m4_location): When using its value, don't use
...
`m4_defn', since m4_location is not a variable, it's a macro which
expands to __file__:__line__.
* tests/m4sugar.at (m4_warn): New test.
2000-11-03 15:21:14 +00:00
Akim Demaille
f1ba26c218
* tests/tools.at (unexpanded macros): Strengthen.
...
* autoconf.sh (finalize.awk): Use `sub' instead of `index' +
`substr'.
More comments.
2000-11-03 15:08:28 +00:00
Akim Demaille
e927749bb5
* Makefile.am (.m4.m4f): Check that processing produces only
...
comments and empty lines.
Check that freezing produced no output.
* m4sugar.m4: Commentize what was not.
* m4sh.m4: Likewise.
* aclang.m4: Formatting changes.
2000-11-03 14:01:58 +00:00
Akim Demaille
ded24ff599
* autoconf.m4 (define): Reestablish only after having read the
...
`ac' files.
Adjust all the Autoconf code to use `m4_define', not `define'.
2000-11-03 13:41:40 +00:00
Akim Demaille
3c3853ced4
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
...
the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
* tests/tools.at (autoupdate): As a benign side effect, updating a
macro that takes no argument produces `UPDATED([])', no longer
`UPDATED()'. Adjust the test.
2000-11-03 11:59:39 +00:00
Akim Demaille
7e4f776a09
* autoconf.m4: Instead of reactivating the macros before reading
...
Autoconf's file, do it afterwards, so that Autoconf promotes the
right use, but users still can use the old names.
Of course this revealed numerous non updated uses of old macros in
Autoconf's files. Adjust them.
But for the time being, keep `define' alive for Autoconf.
2000-11-03 11:14:48 +00:00
Akim Demaille
1c614b9e79
AC_REQUIRE and AC_DEFUN_ONCE don't work properly together. This
...
caused strange messages about AC_ARG_PROGRAM.
Reported by Jim Meyering.
* acgeneral.m4 (AC_DEFUN_ONCE): Fix the indirection to
m4_defun_once.
* m4sugar.m4 (m4_defun_once): Also define
`m4_location(MACRO-NAME)'. s/ac_warn/m4_warn/.
Use `m4_defn' to read `m4_location'.
* tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE): Two new tests.
2000-11-03 10:39:27 +00:00
Akim Demaille
9fe2458f8d
Set up config.log earlier so that AC_MSG_ERROR and AC_MSG_WARN can
...
be used early.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Call `_AC_INIT_PREPARE_FDS'.
(_AC_INIT_PREPARE): Don't.
(_AC_INIT_PREPARE_ENVIRONMENT, _AC_INIT_PREPARE_FDS): Rename as...
(_AC_INIT_DEFAULTS_ENVIRONMENT, _AC_INIT_DEFAULTS_FDS): these,
since they are called from `_AC_INIT_DEFAULTS', not
`_AC_INIT_PREPARE'.
(_AC_INIT_DEFAULTS_FDS): Dump `$@' in config.log, not
`$ac_configure_args' which is not computed yet.
2000-11-03 10:07:40 +00:00
Akim Demaille
9fe8a5d0c2
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): TRIPLET can include `_' and
...
`-'.
Reported by Andreas Jaeger.
2000-11-03 09:22:14 +00:00
Akim Demaille
3f580f38ab
* m4sh.m4 (_AS_UNSET_PREPARE): New macro, eved from
...
_AC_INIT_PREPARE_ENVIRONMENT, and fixed: set `FOO' before trying
to unset it: `unset' exits 1 if the variable is not defined.
(AS_UNSET): Require it. Use `as_unset' not `ac_unset'.
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Use it.
2000-11-03 09:16:21 +00:00
Akim Demaille
75390304e0
* m4sugar.m4 (builtin, changecom, changequote, decr, dumpdef)
...
(incr, index, indir, len, syscmd, sysval, traceoff, traceon):
Rename as...
(m4_builtin, m4_changecom, m4_changequote, m4_decr, m4_dumpdef)
(m4_incr, m4_index, m4_indir, m4_len, m4_syscmd, m4_sysval)
(m4_traceoff, m4_traceon): these.
* autoconf.m4 (builtin, changecom, decr, incr, index, indir, len)
(syscmd, sysval, traceoff, traceon): Reactivate.
2000-11-03 09:08:02 +00:00
Akim Demaille
d95de46af1
* m4sugar.m4 (m4_rename_m4, m4_copy_unm4): New macros.
...
Use them.
(debugfile, debugmode, m4exit, m4wrap, maketemp, patsubst, regexp)
(substr, translit, m4_wrap): Rename as...
(m4_debugfile, m4_debugmode, m4_exit, m4_wrap, m4_maketemp)
(m4_patsubst, m4_regexp, m4_substr, m4_translit, m4_text_wrap): these.
Adjust all dependencies.
* acgeneral.m4: Adjust.
* tests/m4sugar.at: Adjust.
* autoconf.m4 (m4exit, patsubst, regexp, substr, translit):
Reestablish them.
2000-11-03 08:53:26 +00:00
Akim Demaille
528a6b7122
The documentation is not clear about the obsoleteness of
...
`acconfig.h', `config.h.top', and `config.h.bot'.
Reported by Aharon Robbins.
* doc/autoconf.texi (Making configure Scripts)
(Automatic Remaking, Defining Symbols, Distributing): Forget about
these files.
(acconfig.h): Reword.
Display the old scheme presenting the dependencies between input
and output files.
(Changed File Names): Clarify.
2000-11-02 17:44:02 +00:00
Akim Demaille
5243fda44e
* doc/autoconf.texi (Limitations of Usual Tools): Some about
...
dirname.
2000-11-02 17:35:53 +00:00
Pavel Roskin
48f158e039
* ifnames.sh: Put the opening brace on the same line with
...
patterns. Reported by Paul Martinolich.
* tests/tools.at (AWK portability): Check ifnames.
(ifnames): New test for ifnames.
* THANKS: Updated.
2000-11-02 17:03:32 +00:00
Pavel Roskin
7bb9bdc360
* m4/atconfig.m4 (AT_CONFIG): s/AT_TESTPATH/AUTOTEST_PATH/
...
because AT_TESTPATH looks like a macro.
* tests/atconfig.in: Likewise.
2000-11-02 16:12:15 +00:00
Akim Demaille
5b4f860940
* autoconf.sh (trace.m4): Move all the M4 builtins into `at_'.
...
Catch the failures of the big pipe.
2000-11-02 16:03:58 +00:00
Akim Demaille
ff03218ac3
* tests/tools.at (Tracing M4 builtins): New test.
...
* autoconh.sh (trace_format): Fix its computation.
2000-11-02 15:32:23 +00:00
Akim Demaille
e015643d3f
* tests/atgeneral.m4 (AT_CHECK): Check stderr first, since if both
...
stdout and stderr fail, differences on the latter are probably
more significant than on the former.
2000-11-02 15:21:04 +00:00
Akim Demaille
648bf798eb
* autoconf.sh (task trace) [debug]: Instead of a long pipe, extend
...
trace.m4.
2000-11-02 15:06:02 +00:00
Akim Demaille
294a6233c8
* autoupdate.sh (m4.txt): Use `dumpdef' and m4 to build it.
2000-11-02 14:38:08 +00:00
Akim Demaille
2353e0d366
* m4sugar.m4 (popdef, pushdef): Rename as...
...
(m4_popdef, m4_pushdef): these.
Adjust dependencies.
* acgeneral.m4: Adjust.
* aclang.m4: Likewise.
* autoconf.m4 (popdef, pushdef): Reactivate them.
2000-11-02 14:12:18 +00:00
Akim Demaille
f2a537cc26
* tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when
...
`-v' is passed.
2000-11-02 12:23:42 +00:00