From 476730ae699e56f33a8f6d226247227d5290976e Mon Sep 17 00:00:00 2001 From: Frank Denis <github@pureftpd.org> Date: Sat, 20 Apr 2013 01:25:13 +0200 Subject: [PATCH] Define NATIVE_LITTLE_ENDIAN / NATIVE_BIG_ENDIAN if we can --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 56d0e318..77d16c8c 100644 --- a/configure.ac +++ b/configure.ac @@ -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