def check_libs2(self, lib_dirs, libs, opt_libs=[]):
exts = self.library_extensions()<EOL>info = self._check_libs(lib_dirs, libs, opt_libs, exts)<EOL>if not info:<EOL><INDENT>log.info('<STR_LIT>', '<STR_LIT:U+002C>'.join(libs),<EOL>lib_dirs)<EOL><DEDENT>return info<EOL>
If static or shared libraries are available then return
        their info dictionary.

        Checks each library for shared or static.