Fix detection whether the system is big endian

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7cc97cb187)
pull/16/head
Slávek Banko 8 years ago
parent 256b4c4867
commit b9d5e48086

@ -154,6 +154,9 @@ endif( NO_BUILTIN )
##### system checks ############################# ##### system checks #############################
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/libltdl ) tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/libltdl )
check_include_file( "ltdl.h" HAVE_LTDL_H ) check_include_file( "ltdl.h" HAVE_LTDL_H )
if( NOT HAVE_LTDL_H ) if( NOT HAVE_LTDL_H )

@ -1,8 +1,5 @@
/* config.h.in. Generated from configure.in by autoheader. */ /* 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 where aspell data dir is */
#define ASPELL_DATADIR "@ASPELL_DATADIR@" #define ASPELL_DATADIR "@ASPELL_DATADIR@"
@ -922,15 +919,7 @@
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD #cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif
/* where rgb.txt is in */ /* where rgb.txt is in */
#cmakedefine X11_RGBFILE "@X11_RGBFILE@" #cmakedefine X11_RGBFILE "@X11_RGBFILE@"

Loading…
Cancel
Save