summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-02-02 01:42:02 +0100
committerSlávek Banko <slavek.banko@axis.cz>2017-02-02 01:42:02 +0100
commit1458cc35b20c25c30db011c3ce958b7bd5d62c34 (patch)
tree777b43eb410e4c8bc2e084898dc8db4866154ce2 /ConfigureChecks.cmake
parenta99988adb282be204543b80c2efa038cf7bb5579 (diff)
downloadtdepim-1458cc35b20c25c30db011c3ce958b7bd5d62c34.tar.gz
tdepim-1458cc35b20c25c30db011c3ce958b7bd5d62c34.zip
Fix detection whether the system is big endian
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index c0bcd225..6789c4c0 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -11,6 +11,9 @@
tde_setup_architecture_flags( )
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
##### check for gcc visibility support #########
# FIXME
# This should check for [T]Qt3 visibility support
@@ -25,6 +28,10 @@ if( WITH_GCC_VISIBILITY )
endif( )
+if( BUILD_KMAIL )
+ check_include_file( "byteswap.h" HAVE_BYTESWAP_H )
+endif( )
+
if( BUILD_LIBTDEPIM OR BUILD_KMAIL )
option( TDEPIM_NEW_DISTRLISTS "Define if you want to use the new distribution lists" ON )
endif( )