Give a useful message if autoconf is not installed

This commit is contained in:
Duke
2023-04-23 06:29:48 -07:00
parent dd9be59e4f
commit a6924bb061

View File

@@ -11,6 +11,12 @@ if ! [ -x "$(command -v cmake)" ]; then
exit 1
fi
if ! [ -x "$(command -v autoreconf)" ]; then
echo 'Error: autoconf is not installed. Install autoconf and try again.' >&2
echo 'On Debian-like systems: apt install autoconf' >&2
exit 1
fi
function cmd_pref() {
if type -p "$2" > /dev/null; then
eval "$1=$2"