[configure] Remove some bash-isms.

The test command should use =, not ==.

This breaks when not using bash on some platforms and is something
that will be an issue in the future on Debian with an upcoming
version of dash.