From 3095d026424f11714f0b7a828c61dc741d4e716b Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Sat, 13 Apr 2024 23:22:06 +0200 Subject: [PATCH] gh-96398: Fix mpicc check in configure.ac (#117857) --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 799c9e98dc5..11bdd861d8e 100755 --- a/configure +++ b/configure @@ -6129,7 +6129,7 @@ EOF if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` - if $(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then + if test $(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then ac_cv_cc_name="mpicc" fi else diff --git a/configure.ac b/configure.ac index 6769ab2bfe1..285ba0fdfee 100644 --- a/configure.ac +++ b/configure.ac @@ -1011,7 +1011,7 @@ EOF if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` - if $(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then + if test $(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then ac_cv_cc_name="mpicc" fi else