fixed wrong comparison operator

As mentioned by Martin, i now fixed the comparison to be
logically corret.
Merge branch 'master' into gnutls
Preparation for GnuTLS backend

I added the necessary lines to the autotools files. Maybe someone
else should look into this as it seems to me like its currently
more of a dirty hack. I works though.