From 54c957913a0345709b04c2d78c73238ddfb7d1f1 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 17 May 2014 23:28:00 +0100 Subject: 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. --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure') 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 -- cgit v1.2.3