Commit Graph

2162 Commits

Author SHA1 Message Date
Akim Demaille
16f55c53ab * m4sugar.m4: Formatting changes. 2000-10-30 19:02:23 +00:00
Akim Demaille
4c40aa086f Move the handling of diversions into M4sugar.
* acgeneral.m4 (_AC_DIVERT, AC_DIVERT, AC_DIVERT_PUSH)
(AC_DIVERT_POP): Move to...
* m4sugar.m4 (_m4_divert, m4_divert, m4_divert_push)
(m4_divert_pop): here.
* acgeneral.m4: Adjust to use only the M4sugar macros.
Nevertheless...
(AC_DIVERT_PUSH, AC_DIVERT_POP): New wrappers around the M4sugar
macros.
(_AC_DIVERT(...)): Rename all the diversions names as...
(_m4_divert(...)): these.
2000-10-30 19:01:24 +00:00
Pavel Roskin
1bbd2322ea More stuff to ignore: config.h config.hin experr expout state* 2000-10-30 16:47:42 +00:00
Pavel Roskin
acf30e3fb0 * m4sh.m4 (AS_EXIT): New macro that exits and makes sure that $?
is set correctly within the exit trap.
        (AS_TMPDIR): Use it.
        * acgeneral.m4 (AC_MSG_ERROR): Likewise,
2000-10-30 12:29:36 +00:00
Pavel Roskin
c27f9181bd * acgeneral.m4 (AC_CHECK_TOOL): Set VARIABLE also when using the
cache. From Jim Meyering.
        (AC_PATH_TOOL): Likewise.
2000-10-30 04:04:18 +00:00
Pavel Roskin
03bbc0e52b * tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status
is different from what we got. Don't preserve exit status other
        than 77.
2000-10-30 03:24:44 +00:00
Pavel Roskin
80f8404bec * autoconf.sh: When scanning for unexpanded macros match only
words beginning with "A?_" and "m4_" or containing "_A?_".
        Strip the comments before the matching. Don't use character
        ranges.
2000-10-30 03:20:00 +00:00
Pavel Roskin
733ac61725 * acgeneral.m4 (_AC_INIT_PREPARE): Don't use a newline before
accessing $? - newlines in "trap" reset $? to 0 on FreeBSD 4.0.
2000-10-30 00:59:45 +00:00
Jim Meyering
102df92319 *** empty log message *** 2000-10-29 19:44:45 +00:00
Jim Meyering
82f51be8e4 (AC_MSG_WARN): Now that this macro expands to
two stmts, enclose them in `{' ... `}'.
2000-10-29 19:43:53 +00:00
Pavel Roskin
3ab42e94a3 * aclang.m4 (AC_REQUIRE_CPP): Don't default to C++ - call AC_FATAL
for unsupported languages.
2000-10-28 16:33:19 +00:00
Pavel Roskin
599b982dbd * acfunctions.m4 (AC_FUNC_MMAP): Remove conftestmmap from the
shell, not from the test program.
2000-10-27 23:10:18 +00:00
Pavel Roskin
69a9124176 * doc/autoconf.texi (Limitations of Builtins): Recommend using
AC_MSG_ERROR instead of exit.
        (Autoconf Language): Fix examples.
2000-10-27 17:29:23 +00:00
Pavel Roskin
6cb5583f10 * tests/suite.at: Move "-*- Autoconf -*-" to the second line. 2000-10-27 14:43:44 +00:00
Akim Demaille
7eadb5fda3 Use AC_MSG_ERROR in the test suite, not just `exit'.
* tests/README: New file.
* tests/semantics.at: Don't just `exit 1' or `exit 77' from
configure.in: call AC_MSG_ERROR.
* tests/base.m4: Likewise.
* tests/m4sh.at: Likewise.
* tests/semantics.at (AT_CHECK_PROGS_PREPARE): New macro, eved
out of...
(AC_CHECK_PROG & AC_PATH_PROG): here.
Split into two individual tests...
(AC_CHECK_PROG & AC_CHECK_PROGS, AC_PATH_PROG & AC_PATH_PROGS): these.
2000-10-27 14:15:28 +00:00
Pavel Roskin
c46d9d8480 * autoconf.sh: Recognize short options followed by arguments
without separators.
        * autoheader.sh: Likewise.
        * autoreconf.sh: Likewise. Recognize abbreviations for
        "--autoconf-dir" and "--m4dir"
        * autoupdate.sh: Likewise. Recognize abbreviations for
        "--autoconf-dir"
2000-10-27 13:47:54 +00:00
Pavel Roskin
0dd3144b2e * autoconf.sh: Don't show obsolete options on "--help". Report
obsolete options to stderr. Adjust list of options. Correct
        processing of options. Process options with values separated by
        "=" first, so that abbreviations work. Don't accept "=" with
        short options.
        * autoheader.sh: Likewise.
        * autoreconf.sh: Likewise.
        * autoupdate.sh: Likewise.
        * ifnames.sh: There is no "--verbose" option.
        * doc/autoconf.texi: Option "-A" requires an argument.
        (autoreconf Invocation): Document "--install", "--symlink",
        "--m4dir" and the options passed to Automake.
