From 5dd836030e0e399b21ab0865ae0d93934bdb3930 Mon Sep 17 00:00:00 2001 From: Arnon Yaari Date: Wed, 1 Apr 2020 18:19:09 +0300 Subject: 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 --- Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst | 2 ++ configure | 4 ++-- m4/ax_c_float_words_bigendian.m4 | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst diff --git a/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst b/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst new file mode 100644 index 0000000..8696930 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst @@ -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. diff --git a/configure b/configure index 893d0e1..a7a3ac2 100755 --- a/configure +++ b/configure @@ -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 diff --git a/m4/ax_c_float_words_bigendian.m4 b/m4/ax_c_float_words_bigendian.m4 index 216b90d..746228c 100644 --- a/m4/ax_c_float_words_bigendian.m4 +++ b/m4/ax_c_float_words_bigendian.m4 @@ -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 -- cgit v0.12