Automorphic representations for the general linear group