configure: Improve the detection of OSS v4.