X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=configure;h=a6f5dfa2ca2b894da29ff4bd93ef96a3266587ab;hb=3d0fd40eb0eca54fd05460203ae754c63f633d69;hp=b2200be08a03069957c76af3a59f3fbbffd360d6;hpb=11d0edeac2a91a3f6d786d1ca6900b9f7ed45765;p=notmuch diff --git a/configure b/configure index b2200be0..a6f5dfa2 100755 --- 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... " @@ -623,8 +623,8 @@ if [ -z "${EMACSETCDIR-}" ]; then EMACSETCDIR="\$(prefix)/share/emacs/site-lisp" fi -printf "Checking if emacs is available... " -if emacs --quick --batch > /dev/null 2>&1; then +printf "Checking if emacs (>= 24) is available... " +if emacs --quick --batch --eval '(if (< emacs-major-version 24) (kill-emacs 1))' > /dev/null 2>&1; then printf "Yes.\n" have_emacs=1 else