]> git.cworth.org Git - notmuch/commitdiff
configure: have bash_absolute and perl_absolute always defined
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 7 Dec 2021 19:11:41 +0000 (21:11 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 11 Dec 2021 11:17:42 +0000 (07:17 -0400)
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

index 7d9df3708a315ab5bdae7badbc8239d271f412b6..d399457a92f36cd75810d0d226143852f2a3a811 100755 (executable)
--- 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