diff options
author | Mans Rullgard <mans@mansr.com> | 2012-10-30 11:57:30 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-30 19:26:07 +0100 |
commit | 674c4a11cbcc18714e3393d568b3751151f815c5 (patch) | |
tree | 75ecce1503dff8a7977546c4f1f67ffd52324808 /configure | |
parent | 4d2f1d8c930a596f33cf3b26182e9098fe274967 (diff) | |
download | ffmpeg-674c4a11cbcc18714e3393d568b3751151f815c5.tar.gz |
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@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -630,7 +630,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; } } |