[vlc-devel] Re: configure patch: detecting gnutls
Torsten Spindler
spindler at hbt.arch.ethz.ch
Mon Apr 18 09:08:13 CEST 2005
On Sat, 2005-04-16 at 22:00, Rémi Denis-Courmont wrote:
> Le Samedi 16 Avril 2005 19:48, Torsten Spindler a écrit :
> > when trying to build vlc with gnutls/ssl support on Fedora Core 2 I
> > got the message that gnutls_certificate_verify_peers2 was not found
> > even when it was there. Adding -lz to the gnutls libraries solved it,
> > patch is attached.
>
> Err, I don't understand how the patch would work - it doesn't add -lz to
> the gnutls plugin link flags !? If the gnutls plugin compiles without
> -lz there's no reason why the configure check would need -lz either.
>
> There's something wrong there.
I checked src/misc/tls.c and there is no reference to
gnutls_certificate_verify_peers2
so there is no problem during compile.
The check for this function is in configure.ac:
AC_CHECK_HEADER(gcrypt.h,
[AC_CHECK_LIB(gcrypt, gcry_control,
[AC_CHECK_HEADER(gnutls/gnutls.h,
[AC_CHECK_LIB(gnutls, gnutls_certificate_verify_peers2,
[have_gnutls="yes"],[old_gnutls="yes"], ${gnutls_LIBS})])],,
${gcrypt_LIBS})])
Besides adding -lz to the libraries used as in the patch I sent I have
no idea how to rewrite this check.
Bye,
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20050418/ed3fb589/attachment.sig>
More information about the vlc-devel
mailing list