aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 979e3a8..fe16b50 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -227,7 +227,10 @@ dnl Define a substitution, ARCH, for the target architecture
AC_SUBST(ARCH,$llvm_cv_target_arch)
dnl Check for the endianness of the target
-AC_C_BIGENDIAN(AC_SUBST([ENDIAN],[big]),AC_SUBST([ENDIAN],[little]))
+AC_C_BIGENDIAN([AC_SUBST([ENDIAN],[big]),
+ AC_DEFINE([MSB_FIRST], [1], [Define if this target is big endian])],
+ [AC_SUBST([ENDIAN],[little]),
+ AC_DEFINE([LSB_FIRST], [1], [Define if this target is little endian])])
dnl Check for build platform executable suffix if we're crosscompiling
if test "$cross_compiling" = yes; then