configure.ac: square brackets are handled specially by m4

So, let's use `test ...;` rather than `[ ... ];`.