docstr: Determine if 'library' is available to be linked against,
  without actually checking that any particular symbols are provided
  by it.  'headers' will be used in constructing the source file to
  be compiled, but the only effect of this is to check if all the
  header files listed are available.  Any libraries listed in
  'other_libraries' will be included in the link, in case 'library'
  has symbols that depend on other libraries.
docstr_tok: ["Determine","if","'library","'","is","available","to","be","linked","against",",","without","actually","checking","that","any","particular","symbols","are","provided","by","it",".","'headers","'","will","be","used","in","constructing","the","source","file","to","be","compiled",",","but","the","only","effect","of","this","is","to","check","if","all","the","header","files","listed","are","available",".","Any","libraries","listed","in","'other_libraries","'","will","be","included","in","the","link",",","in","case","'library'","has","symbols","that","depend","on","other","libraries","."]
code: def check_lib(
      self,
      library,
      library_dirs=None,
      headers=None,
      include_dirs=None,
      other_libraries=[],
  ):
      """Determine if 'library' is available to be linked against,
      without actually checking that any particular symbols are provided
      by it.  'headers' will be used in constructing the source file to
      be compiled, but the only effect of this is to check if all the
      header files listed are available.  Any libraries listed in
      'other_libraries' will be included in the link, in case 'library'
      has symbols that depend on other libraries.
      """
      self._check_compiler()
      return self.try_link(
          "int main (void) { }",
          headers,
          include_dirs,
          [library] + other_libraries,
          library_dirs,
      )
  
imports: import os, re
  from distutils.core import Command
  from distutils.errors import DistutilsExecError
  from distutils.sysconfig import customize_compiler
  from distutils import log
label_desc: Use image node_id 16 for calling the config obj's underlying member method code with example usage: obj.check_lib(library, library_dirs, headers, include_dirs, other_libraries) and returns: self