changeset 59174:f5373fc53bed

8243656: Shell built-in test in configure depends on help Summary: help might not be available to check for built-ins: Use 'command -v' instead Reviewed-by: erikj Contributed-by: Michael Zucchi <notzed@gmail.com>
author sgehwolf
date Mon, 27 Apr 2020 11:00:29 +0200
parents 871e0be28aed
children 068a5c842bb4
files make/autoconf/util.m4
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/autoconf/util.m4	Wed May 06 00:23:51 2020 -0400
+++ b/make/autoconf/util.m4	Mon Apr 27 11:00:29 2020 +0200
@@ -573,7 +573,7 @@
   UTIL_SETUP_TOOL($1, [AC_PATH_PROGS($1, $2, , $3)])
   if test "x[$]$1" = x; then
     AC_MSG_NOTICE([Required tool $2 not found in PATH, checking built-in])
-    if help $2 > /dev/null 2>&1; then
+    if command -v $2 > /dev/null 2>&1; then
       AC_MSG_NOTICE([Found $2 as shell built-in. Using it])
       $1="$2"
     else