Ticket #34962: patch-bigendian.diff
File patch-bigendian.diff, 712 bytes (added by devernay (Frédéric Devernay), 12 years ago) |
---|
-
configure.ac
old new 1739 1739 dnl check for big/little endian for LCMS 1740 1740 dnl -------------------------------------------------- 1741 1741 1742 AC_MSG_CHECKING([for big endian]) 1743 1744 AC_RUN_IFELSE( 1745 [AC_LANG_PROGRAM([#include <stdio.h>], [ 1746 static const int one = 1; 1747 return (*(char*)&one == 0 ? 0 : 1); 1748 ])], 1742 AC_C_BIGENDIAN( 1749 1743 [LCMS_BIGENDIAN=1], 1750 1744 [LCMS_BIGENDIAN=0]) 1751 1745 1752 1746 if test "x$LCMS_BIGENDIAN" != "x0"; then 1753 1747 LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$LCMS_BIGENDIAN" 1754 1748 LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$LCMS_BIGENDIAN" 1755 AC_MSG_RESULT(yes)1756 1749 else 1757 1750 LCMS_ENDIAN= 1758 1751 LCMS2_ENDIAN= 1759 AC_MSG_RESULT(no)1760 1752 fi 1761 1753 1762 1754