Skip to content

Commit

Permalink
CONFIGURE: Add support for host-alias prefixed strings binary.
Browse files Browse the repository at this point in the history
This is the last outstanding change of patch #1359 - "Update
wii/gamecube configure" submitted on 2010-11-15.
  • Loading branch information
digitall committed May 17, 2014
1 parent bee54dc commit 54c9579
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand All @@ -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
Expand Down

0 comments on commit 54c9579

Please sign in to comment.