configure.ac: keep posix compat for string tests

'==' and '=' are equivalent in /bin/bash, but POSIX compliant shells do
not understand '==.'