configure: don't use special variable BASH

bash, in it's wisdom, sets that variable when invoked as /bin/sh, but
then doesn't act as bash, at least not to the degree we need to run
scripts.
This commit is contained in:
David Bremner 2019-01-16 22:11:31 -04:00
parent 617b36f3d1
commit a38853518e

8
configure vendored
View file

@ -53,7 +53,7 @@ fi
# Set several defaults (optionally specified by the user in # Set several defaults (optionally specified by the user in
# environment variables) # environment variables)
BASH=${BASH:-bash} BASHCMD=${BASHCMD:-bash}
PERL=${PERL:-perl} PERL=${PERL:-perl}
CC=${CC:-cc} CC=${CC:-cc}
CXX=${CXX:-c++} CXX=${CXX:-c++}
@ -560,13 +560,13 @@ else
fi fi
printf "Checking for bash... " printf "Checking for bash... "
if command -v ${BASH} > /dev/null; then if command -v ${BASHCMD} > /dev/null; then
have_bash=1 have_bash=1
bash_absolute=$(command -v ${BASH}) bash_absolute=$(command -v ${BASHCMD})
printf "Yes (%s).\n" "$bash_absolute" printf "Yes (%s).\n" "$bash_absolute"
else else
have_bash=0 have_bash=0
printf "No. (%s not found)\n" "${BASH}" printf "No. (%s not found)\n" "${BASHCMD}"
fi fi
printf "Checking for perl... " printf "Checking for perl... "