summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-01-25 15:11:23 +0200
committerMartin Storsjö <martin@martin.st>2017-01-26 12:41:53 +0200
commitf96d07f4ec4193fb5293d7ac8f1324aac3c3ea07 (patch)
treec5b5ffb18b7091f7e5ca2820338f4e879538a8cd
parent562ef82d6a7f96f6b9da1219a5aaf7d9d7056f1b (diff)
configure: Add quotes around a variable which might be empty
If we only have a target compiler but no host compiler, the $type variable will be empty once. (Currently we fail to do a cross build if no host compiler is available due to using the host compiler for processing option lists though. But despite that, this comparison in configure needs quotes.) Signed-off-by: Martin Storsjö <martin@martin.st>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index f1867532a0..7570c0a388 100755
--- a/configure
+++ b/configure
@@ -5033,7 +5033,7 @@ fi
for pfx in "" host_; do
varname=${pfx%_}cc_type
eval "type=\$$varname"
- if [ $type = "msvc" ]; then
+ if [ "$type" = "msvc" ]; then
check_${pfx}cc <<EOF || add_${pfx}cflags -Dinline=__inline
static inline int foo(int a) { return a; }
EOF