aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-03-30 21:12:44 +0000
committerMåns Rullgård <mans@mansr.com>2009-03-30 21:12:44 +0000
commit13cbe2c0268d748cbc6f4cbbc38c9060e7fdaaad (patch)
tree4f3c1aca612accbdb304eb882ef6f918c9417682 /configure
parent67c447a679ae1826b26d4ca9741a34bc44788c74 (diff)
downloadffmpeg-13cbe2c0268d748cbc6f4cbbc38c9060e7fdaaad.tar.gz
Quote stored configure arguments containing spaces
Originally committed as revision 18252 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index b34b9c9a73..72138f448a 100755
--- a/configure
+++ b/configure
@@ -1220,7 +1220,12 @@ else
die "Out of tree builds are impossible with config.h in source dir."
fi
-FFMPEG_CONFIGURATION="$@"
+for v in "$@"; do
+ r="${v#*=}"
+ l="${v%$r}"
+ test "$r" = "${r#* }" || r="'$r'"
+ FFMPEG_CONFIGURATION="${FFMPEG_CONFIGURATION# } ${l}${r}"
+done
find_things(){
thing=$1
@@ -1315,7 +1320,7 @@ done
disabled logging && logfile=/dev/null
-echo "# $0 $@" > $logfile
+echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
set >> $logfile
test -n "$cross_prefix" && enable cross_compile