Skip to content
Permalink
Browse files

8243656: Shell built-in test in configure depends on help

Help might not be available to check for built-ins: Use 'command -v' instead

Reviewed-by: erikj
  • Loading branch information
Michael Zucchi authored and jerboaa committed Apr 27, 2020
1 parent 5b06609 commit a3443d0fd1de170f6811968cc0e9eac314b4bcd4
Showing with 1 addition and 1 deletion.
  1. +1 −1 make/autoconf/util.m4
@@ -573,7 +573,7 @@ AC_DEFUN([UTIL_REQUIRE_BUILTIN_PROGS],
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

0 comments on commit a3443d0

Please sign in to comment.
You can’t perform that action at this time.