mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
configure.ac: add endian headers to configure test
- Add endian headers to the standard tests if present - Check for __builtin_constant_p() Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
2dbfdee780
commit
e5033dfd1c
@ -99,7 +99,6 @@ AC_CHECK_HEADERS(stdnoreturn.h)
|
||||
AC_CHECK_HEADERS(io.h)
|
||||
AC_CHECK_HEADERS(fcntl.h)
|
||||
AC_CHECK_HEADERS(unistd.h)
|
||||
AC_CHECK_HEADERS(endian.h sys/endian.h machine/endian.h)
|
||||
AC_CHECK_HEADERS(sys/mman.h)
|
||||
AC_CHECK_HEADERS(sys/types.h)
|
||||
AC_CHECK_HEADERS(sys/stat.h)
|
||||
@ -176,6 +175,7 @@ AC_SUBST([PDFOPT])
|
||||
dnl
|
||||
dnl Look for byte-swapping support...
|
||||
dnl
|
||||
PA_ADD_HEADERS(endian.h sys/endian.h machine/endian.h)
|
||||
PA_HAVE_FUNC(cpu_to_le16, (0))
|
||||
PA_HAVE_FUNC(cpu_to_le32, (0))
|
||||
PA_HAVE_FUNC(cpu_to_le64, (0))
|
||||
@ -195,6 +195,11 @@ PA_HAVE_FUNC(_byteswap_ushort, (0))
|
||||
PA_HAVE_FUNC(_byteswap_ulong, (0))
|
||||
PA_HAVE_FUNC(_byteswap_uint64, (0))
|
||||
|
||||
dnl
|
||||
dnl Check for __builtin_constant_p()
|
||||
dnl
|
||||
PA_HAVE_FUNC(__builtin_constant_p, (0))
|
||||
|
||||
dnl
|
||||
dnl Check for supported gcc attributes; some compilers (e.g. Sun CC)
|
||||
dnl support these, but don't define __GNUC__ as they don't support
|
||||
|
Loading…
x
Reference in New Issue
Block a user