A 2-arylindole compound substituted in position 5, of formula (I): in which X, Y, Z, W, A, R and R′ have the meanings given in the description, a pharmaceutical composition comprising it, and also intermediate compounds and a preparation process therefor.