configure: endianness check for cross compile
authorAaron Carroll <aaronc@cse.unsw.edu.au>
Thu, 14 Mar 2013 05:57:40 +0000 (16:57 +1100)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Mar 2013 14:01:58 +0000 (15:01 +0100)
commit1a17cfdb5e261459920212531d8f5e0eedfb267b
tree3c1d3d37fce4e90954edf6635ad0e4c0118406df
parent142429e5ae9ac82c3e37af759f12d058f8259e23
configure: endianness check for cross compile

 - Add a cross compile check: assume yes if we can't run a test binary
 - If cross compiling, revert to a compile-time endianess check. This tries
   a few possible ways to detect big endian, but otherwise assumes little. We
   rely on the run-time check to save us if the build-time check is wrong.

Signed-off-by: Aaron Carroll <aaronc@cse.unsw.edu.au>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure