This looks like it should be pretty close fitting at the bust, so I'd say go for the XL at 40". If your gauge comes out a smidge larger, then it may fit exactly. Or you can purposely knit with one size larger a needle to get it to 41-42". But 3" of ease in the bust would be a lot and probably look sloppy in this style.
sue- knitting heretic