Draft: Move RTS-specific checks into rts configure script
This is another attempt at what @Ericson2314 started in !6803 (closed), fixing #17191 (closed).
This is another attempt at what @Ericson2314 started in !6803 (closed), fixing #17191 (closed).