summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2004-02-13 21:57:29 +0000
committerJohn Criswell <criswell@uiuc.edu>2004-02-13 21:57:29 +0000
commit0021c31b60706f0a35f0858c112ebdc709f3d3e7 (patch)
tree37e28b7a26ec4c9deb02c96562f3d14574d82a6a /autoconf
parent339d8df4c04c5d0be8dc70722153d94cfef7171a (diff)
Added check for target machine endian-ness and put the result into
Makefile.config (ENDIAN variable is set to big or little). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index e0012759b20..8333333047d 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -244,6 +244,9 @@ AC_STRUCT_TM
dnl Check for various C features
AC_C_PRINTF_A
+dnl Check for the endianness of the target
+AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))
+
dnl Check for C++ extensions
AC_CXX_HAVE_HASH_MAP
AC_CXX_HAVE_HASH_SET