From 757a95123d8cae15fa1d9e2ccafac8b42bc315ab Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 6 Apr 2017 16:32:22 +0200 Subject: [PATCH] configure.ac: Replace `which` with `command -v` This allows us to drop `which` as a makedependency. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 84a02fcb1..4df51b415 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,7 @@ AC_SUBST(EXTRA_PCRE2) AC_MSG_CHECKING([if autoreconf needs to be run]) if test configure -ot configure.ac; then AC_MSG_RESULT([yes]) - if which autoreconf >/dev/null; then + if command -v autoreconf >/dev/null; then # No need to provide any error messages if autoreconf fails, the # shell and autconf should take care of that themselves AC_MSG_NOTICE([running autoreconf --no-recursive]) @@ -68,7 +68,7 @@ fi AC_MSG_CHECKING([if autoheader needs to be run]) if test ! -f ./config.h.in -o config.h.in -ot configure.ac; then AC_MSG_RESULT([yes]) - if which autoheader >/dev/null; then + if command -v autoheader >/dev/null; then AC_MSG_NOTICE([running autoheader]) autoheader || exit 1 else