summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/c-auto.in
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/c-auto.in')
-rw-r--r--Build/source/texk/web2c/c-auto.in17
1 files changed, 12 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/c-auto.in b/Build/source/texk/web2c/c-auto.in
index 2e614db4956..f63a33c268f 100644
--- a/Build/source/texk/web2c/c-auto.in
+++ b/Build/source/texk/web2c/c-auto.in
@@ -25,6 +25,9 @@
/* web2c: the version string. */
#define WEB2CVERSION "REPLACE-WITH-WEB2CVERSION"
+/* Define if building universal (internal helper macro) */
+#undef AC_APPLE_UNIVERSAL_BUILD
+
/* web2c: Define if gcc asm needs _ on external symbols. */
#undef ASM_NEEDS_UNDERSCORE
@@ -190,11 +193,15 @@
#undef UNITERMWIN
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
- significant byte first (like Motorola and SPARC, unlike Intel and VAX). */
-#if defined __BIG_ENDIAN__
-# define WORDS_BIGENDIAN 1
-#elif ! defined __LITTLE_ENDIAN__
-# undef WORDS_BIGENDIAN
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+# define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+# undef WORDS_BIGENDIAN
+# endif
#endif
/* Define to include X11 window in Metafont. */