Skip to content
Snippets Groups Projects
Commit d16c4aeb authored by Mans Rullgard's avatar Mans Rullgard
Browse files

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: default avatarMans Rullgard <mans@mansr.com>
parent 7658295b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment