mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
I have been setting up a cross-project librarized autoconf setup; use it for NASM as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
8 lines
386 B
Plaintext
8 lines
386 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_SYM(prefix, string)
|
|
dnl
|
|
dnl Convert a (semi-) arbitrary string to a CPP symbol
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([PA_SYM],
|
|
[m4_normalize([$1])m4_bpatsubsts(m4_toupper([$2]),[[^ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]+],[_],[^._?\(.*\)_.$],[[\1]])])
|