2000-10-26 22:27:48 +00:00
Akim Demaille
5ec791a2d5 * shell.m4: Rename as...
* m4sh.m4: this.
* tests/m4sugar.m4, tests/shell.m4, tests/torture.m4: Rename as...
* tests/m4sugar.at, tests/m4sh.at, tests/torture.at: these.
* tests/semantics.m4, tests/base.m4, tests/suite.m4: Rename as...
* tests/semantics.at, tests/base.at, tests/suite.at: these.
* tests/tools.m4, tests/update.m4, tests/syntax.m4: Rename as...
* tests/tools.at, tests/update.at, tests/syntax.at: these.
* tests/mktests.sh: Adjust the output file names.
2000-10-26 09:52:34 +00:00
Pavel Roskin
bbc5dca3df * autoupdate.sh: Redirect stdin for sed to /dev/null to avoid
hangs with non-GNU versions of sed.
2000-10-25 21:10:24 +00:00
Akim Demaille
a14a5e7ca5 Move the Autoconf independent shell macros into the file
`shell.m4' and the name space `AS_*'.

* acgeneral.m4 (AC_SHELL_IFELSE, _AC_SHELL_TMPDIR, AC_SHELL_UNSET)
(AC_SHELL_MKDIR_P, AC_SHELL_DIRNAME): Rename and move to...
* shell.m4 (AS_IFELSE, AS_TMPDIR, AS_UNSET, AS_MKDIR_P)
(AS_DIRNAME): here, a new file.
Adjust all dependencies.

* tests/base.m4 (m4_wrap): Eve out into...
* tests/shell.m4: here, new file.
* tests/base.m4 (AC_SHELL_MKDIR_P)
(AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): Eve out into...
* tests/m4sugar.m4 (AS_MKDIR_P, AS_DIRNAME & AS_DIRNAME_SED):
here, new file.
Adjust the test suite.
2000-10-25 17:51:10 +00:00
Akim Demaille
35853557ac * acgeneral.m4 (AC_SHELL_DIRNAME): Split its code into...
(AC_SHELL_DIRNAME_EXPR, AC_SHELL_DIRNAME_SED): these new macros.
* tests/base.m4 (AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): New
test.
2000-10-25 15:04:29 +00:00
Pavel Roskin
4796034df3 * tests/aclocal.m4 (AC_ENV_SAVE): Rename to ...
(AC_STATE_SAVE): ... this.  Save the list of all files
        in the current directory.
        * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Compare lists of
        files created by AC_ENV_SAVE. Remove state* before and after
        the test.
