# HG changeset patch # User reimar # Date 1347487296 0 # Node ID d698d80bb438e70d163d62c66ee6deebdfcac04b # Parent c9d302e5e4be2ecfc771001fb565f58a4d1ecb59 Pass input to "strings" via stdin. That disables any "clever" parsing that will fail if strings was not updated to support that particular binary format. This can easily happen when cross-compiling, but obviously strings on OSX 10.6 was never update to handle the latest (64 bit) binary format either and would previously just fail (the obvious way of falling back to the generic algorithm in that case would have been too user-friendly I guess...) diff -r c9d302e5e4be -r d698d80bb438 configure --- a/configure Wed Sep 12 21:03:45 2012 +0000 +++ b/configure Wed Sep 12 22:01:36 2012 +0000 @@ -2540,7 +2540,9 @@ int main(void) { return (long)ascii_name; } EOF if cc_check ; then - if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then + # stdin is used to make "strings" not try something clever like + # parse executable section headers (and possibly fail in the process) + if strings < $TMPEXE | grep -q -l MPlayerBigEndian ; then _big_endian=yes else _big_endian=no