def _check_prefix(library_basename, filename_prefixes):
    """Return the prefix library_basename starts with or None if none matches
    """
    for prefix in filename_prefixes:
        if library_basename.startswith(prefix):
            return prefix
    return None