2000-10-25 11:47:20 +00:00
Pavel Roskin
95e65e1662 * Makefile.am: Add acversion.m4.in to EXTRA_DIST. 2000-10-25 11:30:23 +00:00
Akim Demaille
27366d34e5 * acgeneral.m4 (AC_SHELL_DIRNAME): The sed fall back was producing
twice the output for it was not using `-n' and used `p'.  Remove
the latter.
2000-10-25 10:25:15 +00:00
Akim Demaille
1cc2c50bf6 * acgeneral.m4 (_AC_INIT_PREPARE_FDS): Give some information on
the host in config.log.
2000-10-25 09:14:22 +00:00
Pavel Roskin
56331bc9e6 Typo and style fixes in my entries. 2000-10-25 05:14:02 +00:00
Pavel Roskin
f4f898452d * tests/mktests.sh: set locale to C to make sure that syntax.m4
and update.m4 are locale-independent
2000-10-24 19:30:00 +00:00
Pavel Roskin
be4dbe29de * acgeneral.m4 (_AC_CACHE_DUMP): Add a missing separator for sed
commands.
2000-10-24 19:24:40 +00:00
Akim Demaille
4bf20a4eb1 * acgeneral.m4 (AT_FILE_DEPENDENCY): Rename as...
(AC_FILE_DEPENDENCY_TRACE): this.
2000-10-24 18:39:06 +00:00
Akim Demaille
b60b89ed66 * m4sugar.m4: (m4_tolower, m4_toupper): New macros.
* acgeneral.m4 (AC_PREFIX_PROGRAM): Use m4_toupper().
* aclang.m4 (AC_F77_FUNC): Use m4_toupper()/m4_tolower().
2000-10-24 17:25:18 +00:00
Pavel Roskin
a2f945e4c0 * m4sugar.m4 (m4_quote): Comment change. 2000-10-24 17:03:41 +00:00
Akim Demaille
a8801b4f24 Start avoiding dependence upon character ranges.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Introduce `ac_cr_AZ',
`ac_cr_az', `ac_cr_09', `ac_cr_alnum' and `ac_hostname'.
Spread their use.
2000-10-24 16:54:48 +00:00
Akim Demaille
1684245454 * acgeneral.m4 (AC_OUTPUT): Don't play with `trap'.
(_AC_INIT_PREPARE): Trap after having created config.log.
Also trap on 0.
When trapped, report why in config.log.
(AC_MSG_WARN, AC_MSG_ERROR): Also output the message in
config.log.
2000-10-24 16:37:14 +00:00
Akim Demaille
6c4993c5a5 * acgeneral.m4 (_AC_SHELL_DIRNAME): Rename as...
(AC_SHELL_DIRNAME): this.
s/X$1/X[]$1/ so that when $1 is a macro, it's given a chance to be
expanded.
(AC_PREFIX_PROGRAM): Use AC_SHELL_DIRNAME.
Quote properly.
2000-10-24 11:59:45 +00:00
Akim Demaille
e2879ff558 * tests/tools.m4 (Syntax of the scripts): Specify the path to the
tested program, some shells don't honor the PATH with `sh PROG'.
2000-10-24 11:28:20 +00:00
Akim Demaille
cd48b4a16e Grr, CVS managed to remove tests/atspecific.m4 anyway.
Add it again to the repository.
2000-10-24 10:16:30 +00:00
Akim Demaille
68702fc995 Preventing unwanted removal of tests/atspecific.m4. 2000-10-24 09:41:20 +00:00
Pavel Roskin
d671ae8d6e Really remove libm4.m4 2000-10-23 20:36:31 +00:00
Akim Demaille
f0006254b4 Ignore also distcheck trees. 2000-10-23 19:17:31 +00:00
Akim Demaille
6e09a63ca2 Since GNU M4 now comes with its libm4 (binary), to avoid
ambiguities let's rename `libm4' (M4 code) as `m4sugar':
	Readability And Greater Understanding Stands 4 M4sugar
name coined by Lars J. Aas.
* libm4.m4: Rename as...
* m4sugar.m4: this.
All dependencies adjusted.
2000-10-23 19:13:37 +00:00
Akim Demaille
7994b48d70 * tests/mktests.sh (update_exclude_list, syntax_exclude_list): Add
`AC_PREREQ'.
* tests/tools.m4: Globally, don't use `../' to invoke the tested
tools, since the PATH is properly set, and in most cases it
obfuscates the test code.
(autoupdating AC_PREREQ): New tests.
2000-10-23 18:58:43 +00:00
Akim Demaille
161112fd78 In order to check that all the CPP symbols which are AC_DEFINE'd
are properly templated, autoheader traces
AC_DEFINE/AC_DEFINE_UNQUOTED.  Only literals can be traced, and
actually tracing non literals produces invalid autoheader input.
Hence, provide a means to trace calls to
AC_DEFINE/AC_DEFINE_UNQUOTED with literals.
* acgeneral.m4 (AC_DEFINE_TRACE, AC_DEFINE_TRACE_LITERAL): New
macros.
(AC_DEFINE, AC_DEFINE_UNQUOTED): Use AC_DEFINE_TRACE.
* autoheader.sh: Trace AC_DEFINE_TRACE_LITERAL, not
AC_DEFINE/AC_DEFINE_UNQUOTED.
2000-10-23 18:32:17 +00:00
Akim Demaille
7009796166 Let autoupdate change AC_PREREQ to require the current version of
Autoconf.
* acgeneral.m4 (_AC_VERSION_UNLETTER, _AC_VERSION_COMPARE): Move
to...
* libm4.m4 (m4_version_unletter, m4_version_compare): here.
Adjust dependencies.
* acgeneral.m4 (AU::AC_PREREQ): New macro.
* autoupdate.sh: Fail when `m4 input.m4' fails.
2000-10-23 17:41:27 +00:00
Pavel Roskin
0c101b88ae * acfunctions.m4 (AC_FUNC_CHOWN): Remove temporary files on exit.
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
        (AC_FUNC_SELECT_ARGTYPES): Likewise.
        (AC_FUNC_UTIME_NULL): Likewise.
        * acgeneral.m4 (_AC_COMPUTE_INT): Likewise.
        * aclang.m4 (_AC_F77_NAME_MANGLING): Likewise.
        * acspecific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2000-10-23 04:07:42 +00:00
Pavel Roskin
2c965f419d * tests/tools.m4 (autoupdating AC_LINK FILES): Clean up "src1"
and "src2" at the end of the test.
2000-10-23 04:01:41 +00:00
Pavel Roskin
31358f35e6 More files to ignore. 2000-10-21 02:22:51 +00:00
Pavel Roskin
1328e61cb7 * NEWS: Documented changes in AC_PROG_CPP and AC_TRY_CPP.
* doc/autoconf.texi (Compilers and Preprocessors): Likewise.
        * acgeneral.m4 (AC_TRY_CPP): Comment changes.
2000-10-20 00:15:34 +00:00
Pavel Roskin
247e1d11ad * doc/autoconf.texi (Shellology): Documented quirks in ash-0.2. 2000-10-19 21:30:29 +00:00
Pavel Roskin
cd54fcce81 Removed all my "regenerate" entries. 2000-10-19 13:11:18 +00:00
Akim Demaille
45e50b9385 Spell check ChangeLog.
By Morten Eriksen.
2000-10-19 07:55:54 +00:00