def get_library_config(name):
try:<EOL><INDENT>proc = Popen(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', name], stdout=PIPE, stderr=PIPE)<EOL><DEDENT>except OSError:<EOL><INDENT>print('<STR_LIT>')<EOL>exit(<NUM_LIT:1>)<EOL><DEDENT>raw_cflags, err = proc.communicate()<EOL>if proc.wait():<EOL><INDENT>return<EOL><DEDENT>known, unknown = parse_cflags(raw_cflags.decode('<STR_LIT:utf8>'))<EOL>if unknown:<EOL><INDENT>print("<STR_LIT>".format(unknown))<EOL>exit(<NUM_LIT:1>)<EOL><DEDENT>return known<EOL>
Get distutils-compatible extension extras for the given library.

    This requires ``pkg-config``.