mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
configure: add set -u
In case of any unset variable, make ./configure exit with nonzero value; an attempt to expand an unset variable is a bug in the script (usually a spelling mistake) and those should not pass through unnoticed.
This commit is contained in:
parent
43eb32527b
commit
124a67e96e
1 changed files with 5 additions and 2 deletions
7
configure
vendored
7
configure
vendored
|
@ -1,5 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
|
set -u
|
||||||
|
|
||||||
# Test whether this shell is capable of parameter substring processing.
|
# Test whether this shell is capable of parameter substring processing.
|
||||||
( option='a/b'; : ${option#*/} ) 2>/dev/null || {
|
( option='a/b'; : ${option#*/} ) 2>/dev/null || {
|
||||||
echo "
|
echo "
|
||||||
|
@ -480,6 +482,7 @@ if pkg-config --exists valgrind; then
|
||||||
else
|
else
|
||||||
printf "No (but that's fine).\n"
|
printf "No (but that's fine).\n"
|
||||||
have_valgrind=0
|
have_valgrind=0
|
||||||
|
valgrind_cflags=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Checking for bash-completion (>= 1.90)... "
|
printf "Checking for bash-completion (>= 1.90)... "
|
||||||
|
@ -490,11 +493,11 @@ else
|
||||||
WITH_BASH=0
|
WITH_BASH=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${EMACSLISPDIR}" ]; then
|
if [ -z "${EMACSLISPDIR-}" ]; then
|
||||||
EMACSLISPDIR="\$(prefix)/share/emacs/site-lisp"
|
EMACSLISPDIR="\$(prefix)/share/emacs/site-lisp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${EMACSETCDIR}" ]; then
|
if [ -z "${EMACSETCDIR-}" ]; then
|
||||||
EMACSETCDIR="\$(prefix)/share/emacs/site-lisp"
|
EMACSETCDIR="\$(prefix)/share/emacs/site-lisp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue