Commit d16c4aeb authored by Mans Rullgard's avatar 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: 's avatarMans Rullgard <mans@mansr.com>
parent 7658295b
...@@ -584,7 +584,7 @@ print_config(){ ...@@ -584,7 +584,7 @@ print_config(){
} else if (file ~ /\\.asm\$/) { } else if (file ~ /\\.asm\$/) {
printf(\"%%define %s %d\\n\", c, v) >>file; printf(\"%%define %s %d\\n\", c, v) >>file;
} else if (file ~ /\\.mak\$/) { } else if (file ~ /\\.mak\$/) {
n = +v ? \"\" : \"!\"; n = -v ? \"\" : \"!\";
printf(\"%s%s=yes\\n\", n, c) >>file; printf(\"%s%s=yes\\n\", n, c) >>file;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment