Bug 1257413 - Fix check_prog() to properly fail when program is missing after
bug 1256568
--- a/build/moz.configure/checks.configure
+++ b/build/moz.configure/checks.configure
@@ -64,14 +64,14 @@ def check_prog(var, progs, allow_missing
if result:
return result
return not_found
@depends(check)
@advanced
def postcheck(value):
set_config(var, ':' if value is not_found else value)
- if not value and not allow_missing:
+ if value is not_found and not allow_missing:
from mozbuild.shellutil import quote
error('Cannot find %s (tried: %s)'
% (var.lower(), ', '.join(quote(p) for p in progs)))
return check