1 AC_DEFUN(RFX_CHECK_BYTEORDER,
3 AC_MSG_CHECKING([for byte order])
5 int main (int argc, char *argv[])
10 ], BIGENDIAN=1, LITTLEENDIAN=1, CROSSCOMPILE=1)
13 if test "x${CROSSCOMPILE}" = "x1"; then
14 AC_MSG_RESULT(we are cross compiling- trying to guess from system type)
16 AC_MSG_CHECKING([for byte order, try 2])
21 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
28 if test "x${LITTLEENDIAN}" = "x1"; then
29 AC_MSG_RESULT(little endian)
33 if test "x${BIGENDIAN}" = "x1"; then
34 AC_MSG_RESULT(big endian)
37 export WORDS_BIGENDIAN
38 AC_DEFINE_UNQUOTED(WORDS_BIGENDIAN, 1)
40 if test "x${BYTEORDERCHECKOK}" != "x1"; then
41 AC_MSG_RESULT(unknown)
42 echo Byte order could not determined.