The category of foliations is considered. In this category morphisms are differentiable maps sending leaves of one foliation into leaves of the other foliation. We prove that the automorphism group of a foliation with transverse linear connection is an infinite-dimensional Lie group modeled on LF-spaces. This result extends the corresponding result of Macias-Virgós and Sanmartín Carbón for Riemannian foliations. In particular, our result is valid for Lorentzian and pseudo-Riemannian foliations.