git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4807
ffa7fe5e-494d-0410-b361-
a75ebd5db220
endif(PKG_CONFIG_FOUND)
#Simple checks
CHECK_INCLUDE_FILES(wordexp.h HAVE_WORDEXP)
+CHECK_INCLUDE_FILES(endian.h HAVE_ENDIAN_H)
CHECK_INCLUDE_FILES(stdint.h HAVE_STDINT_H)
CHECK_INCLUDE_FILES(byteswap.h HAVE_BYTESWAP_H)
CHECK_LIBRARY_EXISTS(gypsy gypsy_control_get_default "" GYPSY_FOUND)
#cmakedefine HAVE_GETDELIM 1
#cmakedefine HAVE_GETLINE 1
+
+#cmakedefine HAVE_ENDIAN_H 1
#if HAVE_BYTESWAP_H
/* machine dependent versions of byte swapping functions. GNU extension.*/
#include <byteswap.h>
+#if HAVE_ENDIAN_H
+ #include <endian.h>
+#endif
#elif defined(USE_SYS_ENDIAN_H)
#include <sys/endian.h>
#if defined(_BYTE_ORDER) && !defined(__BYTE_ORDER)