summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--config.h.cmake13
2 files changed, 4 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6fa9abdd..cf1cb11a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,6 +158,9 @@ endif( NO_BUILTIN )
##### system checks #############################
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/libltdl )
check_include_file( "ltdl.h" HAVE_LTDL_H )
if( NOT HAVE_LTDL_H )
diff --git a/config.h.cmake b/config.h.cmake
index 8c104d5ce..7fb9bfc1b 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -1,8 +1,5 @@
/* config.h.in. Generated from configure.in by autoheader. */
-/* Define if building universal (internal helper macro) */
-#undef AC_APPLE_UNIVERSAL_BUILD
-
/* Define where aspell data dir is */
#define ASPELL_DATADIR "@ASPELL_DATADIR@"
@@ -931,15 +928,7 @@
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
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
+#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
/* where rgb.txt is in */
#cmakedefine X11_RGBFILE "@X11_RGBFILE@"