Not an expert (Paul Brodek rest in peace) but I have a soft spot for the sunTour derailleurs especially the XC pro.
The hanger specs got tight with indexing (volumes to read there amongst all the players) and the rear axles no longer had slots.

Here you can see that the axle position of these Suntour dropouts are nearly vertical, creating a fixed dimension from axle center to the center of the threaded derailleur mounting hole. That's the specification and Suntour even produced dropouts in several axle-dropout dimensions, all being within their derailleurs' ability to adjust to their satisfaction. (Johnny Coast built my rando frame with the dropout on the right with two mounting points). With a 30t-46t and 34t cassette I'm nowhere near your 40t range question though.
I have used a 34t 8-spd cassette with XC-Pro long cage on my Rambouillet without difficulty butI had the TA Zephyr crank configured as a triple 26t-36t-46t, then later went wide double 34t-44t. The B-adjustment and chain length will help as will your commitment not to use big-big combination.
Your chainring count and sizes additionally affect this. Makers were (still are) utterly dictatorial in the gearing combination specs so their indexing works at peak design potential. I can cope with microseconds slower response in shifting in exchange for gearing that better suits my riding needs and haven't had a problem.
I added an extension tab when I wanted to run another derailleur on my Rambouillet that had 28t max and truly wouldn't clear the 34t cog. It's a friction shift drivetrain so, again, I got gearing I wanted using the french Mavic derailleur I wanted so I was OK if some shifting wasn't spec sheet precise.
Andy. Cheatham
Pittsburgh