[FFmpeg-cvslog] configure: fix print_config() with broke awks
Mans Rullgard
git at videolan.org
Wed Oct 31 13:47:05 CET 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue Oct 30 11:57:30 2012 +0000| [d16c4aebba1ba611e10d86aa02be4cdfd3fbc3c5] | committer: Mans Rullgard
configure: fix print_config() with broke awks
Some awk versions do not treat the result of unary + on a (numeric)
string as numeric, giving wrong results when used in a boolean context
Using unary - instead is logically equivalent works as expected.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d16c4aebba1ba611e10d86aa02be4cdfd3fbc3c5
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index f215c76..9528b5d 100755
--- a/configure
+++ b/configure
@@ -584,7 +584,7 @@ print_config(){
} else if (file ~ /\\.asm\$/) {
printf(\"%%define %s %d\\n\", c, v) >>file;
} else if (file ~ /\\.mak\$/) {
- n = +v ? \"\" : \"!\";
+ n = -v ? \"\" : \"!\";
printf(\"%s%s=yes\\n\", n, c) >>file;
}
}
More information about the ffmpeg-cvslog
mailing list