Commit e1ec7cd8 authored by Damien Fouilleul's avatar Damien Fouilleul

configure.ac: hopefully, that's gnutls sorted for good

parent 7c3759c3
......@@ -5462,16 +5462,24 @@ AS_IF([test "${enable_gnutls}" != "no"], [
AS_IF([test "${have_gnutls}" = "yes"], [
VLC_ADD_PLUGINS([gnutls])
VLC_ADD_CFLAGS([gnutls], [$GNUTLS_CFLAGS])
AS_IF([test "${SYS}" = "mingw32"], [
dnl pkg-config --libs gnutls ignores these
VLC_ADD_LDFLAGS([gnutls], [-lz])
AS_IF([test "${enable_libtool}" != "no"], [
VLC_ADD_LDFLAGS([gnutls], [${LTLIBINTL}])
], [
VLC_ADD_LDFLAGS([gnutls], [${LIBINTL}])
])
])
AC_CHECK_LIB([gcrypt], [gcry_control], [
VLC_ADD_LDFLAGS([gnutls], [-lgcrypt -lgpg-error])
], [], [-lgpg-error])
VLC_ADD_LDFLAGS([gnutls], [$GNUTLS_LIBS])
], [
AS_IF([test "${enable_gnutls}" = "yes"], [
AC_MSG_ERROR([gnutls not present or too old (version 1.2.9 required)])
])
])
VLC_ADD_LDFLAGS([gnutls], [-lintl -lz])
AC_CHECK_LIB([gcrypt], [gcry_control], [
VLC_ADD_LDFLAGS([gnutls], [-lgcrypt -lgpg-error])
], [], [-lgpg-error])
])
dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment