Add optional argument to AS_LITERAL_IF.
commite960d7be02c5d2e33b4b631359b5cb98c87faafa
authorEric Blake <eblake@redhat.com>
Wed, 17 Mar 2010 00:12:02 +0000 (16 18:12 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 2 Jul 2010 18:10:09 +0000 (2 12:10 -0600)
tree21f5044a3dcabee64cc3de296e4cdc851d62767c
parent71972deac8c02dd9eff4e2dd0fc137add0eb8720
Add optional argument to AS_LITERAL_IF.

* lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Rewrite to generate macro
name, without using m4_cond.
(_AS_LITERAL_IF_, _AS_LITERAL_IF_YES, _AS_LITERAL_IF_NO): New
helpers.
(AS_LITERAL_IF, AS_LITERAL_WORD_IF, _AS_TR_SH, _AS_TR_CPP)
(_AS_VAR_PUSHDEF): Adjust callers.
* lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Relax restrictions on
invalid bytes, since this allows inline struct layouts.
(_AC_CHECK_ALIGNOF): New helper macro.
* tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
* doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
Update documentation.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/autoconf.texi
lib/autoconf/types.m4
lib/m4sugar/m4sh.m4
tests/m4sh.at