mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
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:
parent
617b36f3d1
commit
a38853518e
1 changed files with 4 additions and 4 deletions
8
configure
vendored
8
configure
vendored
|
@ -53,7 +53,7 @@ fi
|
|||
|
||||
# Set several defaults (optionally specified by the user in
|
||||
# environment variables)
|
||||
BASH=${BASH:-bash}
|
||||
BASHCMD=${BASHCMD:-bash}
|
||||
PERL=${PERL:-perl}
|
||||
CC=${CC:-cc}
|
||||
CXX=${CXX:-c++}
|
||||
|
@ -560,13 +560,13 @@ else
|
|||
fi
|
||||
|
||||
printf "Checking for bash... "
|
||||
if command -v ${BASH} > /dev/null; then
|
||||
if command -v ${BASHCMD} > /dev/null; then
|
||||
have_bash=1
|
||||
bash_absolute=$(command -v ${BASH})
|
||||
bash_absolute=$(command -v ${BASHCMD})
|
||||
printf "Yes (%s).\n" "$bash_absolute"
|
||||
else
|
||||
have_bash=0
|
||||
printf "No. (%s not found)\n" "${BASH}"
|
||||
printf "No. (%s not found)\n" "${BASHCMD}"
|
||||
fi
|
||||
|
||||
printf "Checking for perl... "
|
||||
|
|
Loading…
Reference in a new issue