/[autoconf]/autoconf/lib/m4sugar/m4sugar.m4
ViewVC logotype

Log of /autoconf/lib/m4sugar/m4sugar.m4

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 2.134
Tue Apr 20 07:51:30 2010 UTC (14 years ago) by meyering
Branch: MAIN
CVS Tags: HEAD
Changes since 2.133: +0 -0 lines
FILE REMOVED
remove all files; README-use-git: add this one file


Revision 2.133 - (view) (download) (annotate) - [select for diffs]
Mon Oct 22 03:46:09 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.132: +2 -2 lines
Diff to previous 2.132
s/parenthesis/parentheses/ where appropriate.

* doc/autoconf.texi: Fix typos.
* lib/m4sugar/m4sugar.m4: Likewise.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.132 - (view) (download) (annotate) - [select for diffs]
Mon Oct 22 03:41:06 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.131: +4 -0 lines
Diff to previous 2.131
Document m4_expand limitation.

* lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
unbalanced parse.
* doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
(Writing Testsuites): Mention limitations inherited from
m4_expand.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.131 - (view) (download) (annotate) - [select for diffs]
Mon Oct 22 00:02:39 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.130: +16 -1 lines
Diff to previous 2.130
Fix AT_TESTED, AT_KEYWORDS.

* lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
occurs in string, as duplicates may be added.
(_m4_append_uniq): New helper macro.
(m4_append_uniq_w): New macro.
* lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
duplication bug by using new macro.
(AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
programs with stdin redirected, so programs that don't
understand --version won't try to behave interactively.
* tests/autotest.at (Tested programs): Catch this bug.
* tests/m4sugar.at (m4@&t@_append): Test new macro.
* tests/local.at (AT_TESTED): Add m4, perl.
* doc/autoconf.texi (Text processing Macros): Document
m4_append_uniq_w, and update text on m4_append.
* NEWS: Document the addition.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.130 - (view) (download) (annotate) - [select for diffs]
Wed Oct 17 16:06:48 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.129: +8 -7 lines
Diff to previous 2.129
Fix m4_combine for empty suffix list.

* lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
* doc/autoconf.texi (Text processing Macros): Document this.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.129 - (view) (download) (annotate) - [select for diffs]
Wed Oct 17 13:47:35 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.128: +27 -0 lines
Diff to previous 2.128
Add m4_combine, based on Libtool's lt_combine.

* lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
* doc/autoconf.texi (Text processing Macros): Document it.
* NEWS: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.128 - (view) (download) (annotate) - [select for diffs]
Tue Oct 16 18:23:48 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.127: +25 -26 lines
Diff to previous 2.127
m4_map is a looping construct.

* lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.127 - (view) (download) (annotate) - [select for diffs]
Tue Oct 16 18:22:54 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.126: +79 -15 lines
Diff to previous 2.126
Fix m4_map, and add some more utility macros.

* lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
(m4_echo, m4_make_list): New documented macros.
(_m4_quote, _m4_shift2): New helper macros.
(m4_map): Change semantics to allow calling macro without
arguments.
(m4_map_sep): Likewise.  Also change semantics to quote separator,
to match m4_join and m4_append.
(m4_version_unletter): Fix use of m4_map.
* doc/autoconf.texi (Evaluation Macros): Document m4_apply,
m4_count, m4_dquote_elt, m4_echo, m4_make_list.
(Text processing Macros): Mention m4_dquote as a faster
alternative to joining with commas.
(Looping constructs): Document m4_map, m4_map_sep.
* NEWS: Mention new macros.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.126 - (view) (download) (annotate) - [select for diffs]
Tue Oct 16 12:27:24 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.125: +51 -14 lines
Diff to previous 2.125
A few more m4sugar improvements, to benefit libtool.

* lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
of expansion by avoiding extra uses of $@.
(m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
(_m4_cdr): New helper macro.
(_m4_map, m4_map_sep): Use it to reduce size of expansion.
(_m4_shift3): New helper macro.
(_m4_foreach): Swap argument order, and use new macro to reduce
size of expansion.
* doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
count must be positive.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.125 - (view) (download) (annotate) - [select for diffs]
Mon Oct 15 19:19:43 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.124: +45 -37 lines
Diff to previous 2.124
Enhance AS_HELP_STRING.

* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
and reduce number of expansions.
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
and to take indent and wrap column numbers.
* tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
* doc/autoconf.texi (Pretty Help Strings): Document details about
arguments.
(Text processing Macros): Minor tweaks.
* NEWS: Document this change.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.124 - (view) (download) (annotate) - [select for diffs]
Mon Oct 15 19:13:46 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.123: +31 -1 lines
Diff to previous 2.123
Fix 2007-10-03 regression with AT_SETUP([a, b]).

* lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
* lib/autotest/general.m4 (AT_SETUP): Use it to preserve
whitespace after single-quoted comma.
* tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
* NEWS: Revert caveat about semantics change on comma.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing.
(Redefined M4 Macros): Touch up wording on M4 builtins.
(Evaluation Macros): Document m4_expand.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.123 - (view) (download) (annotate) - [select for diffs]
Sat Oct 13 17:38:02 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.122: +18 -7 lines
Diff to previous 2.122
Change m4_join to match libtool's ltsugar semantics.

* lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
Ignore empty arguments, using...
(_m4_join): ...this new helper.
* tests/m4sugar.at (m4@&t@_join): New test.
* doc/autoconf.texi (Text processing Macros): Document new
semantics of m4_join.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.122 - (view) (download) (annotate) - [select for diffs]
Sat Oct 13 17:35:04 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.121: +94 -64 lines
Diff to previous 2.121
Make AC_PREREQ faster and more robust.

* lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
(m4_version_prereq): Inline constant expansions.
(m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
Rewrite in terms of [] list, not () list.
(_m4_list_cmp, _m4_version_unletter): New helper macros.
(m4_version_unletter): Write wrapper around new implementation to
preserve old semantics.
(m4_version_compare): Pass correct type of list, and avoid
overhead of flattening expressions too early.
(m4_do): Move to be near other quoting macros.
(m4_max, m4_min): Always result in decimal output.
* doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
Move m4_do...
(Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
(Text processing Macros): Move m4_version_compare...
(Number processing Macros): ...to this new node; document m4_cmp,
m4_list_cmp, m4_sign, m4_max, m4_min.
* tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
up on bugs fixed by this patch.
* NEWS: Document new macros.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.121 - (view) (download) (annotate) - [select for diffs]
Fri Oct 12 22:20:26 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.120: +49 -44 lines
Diff to previous 2.120
Some more m4sugar documentation.

* lib/m4sugar/m4sugar.m4: Clean up macro order.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing and useful.
(Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
m4_divert, m4_undivert, __file__, __line__, __oline__.
(Diagnostics): New node, documenting m4_assert, m4_errprintn,
m4_fatal, m4_location, m4_warn.
(Diversion support): New node, documenting m4_divert_push,
m4_divert_pop, m4_divert_text, m4_divert_once.
(Text processing Macros): Sort.  Add m4_flatten, m4_join,
m4_newline, m4_strip, m4_text_box, m4_text_wrap.
(Programming in M4sh, Macro Names): Document namespace
limitations.  Mention that non-Automake macros should not begin
with `AM_'.
(Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
as obsolescent.
(Printing Messages): Change cross-reference.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.120 - (view) (download) (annotate) - [select for diffs]
Fri Oct 12 21:27:31 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.119: +28 -13 lines
Diff to previous 2.119
Document interaction of recent m4_append change with Libtool HEAD.

* lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
(m4_append_uniq): Add new parameters, based on lt_append_uniq.
* tests/m4sugar.at (m4@&t@_append): New test.
* NEWS: Document semantics change.
* doc/autoconf.texi (Text processing Macros): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.119 - (view) (download) (annotate) - [select for diffs]
Wed Oct 10 23:05:26 2007 UTC (16 years, 6 months ago) by ericb
Branch: MAIN
Changes since 2.118: +42 -29 lines
Diff to previous 2.118
Avoid some overhead from m4_defn and m4_popdef.

* lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
pass on first argument, since we are documented that way.
(m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
check where it is safe to do so.
(m4_append): Likewise, and quote the separator.
(m4_text_box): Likewise, and avoid regex, also be robust to
expansion and quadrigraphs.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.118 - (view) (download) (annotate) - [select for diffs]
Mon Oct 8 20:19:23 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.117: +31 -7 lines
Diff to previous 2.117
Fix regression in m4_text_wrap from 2007-10-05.

* lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
(m4_sign): Sort.
(m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
m4_format.
* lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
* tests/autotest.at (Long test title, Longer test title): Test
this fix, beyond what AS_HELP_STRING already tests.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.117 - (view) (download) (annotate) - [select for diffs]
Mon Oct 8 17:00:15 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.116: +2 -1 lines
Diff to previous 2.116
Avoid m4 warnings on bad m4_format usage.

* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
evaulates to 0.
* lib/autotest/general.m4 (AT_ordinal): Likewise; also ensure that
enough arguments are provided.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.116 - (view) (download) (annotate) - [select for diffs]
Mon Oct 8 16:00:55 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.115: +50 -8 lines
Diff to previous 2.115
Provide better short-circuiting operation.

* lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
(m4_text_wrap): Use it.  Also avoid useless m4_for.
* lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
new macro.
(_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
to avoid regexps.
* doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
(Conditional constructs): ...here, to new section.  Also document
m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
m4_bpatsubsts, and m4_default.
(Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
m4_do.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.115 - (view) (download) (annotate) - [select for diffs]
Thu Oct 4 16:13:50 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.114: +53 -31 lines
Diff to previous 2.114
One more round of m4_foreach_w speedups.

* lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
is present.
(_m4_split): Avoid useless expansions inside definition.  Move
argument defaulting...
(m4_split): ...here.  Change alternate quote to something less
likely to appear in $1.  Also, special case space as regexp...
(m4_foreach_w): ...to avoid regexp on single-term list.
(m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
useless expansions inside definition.
* tests/m4sugar.at (m4@&t@_split): Add tests.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.114 - (view) (download) (annotate) - [select for diffs]
Wed Oct 3 21:55:27 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.113: +60 -2 lines
Diff to previous 2.113
Another round of regex avoidance.

* lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
(_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
(m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
(m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
character ranges useful in m4_translit.
(m4_toupper, m4_tolower): Optimize the constant portion of
definition.
* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
creates $, and reject [] thanks to AS_TR_SH rewrite.
(AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
(AS_ESCAPE): Factor...
(_AS_ESCAPE): ...into new macro, with second argument required.
Avoid regex in common case.
(_AS_QUOTE): Use new macro.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.113 - (view) (download) (annotate) - [select for diffs]
Wed Oct 3 21:52:03 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.112: +13 -14 lines
Diff to previous 2.112
* lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
(m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
should remove m4_shiftn entirely?
(m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
Prefer m4_shift2 and m4_shift3 to m4_shiftn.
* lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
* lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
* tests/autotest.at (AT_CHECK_AT_TEST): Likewise.


Revision 2.112 - (view) (download) (annotate) - [select for diffs]
Wed Oct 3 14:09:48 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.111: +85 -68 lines
Diff to previous 2.111
Comment touchups.

* lib/m4sugar/m4sugar.m4: Grammar fixes in comments.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.111 - (view) (download) (annotate) - [select for diffs]
Wed Oct 3 02:23:55 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.110: +3 -3 lines
Diff to previous 2.110
Optimize appending text.

* lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
expressions.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.110 - (view) (download) (annotate) - [select for diffs]
Tue Oct 2 21:48:14 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.109: +9 -2 lines
Diff to previous 2.109
Optimize recursion.

* lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
lot of hot spots; optimize it for 2 and 3 shifts.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.109 - (view) (download) (annotate) - [select for diffs]
Tue Oct 2 13:40:54 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.108: +7 -16 lines
Diff to previous 2.108
Optimize AC_PREREQ and other m4sugar numerics.

* lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
(m4_cmp): Compare arbitrary expressions, without overflow.
(m4_version_unletter): Also recognize capital letters.
(m4_version_compare): Avoid regex when splitting version number
string.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.108 - (view) (download) (annotate) - [select for diffs]
Sun Sep 30 12:49:00 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.107: +11 -6 lines
Diff to previous 2.107
Allow nameless iteration.

* lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
indirectly.
* tests/m4sugar.at (myvar): Test this.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.107 - (view) (download) (annotate) - [select for diffs]
Sun Sep 30 03:51:35 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.106: +32 -12 lines
Diff to previous 2.106
Speed optimization: avoid m4 regex when other algorithms work.

* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
(_AS_QUOTE_IFELSE): Likewise.
* lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
(m4_bpatsubsts): Split...
(_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
regex.
(_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
(m4_qlen): Optimize on short strings, to avoid regex.
(m4_sign): Avoid regex, and fix bug with `01' and `-0'.
* lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
(AC_DEFINE_TRACE): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.106 - (view) (download) (annotate) - [select for diffs]
Fri Sep 28 01:55:11 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.105: +1 -0 lines
Diff to previous 2.105
Squelch changeword in m4sugar.

* lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
feature of m4 1.4.x.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.105 - (view) (download) (annotate) - [select for diffs]
Fri Sep 28 01:40:29 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.104: +5 -5 lines
Diff to previous 2.104
Fix underquotation in AS_HELP_STRING.

* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
argument.
* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
first-prefix argument.
* tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
* NEWS: Document AS_HELP_STRING fix.

Signed-off-by: Eric Blake <ebb9@byu.net>


Revision 2.104 - (view) (download) (annotate) - [select for diffs]
Sat Sep 15 12:41:09 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.103: +0 -9 lines
Diff to previous 2.103
Provide AC_VERSION, not m4_AUTOCONF_VERSION.
* doc/autoconf.texi (Text processing Macros): Remove mention of
m4_AUTOCONF_VERSION, and leave m4_PACKAGE_VERSION undocumented
once again.
(Notices): Move AC_PREREQ...
(Versioning): ...to this new section, alongside the new AC_VERSION
alias for the undocumented m4_PACKAGE_VERSION.
* lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): Revert change.
* lib/autoconf/general.m4 (AC_VERSION): New macro.
* NEWS: Update to match this rename.
* tests/m4sugar.at (m4@&t@_version_compare): Remove tests of
m4_PACKAGE_VERSION.
* tests/tools.at (autoconf: AC_VERSION): New test.
Suggested by Paolo Bonzini and Benoit Sigoure.


Revision 2.103 - (view) (download) (annotate) - [select for diffs]
Thu Sep 13 03:21:19 2007 UTC (16 years, 7 months ago) by ericb
Branch: MAIN
Changes since 2.102: +11 -2 lines
Diff to previous 2.102
Publish m4_ifndef, m4_version_compare, m4_AUTOCONF_VERSION.
* doc/autoconf.texi (Text processing Macros): Document
m4_version_compare, m4_AUTOCONF_VERSION, m4_PACKAGE_VERSION.
(Redefined M4 Macros): Document m4_ifndef.
* lib/m4sugar/m4sugar.m4 (m4_AUTOCONF_VERSION): New macro; we
can't obsolete m4_PACKAGE_VERSION at this time since Autoconf 1.10
used it while it was undocumented.
* NEWS: Document this change.
* lib/m4sugar/Makefile.am (version.m4): Update copyright dates.
* lib/m4sugar/Makefile.in: Regenerate.
* tests/m4sugar.at (m4@&t@_version_compare): New test.
Reported by Bruno Haible.


Revision 2.102 - (view) (download) (annotate) - [select for diffs]
Fri Jul 20 23:11:54 2007 UTC (16 years, 9 months ago) by eggert
Branch: MAIN
Changes since 2.101: +4 -6 lines
Diff to previous 2.101
Reword the copyright notices to match what's suggested in GPLv3.


Revision 2.101 - (view) (download) (annotate) - [select for diffs]
Tue Jul 3 20:29:03 2007 UTC (16 years, 10 months ago) by eggert
Branch: MAIN
Changes since 2.100: +1 -1 lines
Diff to previous 2.100
Update to GPLv3.


Revision 2.100 - (view) (download) (annotate) - [select for diffs]
Fri Oct 20 01:34:33 2006 UTC (17 years, 6 months ago) by ericb
Branch: MAIN
CVS Tags: AUTOCONF-2_60b, AUTOCONF-2_61, AUTOCONF-2_61a
Changes since 2.99: +6 -1 lines
Diff to previous 2.99
* lib/m4sugar/m4sugar.m4 (m4_mkstemp): New macro.
(m4_maketemp): Avoid warnings with M4 1.9a.
* lib/emacs/autoconf-mode.el (autoconf-font-lock-keywords): Color
m4_mkstemp.
* doc/autoconf.texi (Redefined M4 Macros): Document m4_mkstemp.
* NEWS: Likewise.


Revision 2.99 - (view) (download) (annotate) - [select for diffs]
Tue Jun 20 05:35:38 2006 UTC (17 years, 10 months ago) by rwild
Branch: MAIN
CVS Tags: AUTOCONF-2_60, AUTOCONF-2_60a
Changes since 2.98: +5 -4 lines
Diff to previous 2.98
* lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
calls, so that we do not care whether they are LIFO or FIFO;
in the m4_wrap, do not check which diversion is the topmost
one, just check that the stack is balanced at the end.
* lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
base diversion forever--pop the previous diversion before
opening the new one; consequently, remove the m4_wrap call.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* tests/m4sugar.at: Do not use
m4_wrap([m4_diversion_pop([..])]), for educational purposes.


Revision 2.98 - (view) (download) (annotate) - [select for diffs]
Mon Jun 5 08:18:33 2006 UTC (17 years, 11 months ago) by rwild
Branch: MAIN
CVS Tags: AUTOCONF-2_59d
Changes since 2.97: +2 -1 lines
Diff to previous 2.97
* lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
message issued by AC_REQUIRE.
* tests/m4sugar.at: Check m4_require's error message.
* tests/base.at: Check AC_REQUIRE's error message.
* tests/local.at (AT_CHECK_M4): New macro, almost identical
to...
(AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
AT_CHECK_M4.
(AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
`expout' as the last parameter.
* tests/tools.at: Adapt to the above change.


Revision 2.97 - (view) (download) (annotate) - [select for diffs]
Mon Feb 20 21:43:06 2006 UTC (18 years, 2 months ago) by rwild
Branch: MAIN
CVS Tags: AUTOCONF-2_59c
Changes since 2.96: +15 -10 lines
Diff to previous 2.96
* doc/autoconf.texi (Looping constructs): New node, to
document m4_for, m4_foreach, m4_foreach_w, and mention
obsolete AC_FOREACH.
(Obsolete Macros): Document AC_FOREACH.
* lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
(m4_for): Fix to never loop (almost) endlessly, work correctly
with arithmetic expressions in arguments, a step of zero or
non-integer multiple of the interval, and avoid integer
overflow.
* tests/m4sugar.at: New test for m4_for, m4_foreach, and
m4_foreach_w.


Revision 2.96 - (view) (download) (annotate) - [select for diffs]
Wed Jan 11 08:05:55 2006 UTC (18 years, 3 months ago) by rwild
Branch: MAIN
Changes since 2.95: +12 -9 lines
Diff to previous 2.95
* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
correctly: pad with spaces after FIRST_PREFIX if necessary,
and compute string lenghts with `m4_qlen' instead of `m4_len'.
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
* tests/m4sh.at (AS_HELP_STRING): Test extended.
* NEWS: Updated.
Reported by numerous people, numerous times.


Revision 2.95 - (view) (download) (annotate) - [select for diffs]
Wed Oct 5 21:27:44 2005 UTC (18 years, 7 months ago) by eggert
Branch: MAIN
Changes since 2.94: +6 -3 lines
Diff to previous 2.94
* lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
(m4_map, m4_map_sep): Use it.  Handle the empty list correctly.


Revision 2.94 - (view) (download) (annotate) - [select for diffs]
Mon Jul 25 17:47:08 2005 UTC (18 years, 9 months ago) by eggert
Branch: MAIN
Changes since 2.93: +1 -1 lines
Diff to previous 2.93
Comment fix: change tab to "<tab>" in comment, so that the point is
understandable.


Revision 2.93 - (view) (download) (annotate) - [select for diffs]
Fri Jul 1 08:45:23 2005 UTC (18 years, 10 months ago) by kasal
Branch: MAIN
Changes since 2.92: +16 -1 lines
Diff to previous 2.92
Obsolete AC_FOREACH.


Revision 2.92 - (view) (download) (annotate) - [select for diffs]
Tue Jun 21 15:38:24 2005 UTC (18 years, 10 months ago) by kasal
Branch: MAIN
Changes since 2.91: +11 -10 lines
Diff to previous 2.91
fix m4split([])


Revision 2.91 - (view) (download) (annotate) - [select for diffs]
Wed Jun 8 18:54:24 2005 UTC (18 years, 11 months ago) by dprice
Branch: MAIN
Changes since 2.90: +2 -2 lines
Diff to previous 2.90
* lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
renaming them since they are about to be redefined anyhow.


Revision 2.90 - (view) (download) (annotate) - [select for diffs]
Mon Jun 6 08:47:02 2005 UTC (18 years, 11 months ago) by kasal
Branch: MAIN
Changes since 2.89: +18 -16 lines
Diff to previous 2.89
Fix m4_cdr for one-member lists.


Revision 2.89 - (view) (download) (annotate) - [select for diffs]
Tue May 24 07:25:32 2005 UTC (18 years, 11 months ago) by kasal
Branch: MAIN
Changes since 2.88: +1 -1 lines
Diff to previous 2.88
(m4_ifset): Use m4_ifval.


Revision 2.88 - (view) (download) (annotate) - [select for diffs]
Tue May 17 09:49:37 2005 UTC (18 years, 11 months ago) by kasal
Branch: MAIN
Changes since 2.87: +1 -1 lines
Diff to previous 2.87
(m4_text_wrap): Don't m4_quote the second argument to m4_foreach.


Revision 2.87 - (view) (download) (annotate) - [select for diffs]
Sat May 14 07:00:40 2005 UTC (18 years, 11 months ago) by eggert
Branch: MAIN
Changes since 2.86: +2 -2 lines
Diff to previous 2.86
Update FSF postal mail address.


Revision 2.86 - (view) (download) (annotate) - [select for diffs]
Fri May 13 09:16:44 2005 UTC (18 years, 11 months ago) by kasal
Branch: MAIN
Changes since 2.85: +2 -2 lines
Diff to previous 2.85
(m4_bmatch): Check the number of args.


Revision 2.85 - (view) (download) (annotate) - [select for diffs]
Fri Apr 22 06:37:26 2005 UTC (19 years ago) by kasal
Branch: MAIN
Changes since 2.84: +9 -9 lines
Diff to previous 2.84
FIXMEs about quadrigraphs in help text.


Revision 2.84 - (view) (download) (annotate) - [select for diffs]
Tue Apr 19 06:20:38 2005 UTC (19 years ago) by kasal
Branch: MAIN
Changes since 2.83: +3 -3 lines
Diff to previous 2.83
typo


Revision 2.83 - (view) (download) (annotate) - [select for diffs]
Sat Feb 5 04:55:08 2005 UTC (19 years, 3 months ago) by eggert
Branch: MAIN
Changes since 2.82: +3 -2 lines
Diff to previous 2.82
* lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
* tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
(AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
* tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
(Standard regular expressions): New test.
(m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
excess test name quoting.
* tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
CPPFLAGS to `configure' instead of setting it in `configure'.


Revision 2.82 - (view) (download) (annotate) - [select for diffs]
Fri Feb 4 07:32:15 2005 UTC (19 years, 3 months ago) by eggert
Branch: MAIN
Changes since 2.81: +2 -2 lines
Diff to previous 2.81
(m4_re_escape): Escape ?, ^, \, $ too.


Revision 2.81 - (view) (download) (annotate) - [select for diffs]
Mon Jan 31 23:52:49 2005 UTC (19 years, 3 months ago) by eggert
Branch: MAIN
Changes since 2.80: +84 -130 lines
Diff to previous 2.80
Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
Update the long comment explaining it.

m4_require no longer writes an ``is required by'' line to the
execution stack.  It contains only one bit of non-redundant
information: that the macro was required, not called.  And even
this bit is useless in most situations: have you ever met a macro
which both calls and requires the same macro?

* lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
(_m4_defun_pro_outer): ... only via this macro, for the outermost
  macro.
(_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
(m4_expansion_stack_pop): Remove the misplaced comment.
(m4_require): Don't put the ``is required by'' line to the
  execution stack; slightly improve the out-of-a-defun error message.
(_m4_divert_grow): New macro, counter for the temporary diversions.
(_m4_require_call): Use it.
* tests/m4sugar.at (m4_require): Expect output without the
  ``is required by'' messages.


Revision 2.80 - (view) (download) (annotate) - [select for diffs]
Thu Jan 6 10:02:45 2005 UTC (19 years, 4 months ago) by kasal
Branch: MAIN
Changes since 2.79: +3 -3 lines
Diff to previous 2.79
fix a comment and typos


Revision 2.79 - (view) (download) (annotate) - [select for diffs]
Mon Jan 3 22:54:21 2005 UTC (19 years, 4 months ago) by kasal
Branch: MAIN
Changes since 2.78: +37 -25 lines
Diff to previous 2.78
A cleanup of the diversion support in m4sugar.


Revision 2.78 - (view) (download) (annotate) - [select for diffs]
Sun Dec 19 14:40:37 2004 UTC (19 years, 4 months ago) by eggert
Branch: MAIN
Changes since 2.77: +16 -1 lines
Diff to previous 2.77
* lib/m4sugar/m4sugar.m4 (m4_qlen, m4_qdelta): New macros.
* lib/autotest/general.m4 (AT_SETUP): Use m4_qdelta.


Revision 2.77 - (view) (download) (annotate) - [select for diffs]
Fri Aug 20 19:58:08 2004 UTC (19 years, 8 months ago) by eggert
Branch: MAIN
Changes since 2.76: +1 -1 lines
Diff to previous 2.76
Use "file name" rather than "filename" or "path",
to be consistent with the terminology of the GNU coding standards.


Revision 2.76 - (view) (download) (annotate) - [select for diffs]
Wed Aug 27 15:14:04 2003 UTC (20 years, 8 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_57c, AUTOCONF-2_57d, AUTOCONF-2_57e, AUTOCONF-2_57f, AUTOCONF-2_57g, AUTOCONF-2_58, AUTOCONF-2_59
Changes since 2.75: +1 -1 lines
Diff to previous 2.75
* 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.


Revision 2.75 - (view) (download) (annotate) - [select for diffs]
Fri Aug 22 13:38:34 2003 UTC (20 years, 8 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_57b
Changes since 2.74: +16 -4 lines
Diff to previous 2.74
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.


Revision 2.74 - (view) (download) (annotate) - [select for diffs]
Thu Aug 21 17:25:31 2003 UTC (20 years, 8 months ago) by akim
Branch: MAIN
Changes since 2.73: +2 -61 lines
Diff to previous 2.73
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.


Revision 2.73 - (view) (download) (annotate) - [select for diffs]
Fri May 23 13:58:06 2003 UTC (20 years, 11 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_57a
Changes since 2.72: +55 -55 lines
Diff to previous 2.72
* 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.


Revision 2.72 - (view) (download) (annotate) - [select for diffs]
Fri May 23 13:14:31 2003 UTC (20 years, 11 months ago) by akim
Branch: MAIN
Changes since 2.71: +2 -1 lines
Diff to previous 2.71
* 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.


Revision 2.71 - (view) (download) (annotate) - [select for diffs]
Thu May 22 13:24:08 2003 UTC (20 years, 11 months ago) by akim
Branch: MAIN
Changes since 2.70: +81 -81 lines
Diff to previous 2.70
* 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.


Revision 2.70 - (view) (download) (annotate) - [select for diffs]
Mon May 19 18:15:37 2003 UTC (20 years, 11 months ago) by eggert
Branch: MAIN
Changes since 2.69: +3 -1 lines
Diff to previous 2.69
Update copyright date.


Revision 2.69 - (view) (download) (annotate) - [select for diffs]
Mon May 19 18:14:59 2003 UTC (20 years, 11 months ago) by eggert
Branch: MAIN
Changes since 2.68: +1 -1 lines
Diff to previous 2.68
Use only ASCII characters.


Revision 2.68 - (view) (download) (annotate) - [select for diffs]
Sun Sep 29 08:14:32 2002 UTC (21 years, 7 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_54a, AUTOCONF-2_54b, AUTOCONF-2_54c, AUTOCONF-2_55, AUTOCONF-2_56, AUTOCONF-2_57
Changes since 2.67: +29 -4 lines
Diff to previous 2.67
Reverse an accidental change.


Revision 2.67 - (view) (download) (annotate) - [select for diffs]
Sat Sep 28 16:41:15 2002 UTC (21 years, 7 months ago) by akim
Branch: MAIN
Changes since 2.66: +4 -29 lines
Diff to previous 2.66
* doc/autoconf.texi (autom4te.cache): New section.


Revision 2.66 - (view) (download) (annotate) - [select for diffs]
Fri May 3 08:26:29 2002 UTC (22 years ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_53b, AUTOCONF-2_53c, AUTOCONF-2_54
Changes since 2.65: +14 -0 lines
Diff to previous 2.65
* lib/m4sugar/m4sugar.m4 (m4_map_sep): New.


Revision 2.65 - (view) (download) (annotate) - [select for diffs]
Sun Apr 21 07:25:21 2002 UTC (22 years ago) by eggert
Branch: MAIN
CVS Tags: AUTOCONF-2_53a
Changes since 2.64: +3 -3 lines
Diff to previous 2.64
Minor spelling and grammar fixes.


Revision 2.64 - (view) (download) (annotate) - [select for diffs]
Wed Apr 3 11:11:46 2002 UTC (22 years, 1 month ago) by schwab
Branch: MAIN
Changes since 2.63: +2 -2 lines
Diff to previous 2.63
	* lib/m4sugar/m4sugar.m4 (m4_bmatch): Make sure m4_bregexp is not
	expanded if $# <= 2.


Revision 2.63 - (view) (download) (annotate) - [select for diffs]
Tue Mar 19 07:42:06 2002 UTC (22 years, 1 month ago) by akim
Branch: MAIN
Changes since 2.62: +19 -1 lines
Diff to previous 2.62
* lib/m4sugar/m4sugar.m4 (m4_define_default, m4_fst, m4_map): New.


Revision 2.62 - (view) (download) (annotate) - [select for diffs]
Mon Mar 4 15:05:13 2002 UTC (22 years, 2 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_52i, AUTOCONF-2_53
Changes since 2.61: +7 -10 lines
Diff to previous 2.61
* doc/autoconf.texi (Evaluation Macros): New.
* lib/m4sugar/m4sugar.m4 (m4_lquote): Remove, it is totally
useless.
(_m4_foreach): Define the variant with immediate evaluation so
that it contains exactly the items, not an expression which
evaluation is the current item.
(m4_re_string, m4_re_word): Don't over quote them.


Revision 2.61 - (view) (download) (annotate) - [select for diffs]
Mon Mar 4 15:02:21 2002 UTC (22 years, 2 months ago) by akim
Branch: MAIN
Changes since 2.60: +16 -30 lines
Diff to previous 2.60
Instead of having stacking `shift's evaluated at the end, let
`foreach' loops immediately evaluate them.
* lib/m4sugar/m4sugar.m4 (m4_quote, m4_dquote): Use $@ rather than
$*.  This is the n-th time I change my mind, but hopefully this is
the last...
(m4_lquote): New.
(m4_text_wrap): Use m4_foreach, which is finally correct _and_
efficient.
(m4_foreach_quoted, m4_car_quoted, _m4_foreach_quoted): Remove, as
it was only a hack for m4_text_wrap.
(m4_car2): Remove, replaced by...
(m4_cdr): New.
(_m4_foreach): Adjust.
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Adjust, and use
m4_bpatsubst for clarification.


Revision 2.60 - (view) (download) (annotate) - [select for diffs]
Tue Nov 13 10:42:05 2001 UTC (22 years, 5 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_52g, AUTOCONF-2_52h
Changes since 2.59: +3 -2 lines
Diff to previous 2.59
* m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
(m4_car2): New.
(m4_car): Properly quote arguments.


Revision 2.59 - (view) (download) (annotate) - [select for diffs]
Wed Nov 7 19:34:20 2001 UTC (22 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.58: +2 -2 lines
Diff to previous 2.58
* lib/m4sugar/m4sugar.m4 (m4_pattern_forbid): Accepts $2.
* lib/autoconf/general.m4 (AC_INTI): Forbid LIBOBJS.
(_AC_LIBOBJ): s/LIBOBJS/LIB@&t@OBJS/.
* bin/autom4te.in (warn_forbidden): New.
(handle_output): Use it.
Read m4_pattern_forbid with messages.


Revision 2.58 - (view) (download) (annotate) - [select for diffs]
Mon Oct 8 08:22:49 2001 UTC (22 years, 7 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_52f
Changes since 2.57: +45 -22 lines
Diff to previous 2.57
* lib/m4sugar/m4sugar.m4 (m4_case, m4_bmatch, m4_normalize)
(m4_list_cmp): Use $0 to reinvoke yourself.
(m4_patsubsts): New.
(m4_strip, m4_version_unletter): Use it.
* tests/atspecific.m4 (AT_DATA_M4SUGAR, AT_DATA_M4SH): Likewise.


Revision 2.57 - (view) (download) (annotate) - [select for diffs]
Mon Oct 8 08:22:33 2001 UTC (22 years, 7 months ago) by akim
Branch: MAIN
Changes since 2.56: +32 -32 lines
Diff to previous 2.56
* lib/autoconf/autoconf.m4, lib/autoconf/general.m4,
* lib/autoconf/libs.m4, lib/autoconf/status.m4,
* lib/autoconf/types.m4, lib/autotest/general.m4,
* lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4, tests/atspecific.m4,
* tests/torture.at: Rename m4_regexp, m4_patsubst, and m4_match to
m4_bregexp, m4_bpatsubst, and m4_bmatch.
* doc/autoconf.texi (Redefined M4 Macros): Adjust.


Revision 2.56 - (view) (download) (annotate) - [select for diffs]
Mon Oct 8 08:21:34 2001 UTC (22 years, 7 months ago) by akim
Branch: MAIN
Changes since 2.55: +18 -18 lines
Diff to previous 2.55
* lib/m4sugar/m4sugar.m4 (m4_provide_ifelse): Rename as...
(m4_provide_if): this.
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): New.
* lib/autoconf/general.m4 (AS_DEFUN, AC_DEFUN_ONCE, AC_BEFORE)
(AC_REQUIRE, AC_PROVIDE, AC_PROVIDE_IFELSE): Be exact copy of the
M4sugar peer, i.e., drop the `AC_PROVIDE_$1' broken marker.


Revision 2.55 - (view) (download) (annotate) - [select for diffs]
Tue Sep 18 09:03:19 2001 UTC (22 years, 7 months ago) by akim
Branch: MAIN
Changes since 2.54: +7 -3 lines
Diff to previous 2.54
* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): No INIT-CMDS in
the AC_CONFIG_COMMANDS invocation.
This also solves the name clash problems.
Don't set the package's ID.
* lib/m4sugar/Makefile.am (version.m4): Revamp.
No longer to be shipped.
(version.in): Remove.
* lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4,
* lib/autoconf/status.m4: Adjust.
Use `m4_PACKAGE_STRING'.
* lib/autotest/general.m4 (AT_INIT): N-th signature change: now
the only optional argument is the name of the test suite.
Expect `package.m4' to define the package signature.
* lib/autom4te.in (Autotest): Add `package.m4?'.
* tests/Makefile.am (package.m4): New.
* tests/suite.at: ifnames is a victim.


Revision 2.54 - (view) (download) (annotate) - [select for diffs]
Thu Sep 13 06:57:45 2001 UTC (22 years, 7 months ago) by akim
Branch: MAIN
Changes since 2.53: +10 -0 lines
Diff to previous 2.53
* lib/m4sugar/m4sugar.m4 (m4_append_uniq): New.
* lib/autotest/general.m4 (AT_VICTIMS, AT_KEYWORDS, _AT_CLEANUP_FILE):
Use it.


Revision 2.53 - (view) (download) (annotate) - [select for diffs]
Thu Sep 13 06:57:29 2001 UTC (22 years, 7 months ago) by akim
Branch: MAIN
Changes since 2.52: +13 -7 lines
Diff to previous 2.52
* lib/m4sugar/m4sugar.m4 (_AS_QUOTE_IFELSE, _AS_BOX_INDIR): Use
m4_match.
(m4_re_escape): New.
* lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER): Use it.
* lib/autoconf/general.m4 (AC_CACHE_SAVE): Use m4_match.
* lib/autoconf/status.m4 (AC_CONFIG_IF_MEMBER, AC_CONFIG_LINKS):
Likewise.
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_REPLACEMENT_TYPE_P)
(_AC_CHECK_TYPE_MAYBE_TYPE_P, AC_CHECK_MEMBER): Likewise.
* lib/autotest/general.m4 (AT_INIT): Rename AT_TESTS_ALL as
AT_tests_all for consistency.
Set at_victims.
(AT_VICTIMS): Similar to AT_KEYWORDS.
(_AT_CLEANUP_FILE_IF): Use m4_match and m4_re_escape.


Revision 2.52 - (view) (download) (annotate) - [select for diffs]
Mon Sep 10 07:18:18 2001 UTC (22 years, 7 months ago) by akim
Branch: MAIN
Changes since 2.51: +7 -13 lines
Diff to previous 2.51
* lib/autotest/general.m4 (AT_INIT): Remove the diversion HELP and
SETUP: no longer used.
Support -k, --keywords.
<at_help>: Be `no', `short', or `long'.
<at_help_all>: New variable.
(AT_KEYWORDS): New.
(AT_CLEANUP_FILE_IFELSE, AT_CLEANUP_FILE): Rename as...
(_AT_CLEANUP_FILE_IF, _AT_CLEANUP_FILE): these.
(_AT_CLEANUP_FILE_IF): Simplify the regexp.
(AT_SETUP): Reset AT_line, AT_keywords, AT_description.
No longer fill the HELP diversion.
(AT_CLEANUP): Use them.
* lib/m4sugar/m4sugar.m4 (m4_append): Support a separator.
(m4_list_append): Remove.
Spread a few keywords in the Autoconf test suite.


Revision 2.51 - (view) (download) (annotate) - [select for diffs]
Mon Aug 27 07:08:56 2001 UTC (22 years, 8 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_52d
Changes since 2.50: +16 -0 lines
Diff to previous 2.50
Provide a mean to ``AC_PREREQ'' for M4sugar, M4sh and Autotest.
* lib/autoconf/version.in: Remove.
* lib/m4sugar/version.in: New.
* lib/m4sugar/m4sugar.m4 (m4_acversion, m4_version_prereq): New.
Adjust callers.
* bin/autoupdate.in: Distinguish M4sugar vs. Autoconf macros by
the name of the directory they're in, instead of the filename,
since version.m4 is now in m4sugar, but m4_acversion must not be
classified as an Autoconf macro.
($input_m4): Don't qualify the path to m4sugar.
Rather, pass autoconf_dir to m4.
* tests/Makefile.am (testsuite): Remove -I top_srcdir, unneeded.
* tests/suite.at: Require 2.52c.


Revision 2.50 - (view) (download) (annotate) - [select for diffs]
Mon Aug 27 07:03:49 2001 UTC (22 years, 8 months ago) by akim
Branch: MAIN
Changes since 2.49: +9 -0 lines
Diff to previous 2.49
testsuite.log should include config.log.
* lib/autotest/autotest.m4: New.
* lib/autotest/general.m4, tests/atspecific.m4:	Adjust.
* tests/suite.at : Adjust.
(AT_INIT): Log config.log.
* lib/m4sugar/m4sugar.m4 (m4_text_box): New.
* lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Adjust.
* lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): Use them.
(_AC_INIT_PREPARE): Fix the incredibly messy and buggy completion
of config.log on traps.
(_AC_OUTPUT_CONFIG_STATUS): Use AS_BOX.
Use consistently `_ACEOF' for configure's here docs, and `_CSEOF'
for config.status'.
Open the log as soon as possible.
Use the same log introduction as configure's.


Revision 2.49 - (view) (download) (annotate) - [select for diffs]
Mon Aug 20 14:44:48 2001 UTC (22 years, 8 months ago) by akim
Branch: MAIN
Changes since 2.48: +0 -2 lines
Diff to previous 2.48
Let M4sh have its own diversions.
* lib/autoconf/general.m4 (_m4_divert(BINSH), _m4_divert(REVISION))
(_m4_divert(NOTICE)): Rename as...
* lib/m4sugar/m4msh.m4 (_m4_divert(BINSH), _m4_divert(HEADER-REVISION))
(_m4_divert(HEADER-COMMENT)): these.
(_m4_divert(HEADER-COPYRIGHT), _m4_divert(HEADER-COPYRIGHT)): New.
(_m4_divert(NOTICE)): New, for Libtool.
* lib/autoconf/general.m4 (_m4_divert(PREPARE)): Remove, replaced
long ago with `_m4_divert(GROW)'.
(AC_COPYRIGHT, AC_REVISION, _AC_INIT_NOTICE): Adjust.


Revision 2.48 - (view) (download) (annotate) - [select for diffs]
Tue Aug 7 07:56:41 2001 UTC (22 years, 9 months ago) by akim
Branch: MAIN
Changes since 2.47: +1 -1 lines
Diff to previous 2.47
The use of `dumpstat' revealed that `len' was used although it
should not.  m4_text_wrap was using it, but in the Autoconf world
where it is legal.  Hence (i) test M4sh in its own world, not
Autoconf's, and (ii), ahem, fix the bug :)
* lib/autotest/general.m4: Be sure the set good quotes, as tracing
does not like `' instead of [].
(AT_INIT): Forbid `^_?AT_'.
And don't output such tokens.
* tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
`script.as', and `autom4te.cache'.
Remove `empty' and `macro' which are no longer used.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
* tests/m4sugar.at: Use it.
* lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.


Revision 2.47 - (view) (download) (annotate) - [select for diffs]
Sat Aug 4 13:16:47 2001 UTC (22 years, 9 months ago) by akim
Branch: MAIN
Changes since 2.46: +4 -9 lines
Diff to previous 2.46
Don't rely on M4sugar outputting the patterns in files, since we
might process the output _without_ running m4, hence without these
files.
* lib/m4sugar/m4sugar.m4 (m4_init): No need for `m4_tmpdir'.
* bin/autom4te.in (@Request::includes): Remove, unused.
(@Request::source): Rename as...
(@Request::input): this.
(@preselect): Add `m4_pattern_forbid' and `m4_pattern_allow'.
(&handle_output): Fetch the patterns from the traces.
`$forbidden' and `$allowed' are constant: use m//o.
(&handle_m4): M4sugar no longer wants `m4_tmpdir'.
(m4_pattern_forbid, m4_pattern_allow): Adjust for tracing only.


Revision 2.46 - (view) (download) (annotate) - [select for diffs]
Fri Aug 3 09:09:45 2001 UTC (22 years, 9 months ago) by akim
Branch: MAIN
Changes since 2.45: +6 -5 lines
Diff to previous 2.45
* lib/m4sugar/m4sugar.m4 (m4_init): Also forbid `_m4_*' tokens.
(m4_divert_pop): Dump the whole diversion stack when a diversion
mismatch happens.
* bin/autom4te.in (&handle_output): Remember of the first
occurrence of a possibly undefined macro, not the last.
Complain about the possibly undefined macros in the same order as
the appear in the output.
* lib/autoconf/Makefile.am (autoconf.m4f): List its dependencies.
* tests/tools.at (autoconf: forbidden tokens, basic)
(autoconf: forbidden tokens, exceptions): No longer sort
autoconf's stderr, as it is now deterministic.
Check that `dnl' is caught.


Revision 2.45 - (view) (download) (annotate) - [select for diffs]
Wed Jul 18 13:38:40 2001 UTC (22 years, 9 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_52, AUTOCONF-2_52a, AUTOCONF-2_52b
Changes since 2.44: +1 -1 lines
Diff to previous 2.44
The C-Fortran 77 hooks are available only once AC_F77_DUMMY_MAIN
was run, while they are needed also when it is expanded.
Reported by Nicolas Joly.
* aclang.m4 (AC_F77_DUMMY_MAIN): Define _AC_LANG_PROGRAM_C_F77_HOOKS.
(AC_LANG_PROGRAM(C)): Use it instead of depending upon
AC_F77_DUMMY_MAIN being expanded.


Revision 2.44 - (view) (download) (annotate) - [select for diffs]
Fri Jun 1 10:55:21 2001 UTC (22 years, 11 months ago) by akim
Branch: MAIN
CVS Tags: AUTOCONF-2_50a, AUTOCONF-2_50b, AUTOCONF-2_50c, AUTOCONF-2_51
Changes since 2.43: +3 -3 lines
Diff to previous 2.43
* m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Clarify the error
message.


Revision 2.43 - (view) (download) (annotate) - [select for diffs]
Sun Apr 15 16:20:31 2001 UTC (23 years ago) by larsa
Branch: MAIN
CVS Tags: autoconf-2_50
Changes since 2.42: +1 -1 lines
Diff to previous 2.42
Copyright 2001


Revision 2.42 - (view) (download) (annotate) - [select for diffs]
Wed Jan 24 07:47:12 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.41: +6 -5 lines
Diff to previous 2.41
* m4sugar.m4 (m4_expand_once): Accept a witness.


Revision 2.41 - (view) (download) (annotate) - [select for diffs]
Tue Jan 23 17:04:36 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.40: +8 -0 lines
Diff to previous 2.40
* acgeneral.m4 (AC_EXPAND_ONCE): Remove, use m4_expand_once.
(AC_DIVERT_ONCE): Move to...
* m4sugar.m4 (m4_expand_once): here.


Revision 2.40 - (view) (download) (annotate) - [select for diffs]
Fri Jan 19 11:27:41 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.39: +1 -1 lines
Diff to previous 2.39
* sugar.m4 (m4_require): Missing dnl.


Revision 2.39 - (view) (download) (annotate) - [select for diffs]
Thu Jan 18 09:16:08 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.38: +45 -24 lines
Diff to previous 2.38
Require a perfect divert push/pop balance.
* m4sugar.m4 (m4_divert, m4_divert_push, m4_divert_pop): Keep
track of them in m4_divert_stack.
(m4_divert_pop): Accept the expected current diversion as
argument and m4_fatal if incorrect, or if there is nothing to pop.
(globally): Specify the known m4_divert_pop.
Preserve symbolic values when possible.
* acgeneral.m4: No longer push the first diversion.
Specify the known m4_divert_pop.
(AC_PLAIN_SCRIPT): When m4_divert_push a diversion, m4_wrap its
pop.
(AC_INIT): Run AC_PLAIN_SCRIPT first, not last.
* tests/m4sh.at (AS_DIRNAME & AS_DIRNAME_SED): Can't use m4_defun
without m4_init.
* m4sugar.m4: Likewise.


Revision 2.38 - (view) (download) (annotate) - [select for diffs]
Thu Jan 18 09:15:53 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.37: +23 -15 lines
Diff to previous 2.37
* m4sugar.m4 (m4_defn, m4_undefine, m4_popdef): Unlike the
builtin, fail on undefined symbols.
* tests/torture.at (Torturing config.status): Stop playing nasty
tricks with changequote.
(AC_DEFUBST): Move here from...
* tests/aclocal.m4: there.


Revision 2.37 - (view) (download) (annotate) - [select for diffs]
Thu Jan 18 09:15:31 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.36: +20 -8 lines
Diff to previous 2.36
Various cleanups and consistency checks.
* m4sugar.m4: Formatting changes.
* acgeneral.m4 (AC_DIVERT_PUSH, AC_DIVERT_POP, AC_REQUIRE)
(AC_DIAGNOSE, AC_FATAL, AC_MSG_WARN, AC_MSG_NOTICE, AC_MSG_ERROR):
Use m4_copy to define them, in order to keep a good $0.
(AC_INIT): AC_LANG_PUSH C, not AC_LANG, to initialize the stack.
* aclang.m4 (AC_LANG_PUSH): Dont't use m4_defn on undefined macros.
(AC_LANG_POP): Admit an argument specifying the language we quit
when popping.
Adjust Autoconf's AC_LANG_POPs.
* tests/tools.at (AWK portability): Don't depend on AC_INIT.
(autoconf --trace: user macros): Obviously I
meant TRACE1, not AC_TRACE1.


Revision 2.36 - (view) (download) (annotate) - [select for diffs]
Wed Jan 17 15:26:42 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.35: +61 -30 lines
Diff to previous 2.35
* m4sugar.m4 (m4_undefine, m4_popdef): Don't tolerate undefined
arguments.
(_m4_expansion_stack): Rename as...
(m4_expansion_stack): this, and change its value: instead of using
the pushdef stack to stack each *line* of the stack, each
definition contains the whole stack.  I.e., to display the whole
stack, instead of popdefing and displaying each definition, just
display the current definition.
(m4_expansion_stack_push, m4_expansion_stack_pop): New.
* tests/atspecific.m4 (AT_CHECK_AUTOCONF): Let $2 be the expected
exit status.
* tests/m4sugar.m4 (m4_require: circular dependencies): New test.


Revision 2.35 - (view) (download) (annotate) - [select for diffs]
Wed Jan 17 15:23:31 2001 UTC (23 years, 3 months ago) by proski
Branch: MAIN
Changes since 2.34: +17 -1 lines
Diff to previous 2.34
* m4sugar.m4 (m4_normalize): New macro - superposition of
m4_flatten and m4_strip.
(m4_join): Use m4_normalize.
* acgeneral.m4 (AC_FOREACH): Use m4_normalize.
(AC_CONFIG_HEADERS): Normalize the first argument.
(AC_CONFIG_LINKS): Likewise.
(AC_CONFIG_SUBDIRS): Likewise.


Revision 2.34 - (view) (download) (annotate) - [select for diffs]
Fri Jan 12 09:20:00 2001 UTC (23 years, 3 months ago) by akim
Branch: MAIN
Changes since 2.33: +1 -1 lines
Diff to previous 2.33
* acgeneral.m4: Last changes for `configure.ac'.
(_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Take `configure.ac' into
account.
* autoreconf.sh: Likewise.


Revision 2.33 - (view) (download) (annotate) - [select for diffs]
Fri Dec 15 07:46:47 2000 UTC (23 years, 4 months ago) by akim
Branch: MAIN
Changes since 2.32: +1 -0 lines
Diff to previous 2.32
* m4sugar.m4 (m4_init): Catch `dnl'.


Revision 2.32 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 14:53:51 2000 UTC (23 years, 4 months ago) by proski
Branch: MAIN
Changes since 2.31: +2 -1 lines
Diff to previous 2.31
* m4sugar.m4 (m4_file_append): Add a newline after _m4eof,
otherwise _m4eof is appended to the output on FreeBSD 4.0.
* tests/atgeneral.m4 (AT_INIT): Avoid using unbalanced "y"
in sed, use "s" instead.
* tests/mktests.sh: Don't use ? in sed - it's a GNU extension.
Use separate patterns for A[CU]_DEFUN and AC_DEFUN_ONCE.


Revision 2.31 - (view) (download) (annotate) - [select for diffs]
Wed Dec 6 14:05:46 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.30: +16 -5 lines
Diff to previous 2.30
The SunOS' egrep fails to process properly the `egrep' invocations
of the test suite.
* tests/aclocal.m4 (AC_STATE_SAVE): If egrep fails, remove the
output file.
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't check `state-*'
if the files are not present.
* m4sugar.m4 (m4_join): Rename as...
(m4_smash): this.
* tests/aclocal.m4 (join): Move as...
* m4sugar.m4 (m4_flatten): this.
* autoconf.sh (trace.m4): Rename m4_smash as m4_flatten.


Revision 2.30 - (view) (download) (annotate) - [select for diffs]
Wed Dec 6 08:58:42 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.29: +82 -80 lines
Diff to previous 2.29
* m4sugar.m4 (ifelse): Rename as...
(m4_if): this.
* autoconf.m4 (ifelse): Restore.


Revision 2.29 - (view) (download) (annotate) - [select for diffs]
Wed Dec 6 08:58:14 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.28: +81 -6 lines
Diff to previous 2.28
* m4sugar.m4 (m4_dquote, m4_pattern_forbid, m4_pattern_allow)
(m4_cr_letters, m4_cr_LETTERS, m4_cr_Letters, m4_cr_digits)
(m4_cr_symbols1, m4_cr_symbols2, m4_re_string, m4_re_word)
(m4_init): New macros.
(m4_token_allow): Remove.
* acgeneral.m4: Don't push BODY into the diversion stack.
(AC_PLAIN_SCRIPT): Do it.
Call m4_init, define the Autoconf patterns.
(AC_INIT): Use AC_PLAIN_SCRIPT.
Remove the useless `dnl' (those where the current diversion is
KILL).
* autoconf.sh (m4_common): Fix quotation.
(finalize.awk): Load forbidden.rx and allowed.rx.
Split the line into tokens, and check their validity.
* tests/tools.at (Forbidden tokens): Adjust.


Revision 2.28 - (view) (download) (annotate) - [select for diffs]
Wed Nov 29 10:12:05 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.27: +3 -3 lines
Diff to previous 2.27
Provide a means to display banners in the test suite.
* tests/atgeneral.m4 (AT_INIT): Initialize AT_banner_ordinal.
Execute the epilogue of the tests only if a test was run.
Don't built the value of `at_tests_all' by a for loop: expand
AT_TESTS_ALL.
(AT_SETUP): Build AT_TESTS_ALL.
(AT_BANNER): New.
Adjust all the former banners to use it.
(AT_CHECK): Don't trace the decoding of $?.


Revision 2.27 - (view) (download) (annotate) - [select for diffs]
Wed Nov 29 10:11:38 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.26: +2 -2 lines
Diff to previous 2.26
* tests/atgeneral.m4 (AT_DEFINE, AT_UNDEFINE, AT_SHIFT)
(AT_INCLUDE): Remove, use the m4_ macros.


Revision 2.26 - (view) (download) (annotate) - [select for diffs]
Wed Nov 29 10:09:44 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.25: +67 -54 lines
Diff to previous 2.25
* m4sugar.m4 (ifval, ifset, ifdef, ifndef, m4_ifvanl): Rename as...
(m4_ifval, m4_ifset, m4_ifdef, m4_ifndef, m4_ifvaln): this.
(m4_n): New macro.
(m4_ifvaln): Use it.
* autoconf.m4 (ifdef): Restore it.


Revision 2.25 - (view) (download) (annotate) - [select for diffs]
Wed Nov 29 10:05:51 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.24: +10 -7 lines
Diff to previous 2.24
* m4sugar.m4 (m4_errprint, divnum, errprint, esyscmd): Rename as...
(m4_errprintn, m4_divnum, m4errprint, m4_esyscmd): this.
* autoconf.m4: Restore them.


Revision 2.24 - (view) (download) (annotate) - [select for diffs]
Thu Nov 23 09:53:26 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.23: +18 -2 lines
Diff to previous 2.23
* m4sugar.m4 (m4_divert, m4_undivert): Support named diversions.
* tests/atgeneral.m4 (_m4_divert(SUITE_PRO), _m4_divert(TESTS))
(_m4_divert(SUITE_EPI), _m4_divert(TEST)): New diversions.
Push the first two diversions.
(AT_INIT): Don't.
(AT_INIT, AT_SETUP, AT_CLEANUP): Adjust to use the named
diversions.


Revision 2.23 - (view) (download) (annotate) - [select for diffs]
Thu Nov 23 09:52:35 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.22: +2 -2 lines
Diff to previous 2.22
* tests/atgeneral.m4 (AT_CLEAN_FILE_IFELSE, AT_CLEANUP_FILE)
(AT_CLEANUP_FILES): New	macros.
(AT_SETUP, AT_CHECK, AT_CLEANUP): Use them.
(AT_CHECK): Fix a use of at_verbose.
* tests/atspecific.m4 (AT_CHECK_AUTOCONF, AT_CHECK_AUTOHEADER)
(AT_CHECK_CONFIGURE): New macros.


Revision 2.22 - (view) (download) (annotate) - [select for diffs]
Thu Nov 23 09:47:45 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.21: +3 -0 lines
Diff to previous 2.21
Transform Autotest's body into a `for test; case $test'.
As a known side effect, currently any code outside
AT_SETUP/AT_CLEANUP is discarded.
* acgeneral.m4 (_m4_divert(KILL)): Move to...
* m4sugar.m4: here.
* tests/atgeneral.m4 (AT_INIT): Use m4_divert_push/pop instead of
m4_divert.
Put all the tests inside a for;case.
Define TESTS.
(AT_SETUP, AT_CLEANUP): Open/close each case.


Revision 2.21 - (view) (download) (annotate) - [select for diffs]
Thu Nov 23 09:46:48 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.20: +9 -7 lines
Diff to previous 2.20
Move divert and undivert into m4_.
* m4sugar.m4 (m4_divert, divert, undivert): Rename as...
(m4_divert_text, m4_divert, m4_undivert): this.
* autoconf.m4 (divert, undivert): Restore them for user macros only.


Revision 2.20 - (view) (download) (annotate) - [select for diffs]
Thu Nov 16 08:33:46 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.19: +28 -0 lines
Diff to previous 2.19
Provide a means for escaping the forbidden patterns test.
* tests/tools.at (Forbidden tokens): Test m4_token_allow.
* m4sugar.m4 (m4_file_append, m4_token_allow): New macros.
* autoconf.sh (task script): Pass `tmp' and `verbose' to
finalize.awk.
(finalize.awk::check_patterns): Eve out from the body.
(finalize.awk): Read `$tmp/tokens_allowed', and don't complain for
these exceptions.


Revision 2.19 - (view) (download) (annotate) - [select for diffs]
Tue Nov 14 11:06:37 2000 UTC (23 years, 5 months ago) by akim
Branch: MAIN
Changes since 2.18: +14 -18 lines
Diff to previous 2.18
A single m4_require is enough.
* m4sugar.m4 (_m4_require): $2 defaults to $1.
Rename as...
(m4_require): this.
* acgeneral.m4 (_AC_REQUIRE): Remove, use m4_require if you want
to get into the gory details.


Revision 2.18 - (view) (download) (annotate) - [select for diffs]
Wed Nov 8 17:54:11 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.17: +4 -4 lines
Diff to previous 2.17
* m4sugar.m4 (_m4_expansion_stack_dump): Really rename as...
(m4_expansion_stack_dump): this.


Revision 2.17 - (view) (download) (annotate) - [select for diffs]
Tue Nov 7 11:49:35 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.16: +1 -1 lines
Diff to previous 2.16
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.


Revision 2.16 - (view) (download) (annotate) - [select for diffs]
Fri Nov 3 15:21:15 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.15: +4 -4 lines
Diff to previous 2.15
* 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.


Revision 2.15 - (view) (download) (annotate) - [select for diffs]
Fri Nov 3 14:01:58 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.14: +1 -1 lines
Diff to previous 2.14
* 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.


Revision 2.14 - (view) (download) (annotate) - [select for diffs]
Fri Nov 3 11:14:48 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.13: +1 -1 lines
Diff to previous 2.13
* 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.


Revision 2.13 - (view) (download) (annotate) - [select for diffs]
Fri Nov 3 10:39:28 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.12: +9 -8 lines
Diff to previous 2.12
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.


Revision 2.12 - (view) (download) (annotate) - [select for diffs]
Fri Nov 3 09:08:03 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.11: +30 -16 lines
Diff to previous 2.11
* 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.


Revision 2.11 - (view) (download) (annotate) - [select for diffs]
Fri Nov 3 08:53:26 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.10: +60 -36 lines
Diff to previous 2.10
* 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.


Revision 2.10 - (view) (download) (annotate) - [select for diffs]
Thu Nov 2 14:12:18 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.9: +35 -33 lines
Diff to previous 2.9
* 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.


Revision 2.9 - (view) (download) (annotate) - [select for diffs]
Wed Nov 1 17:32:17 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.8: +155 -137 lines
Diff to previous 2.8
In M4sugar, move `define', `undefine', and `defn' into the `m4_'
name space.
* m4sugar.m4 (m4_define, m4_defn, m4_undefine): New macros.
(define, defn, undefine): Undefine.
Adjust all uses.
* m4sh.m4: Adjust.
* autoconf.m4: Reenable these builtins.
* m4sugar.m4 (m4_expansion_stack_dump): Use m4_copy.


Revision 2.8 - (view) (download) (annotate) - [select for diffs]
Wed Nov 1 16:33:18 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.7: +1 -0 lines
Diff to previous 2.7
* m4sugar.m4 (m4_fatal): Dump the expansion stack.
* acgeneral.m4 (AC_FATAL): Use m4_fatal.


Revision 2.7 - (view) (download) (annotate) - [select for diffs]
Wed Nov 1 15:56:38 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.6: +512 -0 lines
Diff to previous 2.6
Move the `defun' handling into M4sugar.
* m4sugar.m4 (_m4_divert(GROW), _m4_expansion_stack_dump)
_m4_defun_pro, _m4_defun_epi, m4_defun, $1, m4_defun_once)
m4_before, _m4_require, m4_require, m4_expand_once, m4_provide)
m4_provide_ifelse): New macros.
* acgeneral.m4 (_AC_EXPANSION_STACK_DUMP, _AC_DEFUN_PRO)
_AC_DEFUN_EPI): Removed.
(AC_DEFUN, AC_DEFUN_ONCE, _AC_REQUIRE, AC_REQUIRE)
AC_PROVIDE_IFELSE, AC_FATAL): Reimplement atop M4sugar.


Revision 2.6 - (view) (download) (annotate) - [select for diffs]
Tue Oct 31 15:20:15 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.5: +87 -22 lines
Diff to previous 2.5
Move the handling of classified warnings into M4sugar.
* m4sugar.m4 (m4_diagnose): Remove.
(m4_warning): New.
* acgeneral.m4 (AC_WARNING_IFELSE, _AC_WARNING_IFELSE)
(_AC_WARNING_ERROR_IFELSE, __AC_WARNING_ERROR_IFELSE)
(_AC_DIAGNOSE, AC_DIAGNOSE): Rename as...
* m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse)
(_m4_warn, m4_warn): these.
* acgeneral.m4 (AC_DIAGNOSE): Wrapper around `m4_warn'.
* autoconf.sh: Define `m4_warnings' instead of `_AC_WARNINGS'.


Revision 2.5 - (view) (download) (annotate) - [select for diffs]
Mon Oct 30 19:02:23 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.4: +112 -105 lines
Diff to previous 2.4
* m4sugar.m4: Formatting changes.


Revision 2.4 - (view) (download) (annotate) - [select for diffs]
Mon Oct 30 19:01:25 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.3: +47 -0 lines
Diff to previous 2.3
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.


Revision 2.3 - (view) (download) (annotate) - [select for diffs]
Tue Oct 24 17:25:18 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
Changes since 2.2: +14 -0 lines
Diff to previous 2.2
* 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().


Revision 2.2 - (view) (download) (annotate) - [select for diffs]
Tue Oct 24 17:03:42 2000 UTC (23 years, 6 months ago) by proski
Branch: MAIN
Changes since 2.1: +1 -1 lines
Diff to previous 2.1
* m4sugar.m4 (m4_quote): Comment change.


Revision 2.1 - (view) (download) (annotate) - [select for diffs]
Mon Oct 23 19:13:37 2000 UTC (23 years, 6 months ago) by akim
Branch: MAIN
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.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26