Lines 901-914
Link Here
|
901 |
# skip endianness check for Intel Compiler and MSVS, as all supported platforms are little. each have flags that will cause the check to fail as well |
901 |
# skip endianness check for Intel Compiler and MSVS, as all supported platforms are little. each have flags that will cause the check to fail as well |
902 |
CPU_ENDIAN="little-endian" |
902 |
CPU_ENDIAN="little-endian" |
903 |
if [ $compiler = GNU ]; then |
903 |
if [ $compiler = GNU ]; then |
904 |
echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c |
904 |
cat <<-EOF > conftest.c |
905 |
$CC $CFLAGS conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed" |
905 |
#include <stdint.h> |
906 |
if (${cross_prefix}strings -a conftest.o | grep -q BIGE) && (${cross_prefix}strings -a conftest.o | grep -q FPendian) ; then |
906 |
#define IS_BIG_ENDIAN (*(uint16_t *)"\0\xff" < 0x100) |
|
|
907 |
int main(void) { return IS_BIG_ENDIAN; } |
908 |
EOF |
909 |
$CC $CFLAGS -o conftest conftest.c || die "endian test failed" |
910 |
./conftest || { |
907 |
define WORDS_BIGENDIAN |
911 |
define WORDS_BIGENDIAN |
908 |
CPU_ENDIAN="big-endian" |
912 |
CPU_ENDIAN="big-endian" |
909 |
elif !(${cross_prefix}strings -a conftest.o | grep -q EGIB && ${cross_prefix}strings -a conftest.o | grep -q naidnePF) ; then |
913 |
} |
910 |
die "endian test failed" |
|
|
911 |
fi |
912 |
fi |
914 |
fi |
913 |
|
915 |
|
914 |
if [ "$cli_libx264" = "system" -a "$shared" != "yes" ] ; then |
916 |
if [ "$cli_libx264" = "system" -a "$shared" != "yes" ] ; then |