Draft: Move RTS-specific checks into rts configure script

Closed Ben Gamari requested to merge wip/rts-configure-2 into master

This is another attempt at what @Ericson2314 started in !6803 (closed), fixing #17191.

Merge request reports