configure: have bash_absolute and perl_absolute always defined

Since set -u is used, without bash or perl, configure would fail.

This has gone unnoticed as (almost) everyone always had both
bash and perl installed (and in $PATH).

Thanks to FreeBSD ports this bug became visible; this change is
verbatim copy of `patch-configure` in FreeBSD ports tree.
This commit is contained in:
Tomi Ollila 2021-12-07 21:11:41 +02:00 committed by David Bremner
parent a06b76b9b3
commit ab8d0e5725

2
configure vendored
View file

@ -734,6 +734,7 @@ if command -v ${BASHCMD} > /dev/null; then
printf "Yes (%s).\n" "$bash_absolute" printf "Yes (%s).\n" "$bash_absolute"
else else
have_bash=0 have_bash=0
bash_absolute=
printf "No. (%s not found)\n" "${BASHCMD}" printf "No. (%s not found)\n" "${BASHCMD}"
fi fi
@ -744,6 +745,7 @@ if command -v ${PERL} > /dev/null; then
printf "Yes (%s).\n" "$perl_absolute" printf "Yes (%s).\n" "$perl_absolute"
else else
have_perl=0 have_perl=0
perl_absolute=
printf "No. (%s not found)\n" "${PERL}" printf "No. (%s not found)\n" "${PERL}"
fi fi