diff options
-rw-r--r-- | ConfigureChecks.cmake | 3 | ||||
-rw-r--r-- | config.h.cmake | 12 |
2 files changed, 6 insertions, 9 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 14abf096..d18035b1 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -4,6 +4,7 @@ include(CheckFunctionExists) include(CheckLibraryExists) include(CheckTypeSize) include(CheckCXXSourceCompiles) +include(TestBigEndian) set(PACKAGE ${APPLICATION_NAME}) set(VERSION ${APPLICATION_VERSION}) @@ -55,3 +56,5 @@ if (WITH_DEBUG_CRYPTO) set(DEBUG_CRYPTO 1) endif (WITH_DEBUG_CRYPTO) +# ENDIAN +test_big_endian(WORDS_BIGENDIAN) diff --git a/config.h.cmake b/config.h.cmake index e86f6926..b49b2278 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -77,14 +77,8 @@ /* Define to 1 if you want to enable debug output for crypto functions */ #cmakedefine DEBUG_CRYPTO 1 +/*************************** ENDIAN *****************************/ + /* 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 1 |