configure: fix double check tests with Clang