Doesn't GnuTLS provide an OpenSSL API?
idk. If so, that's easy. I've just seen curl compiled separately for gnutls and openssl so I assumed they must be different.
Nevertheless, I really think dynamic linking is the way to go here since that can gracefully degrade when no ssl library is available at all too.
