From 40dd4751bfff9577badc25bf60ea7b9767ea3fd9 Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 4 Nov 2017 12:49:28 +0200 Subject: [PATCH] autogen.sh: don't require `which' use posix standard "commmand" instead. --- autogen.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index a084fa57..a52f1f18 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,7 +6,8 @@ test -f mu/mu.cc || { exit 1 } -if test -z `which autoreconf`; then +command -V autoreconf > /dev/null +if [[ $? != 0 ]]; then echo "*** No autoreconf found, please install it ***" exit 1 fi