diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-10-18 04:01:18 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-10-18 04:01:18 +0000 |
commit | b9238656512e1c64988f4d74ab37592e99d251fd (patch) | |
tree | 608204d552d6947f3212303c8de33d72672ab24e /aconfigure.ac | |
parent | 4f500d28bd2747925afb868755e0b4c8567dc5e0 (diff) |
Re #1252: Add PJLIB endianness preprocessor macro definition in autoconf
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3820 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index c9848253..84295b5b 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -127,6 +127,12 @@ dnl Endianness detection dnl AC_C_BIGENDIAN +if test "x$ac_cv_c_bigendian" = "xyes"; then + CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0" +else + CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1" +fi + dnl dnl Legacy macros dnl |