cmake: Add detection whether the system is big endian

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/5/head
Slávek Banko 6 years ago
parent 4aae8e0336
commit 74d59d7884
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -12,6 +12,9 @@ find_package( TDE )
tde_setup_architecture_flags( ) tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
##### check for gcc visibility support ######### ##### check for gcc visibility support #########

@ -3,6 +3,10 @@
// Defined if you have fvisibility and fvisibility-inlines-hidden support. // Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1 #cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
/* Define to 1 if you have the <unistd.h> header file. */ /* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@ #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
@ -291,18 +295,6 @@
/* Defined if compiling without arts */ /* Defined if compiling without arts */
/* #undef WITHOUT_ARTS */ /* #undef WITHOUT_ARTS */
/* 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
/* /*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I'm too lazy to write a configure test as long as only * headers and I'm too lazy to write a configure test as long as only

Loading…
Cancel
Save