Density functional theory of a Gay—Berne film between aligning walls