bpo-38527: fix configure script for Solaris (GH-16845)

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
(cherry picked from commit 5dd836030e)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
This commit is contained in:
Miss Islington (bot) 2020-04-01 08:38:17 -07:00 committed by GitHub
parent f971c8c0a0
commit fc03640922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -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
configure vendored
View File

@ -14303,10 +14303,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

View File

@ -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