def gcc_exists(name='<STR_LIT>'):
result = <NUM_LIT:0><EOL>cmd = [str(name), '<STR_LIT>']<EOL>try:<EOL><INDENT>if sys.platform == '<STR_LIT:win32>':<EOL><INDENT>p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,<EOL>stderr=subprocess.STDOUT)<EOL><DEDENT>else:<EOL><INDENT>p = subprocess.Popen(cmd, stdout=subprocess.PIPE,<EOL>stderr=subprocess.STDOUT)<EOL><DEDENT>str_result = p.stdout.read()<EOL>if '<STR_LIT>' in str_result:<EOL><INDENT>result = <NUM_LIT:1><EOL><DEDENT><DEDENT>except:<EOL><INDENT>result = not os.system("<STR_LIT:U+0020>".join(cmd))<EOL><DEDENT>return result<EOL>
Test to make sure gcc is found.