aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 87d3679258..68614432e1 100755
--- a/configure
+++ b/configure
@@ -905,7 +905,7 @@ void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
$CXX $CXXFLAGS -c -o tmp_endianness_check.o tmp_endianness_check.cpp
-if grep BIGenDianSyS tmp_endianness_check.o >/dev/null; then
+if strings tmp_endianness_check.o | grep BIGenDianSyS >/dev/null; then
_endian=big
else
_endian=little