1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Define NATIVE_LITTLE_ENDIAN / NATIVE_BIG_ENDIAN if we can

This commit is contained in:
Frank Denis 2013-04-20 01:25:13 +02:00
parent 201ee903a2
commit 476730ae69

View File

@ -151,7 +151,12 @@ AS_IF([test -d /usr/local/lib], [
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
AC_C_BIGENDIAN(
AC_DEFINE(NATIVE_BIG_ENDIAN, 1, [machine is bigendian]),
AC_DEFINE(NATIVE_LITTLE_ENDIAN, 1, [machine is littleendian]),
AC_MSG_ERROR([unknown endianess]),
AC_MSG_WARN([universal endianess])
)
AC_MSG_CHECKING(for 128-bit arithmetic)
have_ti_mode=no