diff options
author | Michael Weiser <michael.weiser@gmx.de> | 2018-02-13 22:13:12 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2018-03-25 11:27:28 +0200 |
commit | d5738a574daee265ebfcf28dd51dfdca56c1798b (patch) | |
tree | d2bf5be49288022e341f25a10fafa6ea46f20a39 /configure.ac | |
parent | 8c210b4e53b8566faea7ff0a175ad323236dd5d2 (diff) | |
download | nettle-d5738a574daee265ebfcf28dd51dfdca56c1798b.tar.gz |
Add arm endianness-aware assembly infrastructure
Introduce m4 macros to conditionally handle differences of little- and
big-endian arm in assembler code.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0a35d3dd..a3460853 100644 --- a/configure.ac +++ b/configure.ac @@ -205,7 +205,11 @@ LSH_FUNC_STRERROR # getenv_secure is used for fat overrides, # getline is used in the testsuite AC_CHECK_FUNCS(secure_getenv getline) -AC_C_BIGENDIAN + +ASM_WORDS_BIGENDIAN=unknown +AC_C_BIGENDIAN([AC_DEFINE([WORDS_BIGENDIAN], 1) + ASM_WORDS_BIGENDIAN=yes], + [ASM_WORDS_BIGENDIAN=no]) AC_CACHE_CHECK([for __builtin_bswap64], nettle_cv_c_builtin_bswap64, @@ -820,6 +824,7 @@ AC_SUBST(ASM_TYPE_PROGBITS) AC_SUBST(ASM_MARK_NOEXEC_STACK) AC_SUBST(ASM_ALIGN_LOG) AC_SUBST(W64_ABI) +AC_SUBST(ASM_WORDS_BIGENDIAN) AC_SUBST(EMULATOR) AC_SUBST(LIBNETTLE_MAJOR) |