Galaxy clustering in standard and non-standard cosmologies