diff options
| author | Tomi Ollila <tomi.ollila@iki.fi> | 2016-05-06 21:11:25 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-05-07 14:40:14 -0300 |
| commit | 124a67e96ecab5495c0f17b6875d53dfd67ff137 (patch) | |
| tree | 7cf16ec4f84c72f906f7cbf5affeb8df5e9bb341 | |
| parent | 43eb32527bfb9663a09c8132af840d0b66a85cff (diff) | |
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.
| -rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,7 @@ #! /bin/sh +set -u + # Test whether this shell is capable of parameter substring processing. ( option='a/b'; : ${option#*/} ) 2>/dev/null || { echo " @@ -480,6 +482,7 @@ if pkg-config --exists valgrind; then else printf "No (but that's fine).\n" have_valgrind=0 + valgrind_cflags= fi printf "Checking for bash-completion (>= 1.90)... " @@ -490,11 +493,11 @@ else WITH_BASH=0 fi -if [ -z "${EMACSLISPDIR}" ]; then +if [ -z "${EMACSLISPDIR-}" ]; then EMACSLISPDIR="\$(prefix)/share/emacs/site-lisp" fi -if [ -z "${EMACSETCDIR}" ]; then +if [ -z "${EMACSETCDIR-}" ]; then EMACSETCDIR="\$(prefix)/share/emacs/site-lisp" fi |
