build: detect endianness at compile time

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-27 12:06:24 +02:00
parent 620fde1213
commit b780be7578
2 changed files with 8 additions and 2 deletions

View File

@ -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})

View File

@ -3,6 +3,7 @@
#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