From ab8d0e572537006a4e1dafa266075ed0d848c80f Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 7 Dec 2021 21:11:41 +0200 Subject: [PATCH] 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. --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 7d9df370..d399457a 100755 --- a/configure +++ b/configure @@ -734,6 +734,7 @@ if command -v ${BASHCMD} > /dev/null; then printf "Yes (%s).\n" "$bash_absolute" else have_bash=0 + bash_absolute= printf "No. (%s not found)\n" "${BASHCMD}" fi @@ -744,6 +745,7 @@ if command -v ${PERL} > /dev/null; then printf "Yes (%s).\n" "$perl_absolute" else have_perl=0 + perl_absolute= printf "No. (%s not found)\n" "${PERL}" fi