]> git.notmuchmail.org Git - notmuch/commitdiff
configure: don't use special variable BASH
authorDavid Bremner <david@tethera.net>
Thu, 17 Jan 2019 02:11:31 +0000 (22:11 -0400)
committerDavid Bremner <david@tethera.net>
Fri, 1 Feb 2019 11:59:12 +0000 (07:59 -0400)
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.

configure

index b2200be08a03069957c76af3a59f3fbbffd360d6..ea22587b24ff257bfe8d2b2dff3e27e7d9d2f2f2 100755 (executable)
--- a/configure
+++ b/configure
@@ -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... "