autogen.sh: don't require `which'

use posix standard "commmand" instead.
This commit is contained in:
djcb 2017-11-04 12:49:28 +02:00
parent 43df94fa39
commit 40dd4751bf
1 changed files with 2 additions and 1 deletions

View File

@ -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