<s> """<STR_LIT>""" <EOL> __revision__ = "<STR_LIT>" <EOL> import os <EOL> import os . path <EOL> import SCons . Util <EOL> import aixcc <EOL> import link <EOL> cplusplus = __import__ ( '<STR_LIT>' , globals ( ) , locals ( ) , [ ] ) <EOL> def smart_linkflags ( source , target , env , for_signature ) : <EOL> if cplusplus . iscplusplus ( source ) : <EOL> build_dir = env . subst ( '<STR_LIT>' , target = target , source = source ) <EOL> if build_dir : <EOL> return '<STR_LIT>' + os . path . join ( build_dir , '<STR_LIT>' ) <EOL> return '<STR_LIT>' <EOL> def generate ( env ) : <EOL> """<STR_LIT>""" <EOL> link . generate ( env ) <EOL> env [ '<STR_LIT>' ] = smart_linkflags <EOL> env [ '<STR_LIT>' ] = SCons . Util . CLVar ( '<STR_LIT>' ) <EOL> env [ '<STR_LIT>' ] = SCons . Util . CLVar ( '<STR_LIT>' ) <EOL> env [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> def exists ( env ) : <EOL> path , _cc , _shcc , version = aixcc . get_xlc ( env ) <EOL> if path and _cc : <EOL> xlc = os . path . join ( path , _cc ) <EOL> if os . path . exists ( xlc ) : <EOL> return xlc <EOL> return None </s>
