[bugfix] set <NAME>_FOUND vars as appropriate