[linux] don't call glxinfo or xdpyinfo when X11 or GL support was disabled (fixes #15442)