diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 610025ee..c10109b1 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -28,6 +28,11 @@ add_definitions(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra -Wstrict-prototypes) # }}} +# {{{ Endianness +include(TestBigEndian) +TEST_BIG_ENDIAN(AWESOME_IS_BIG_ENDIAN) +# }}} + # {{{ Find external utilities macro(a_find_program var prg req) set(required ${req}) diff --git a/config.h.in b/config.h.in index 2f4d2f9e..9241050e 100644 --- a/config.h.in +++ b/config.h.in @@ -1,8 +1,9 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ -#define AWESOME_LUA_LIB_PATH "@AWESOME_LUA_LIB_PATH@" -#define XDG_CONFIG_DIR "@XDG_CONFIG_DIR@" +#define AWESOME_LUA_LIB_PATH "@AWESOME_LUA_LIB_PATH@" +#define XDG_CONFIG_DIR "@XDG_CONFIG_DIR@" +#define AWESOME_IS_BIG_ENDIAN @AWESOME_IS_BIG_ENDIAN@ #cmakedefine WITH_DBUS