aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2014-05-17 23:28:00 +0100
committerD G Turner2014-05-17 23:28:00 +0100
commit54c957913a0345709b04c2d78c73238ddfb7d1f1 (patch)
treeaf427962c801b9bebe04e30d675fb2ee539ef91a
parentbee54dc048512904941487d6f1f7664b690d666c (diff)
downloadscummvm-rg350-54c957913a0345709b04c2d78c73238ddfb7d1f1.tar.gz
scummvm-rg350-54c957913a0345709b04c2d78c73238ddfb7d1f1.tar.bz2
scummvm-rg350-54c957913a0345709b04c2d78c73238ddfb7d1f1.zip
CONFIGURE: Add support for host-alias prefixed strings binary.
This is the last outstanding change of patch #1359 - "Update wii/gamecube configure" submitted on 2010-11-15.
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 4e4e9d1456..122b1ed3c1 100755
--- a/configure
+++ b/configure
@@ -1843,6 +1843,12 @@ if test "$_global_constructors" = yes; then
fi
echo $_global_constructors
+if test ! "x$(which $_host_alias-strings)" = "x"; then
+_strings=$_host_alias-strings
+else
+_strings=strings
+fi
+
#
# Check for endianness
#
@@ -1857,7 +1863,7 @@ void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
$CXX $CXXFLAGS -c -o $TMPO.o tmp_endianness_check.cpp
-if strings $TMPO.o | grep BIGenDianSyS >/dev/null; then
+if $_strings $TMPO.o | grep BIGenDianSyS >/dev/null; then
_endian=big
elif strings $TMPO.o | grep LiTTleEnDian >/dev/null; then
_endian=little