#NEWLINE# def find_library( self , libname , dirs ) : #NEWLINE# #INDENT# if ( dirs is None ) : #NEWLINE# #INDENT# dirs = mesonlib . get_library_dirs ( ) #NEWLINE# #UNINDENT# suffixes = [ self . get_shared_lib_suffix ( ) , self . get_static_lib_suffix ( ) ] #NEWLINE# prefix = self . get_shared_lib_prefix ( ) #NEWLINE# for d in dirs : #NEWLINE# #INDENT# for suffix in libname : #NEWLINE# #INDENT# trial = os . path . join ( d , ( ( ( prefix + libname ) + '.' ) + suffix ) ) #NEWLINE# if os . path . isfile ( trial ) : #NEWLINE# #INDENT# return trial