353 |
[cross_compiling=yes |
[cross_compiling=yes |
354 |
AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown]) |
AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown]) |
355 |
ac_prevendian=`cat at-endian` |
ac_prevendian=`cat at-endian` |
356 |
# Chech we have found the same result as in the previous run |
# Check that we have found the same result as in the previous run |
357 |
# or unknown (because the cross-compiling check is allowed to fail; |
# or unknown (because the cross-compiling check is allowed to fail; |
358 |
# although it might be interesting to suppress this comparison, just |
# although it might be interesting to suppress this comparison, just |
359 |
# to know on which system it fails if it ever does). |
# to know on which system it fails if it ever does). |
360 |
if test $ac_endian != $ac_prevendian -a $ac_endian != unknown; then |
if test $ac_endian != $ac_prevendian && test $ac_endian != unknown; then |
361 |
AC_MSG_ERROR([unexpected endianness: first run found '$ac_prevendian' but second run found '$ac_endian']) |
AC_MSG_ERROR([unexpected endianness: first run found '$ac_prevendian' but second run found '$ac_endian']) |
362 |
fi |
fi |
363 |
]) |
]) |