mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
The POSIX names for these functions are htole*(). Use those preferentially. Speed up autoconf by allowing early-out during alternative function searches. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
11 lines
474 B
Plaintext
11 lines
474 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_SYM(prefix, string)
|
|
dnl
|
|
dnl Convert a (semi-) arbitrary string to a CPP symbol
|
|
dnl Compact underscores and convert non-C characters to underscore,
|
|
dnl except + which is converted to X (so C++ -> CXX).
|
|
dnl
|
|
dnl Contract multiple underscores together.
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([PA_SYM],[m4_bpatsubsts(PA_CSYM([$*]),[__+],[_])])
|