diff options
author | Johannes Schickel | 2014-05-22 01:58:47 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-05-22 01:58:47 +0200 |
commit | ec931b26ecc6226de95cd10b5a1ae561ea0f5386 (patch) | |
tree | 0f1b905c67f96eaf029f972bced4d9362d20f298 | |
parent | 347c03d8b7c8768dc58f5f42ff013c426f7acebb (diff) | |
parent | 2ff0a553c303569412030a55d61802f7006727f1 (diff) | |
download | scummvm-rg350-ec931b26ecc6226de95cd10b5a1ae561ea0f5386.tar.gz scummvm-rg350-ec931b26ecc6226de95cd10b5a1ae561ea0f5386.tar.bz2 scummvm-rg350-ec931b26ecc6226de95cd10b5a1ae561ea0f5386.zip |
Merge pull request #463 from digitall/wiiMiscConfigure
CONFIGURE: Add support for host-alias prefixed strings binary.
-rwxr-xr-x | configure | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1843,6 +1843,15 @@ if test "$_global_constructors" = yes; then fi echo $_global_constructors +echo_n "Checking for $_host_alias-strings... " >> "$TMPLOG" +if test ! "x$(which $_host_alias-strings 2>/dev/null)" = "x"; then +_strings=$_host_alias-strings +echo yes >> "$TMPLOG" +else +_strings=strings +echo no >> "$TMPLOG" +fi + # # Check for endianness # @@ -1857,9 +1866,9 @@ 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 +elif $_strings $TMPO.o | grep LiTTleEnDian >/dev/null; then _endian=little fi echo $_endian; |