configure: simplify some tests