diff options
author | Martin Storsjö <martin@martin.st> | 2017-01-25 15:11:23 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2017-01-26 12:41:53 +0200 |
commit | f96d07f4ec4193fb5293d7ac8f1324aac3c3ea07 (patch) | |
tree | c5b5ffb18b7091f7e5ca2820338f4e879538a8cd /configure | |
parent | 562ef82d6a7f96f6b9da1219a5aaf7d9d7056f1b (diff) | |
download | ffmpeg-streaming-f96d07f4ec4193fb5293d7ac8f1324aac3c3ea07.zip ffmpeg-streaming-f96d07f4ec4193fb5293d7ac8f1324aac3c3ea07.tar.gz |
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |