diff options
author | Mans Rullgard <mans@mansr.com> | 2012-10-30 11:57:30 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-10-30 13:33:29 +0000 |
commit | d16c4aebba1ba611e10d86aa02be4cdfd3fbc3c5 (patch) | |
tree | 793b2685a30414342683b73717a3271f7f404ed0 | |
parent | 7658295ba353b8bedb3af904f46cfb1ba0cea86a (diff) | |
download | ffmpeg-d16c4aebba1ba611e10d86aa02be4cdfd3fbc3c5.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>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } |