Skip to content

Commit

Permalink
Replace usage of which by command -v
Browse files Browse the repository at this point in the history
To detect if `yasm` is available, configure uses the `which` command, which may not be available. The posix equivalent is `command -v`.

See: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
  • Loading branch information
tornaria authored Jun 9, 2020
1 parent 6ac2f4a commit bde6d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ AC_SUBST(CCAS)
MPIR_AS=""
if test -z "$with_yasm"; then
echo "Looking for a system-wide yasm..."
MPIR_AS=`which yasm`
MPIR_AS=`command -v yasm`
if test $? -ne 0; then
AC_MSG_ERROR([no system-wide yasm found])
fi
Expand Down

0 comments on commit bde6d6b

Please sign in to comment.