0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00
Files
nasm/autoconf/m4/pa_lang_seen_set.m4
H. Peter Anvin 2de413db32 autoconf: more autoconf library macro updates
More macro updates from the pa_autoconf library.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-22 17:02:58 -07:00

20 lines
758 B
Plaintext

dnl --------------------------------------------------------------------------
dnl PA_LANG_SEEN_SET
dnl
dnl Set of the languages that have been used in the configuration.
dnl
dnl This relies on overriding _AC_LANG_SET(from, to),
dnl the internal implementation of _AC_LANG.
dnl
dnl The very first language transition [] -> [C] is ignored, because
dnl it is done from AC_INIT regardless of any user specified language.
dnl --------------------------------------------------------------------------
m4_ifndef([_PA_LANG_SET],
[m4_rename([_AC_LANG_SET], [_PA_LANG_SET])
m4_set_delete([_pa_lang_seen_set])
m4_defun([_AC_LANG_SET],
[m4_ifnblank([$1],[m4_set_add([_pa_lang_seen_set],[$2])])_PA_LANG_SET($@)])])
AC_DEFUN([PA_LANG_SEEN_SET],[[_pa_lang_seen_set]])