Rational homotopy theory of automorphisms of manifolds