Skip to content

Commit

Permalink
bpo-38527: fix configure script for Solaris (pythonGH-16845)
Browse files Browse the repository at this point in the history
On Solaris, the regular "grep" command may be an old version that fails to search a binary file. We need to use the correct command (ggrep, in our case), which is found by the configure script earlier.

Automerge-Triggered-By: @pablogsal
  • Loading branch information
wiggin15 authored Apr 1, 2020
1 parent eacc074 commit 5dd8360
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix configure check on Solaris for "float word ordering": sometimes, the correct "grep" command was not being used.
Patch by Arnon Yaari.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -14340,10 +14340,10 @@ _ACEOF
if ac_fn_c_try_compile "$LINENO"; then :


if grep noonsees conftest.$ac_objext >/dev/null ; then
if $GREP noonsees conftest.$ac_objext >/dev/null ; then
ax_cv_c_float_words_bigendian=yes
fi
if grep seesnoon conftest.$ac_objext >/dev/null ; then
if $GREP seesnoon conftest.$ac_objext >/dev/null ; then
if test "$ax_cv_c_float_words_bigendian" = unknown; then
ax_cv_c_float_words_bigendian=no
else
Expand Down
4 changes: 2 additions & 2 deletions m4/ax_c_float_words_bigendian.m4
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ double d = 909042349670368103374704789055050114762116927356156320147971208440534
]])], [
if grep noonsees conftest.$ac_objext >/dev/null ; then
if $GREP noonsees conftest.$ac_objext >/dev/null ; then
ax_cv_c_float_words_bigendian=yes
fi
if grep seesnoon conftest.$ac_objext >/dev/null ; then
if $GREP seesnoon conftest.$ac_objext >/dev/null ; then
if test "$ax_cv_c_float_words_bigendian" = unknown; then
ax_cv_c_float_words_bigendian=no
else
Expand Down

0 comments on commit 5dd8360

Please sign in to comment.