summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2008-03-13 17:45:25 -0700
committerVladimir Vukicevic <vladimir@h-232.office.mozilla.org>2008-03-13 17:48:28 -0700
commitcfd90e4e1b4f2985ffea578110c50a176213fcaf (patch)
treee94fff925325403733138abb2362b929881c20ff
parente7fe79aafe0c0be7badbb659442c2f834fbea9f3 (diff)
[mac] Correctly handle endianness in multi-architecture compiles on MacOS X1.4
-rw-r--r--configure.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3c5baf55..0850afcb 100644
--- a/configure.in
+++ b/configure.in
@@ -61,8 +61,26 @@ AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL dnl required version (1.4) DON'T REMOVE!
AC_STDC_HEADERS
AC_C_INLINE
+
+case $host_os in
+ darwin*) XORG="no" ;;
+AH_VERBATIM([X_BYTE_ORDER],[
+/* Deal with multiple architecture compiles on Mac OS X */
+#ifdef __APPLE_CC__
+#ifdef __BIG_ENDIAN__
+#define WORDS_BIGENDIAN 1
+#define FLOAT_WORDS_BIGENDIAN 1
+#else
+#undef WORDS_BIGENDIAN
+#undef FLOAT_WORDS_BIGENDIAN
+#endif
+#endif
+])
+ *)
AC_C_BIGENDIAN
AX_C_FLOAT_WORDS_BIGENDIAN
+ ;;
+esac
dnl ===========================================================================
dnl === Local macros