Influence of supersonic turbulence on self-gravitating flows