It's not pretty, but ntp's configure.in has:

case "$host" in
 $target)
    AC_C_BIGENDIAN
    ;;
 *) case "$target" in
     i*86-*-vxworks*)
        # LITTLEENDIAN
        ;;
     *-*-vxworks*)
        AC_DEFINE(WORDS_BIGENDIAN)
        ;;
     *) AC_MSG_ERROR(Cross-compiling needs explicit byte order)
        ;;
    esac
    ;;
esac

Reply via email to