mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
5ec791a2d5
* 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.
55 lines
947 B
Plaintext
55 lines
947 B
Plaintext
# -*- Autoconf -*-
|
|
|
|
cat <<EOF
|
|
|
|
M4sugar.
|
|
|
|
EOF
|
|
|
|
## ------- ##
|
|
## m4_wrap ##
|
|
## ------- ##
|
|
|
|
AT_SETUP(m4_wrap)
|
|
|
|
# m4_wrap is used to display the help strings. Also, check that
|
|
# commas are not swallowed. This can easily happen because of
|
|
# m4-listification.
|
|
|
|
AT_DATA(configure.in,
|
|
[[AC_PLAIN_SCRIPT()dnl
|
|
m4_wrap([Short string */], [ ], [/* ], 20)
|
|
|
|
m4_wrap([Much longer string */], [ ], [/* ], 20)
|
|
|
|
m4_wrap([Short doc.], [ ], [ --short ], 30)
|
|
|
|
m4_wrap([Short doc.], [ ], [ --too-wide], 30)
|
|
|
|
m4_wrap([Super long documentation.], [ ], [ --too-wide], 30)
|
|
|
|
m4_wrap([First, second , third, [,quoted]])
|
|
]])
|
|
|
|
AT_DATA(expout,
|
|
[[/* Short string */
|
|
|
|
/* Much longer
|
|
string */
|
|
|
|
--short Short doc.
|
|
|
|
--too-wide
|
|
Short doc.
|
|
|
|
--too-wide
|
|
Super long
|
|
documentation.
|
|
|
|
First, second , third, [,quoted]
|
|
]])
|
|
|
|
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir -o-], 0, expout)
|
|
|
|
AT_CLEANUP()
|