[PATCH] configure: Detect GnuTLS and enable FFmpeg https
Allow playback of https:// URLs via FFmpeg. Fix ticket #2183 Signed-off-by: Alexander Strasser <eclipse7@gmx.net> --- configure | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/configure b/configure index c5e731b..ccf63e4 100755 --- a/configure +++ b/configure @@ -386,6 +386,7 @@ Optional features: --enable-ass-internal enable internal SSA/ASS subtitle support [autodetect] --disable-ass disable SSA/ASS subtitle support [autodetect] --enable-rpath enable runtime linker path for extra libs [disabled] + --disable-gnutls disable GnuTLS [autodetect] Codecs: --enable-gif enable GIF support [autodetect] @@ -848,6 +849,7 @@ _enca=auto _inet6=auto _sctp=auto _gethostbyname2=auto +_gnutls=auto _ftp=auto _musepack=no _vstream=auto @@ -1349,6 +1351,8 @@ for ac_option do --disable-ass-internal) ass_internal=no ;; --enable-rpath) _rpath=yes ;; --disable-rpath) _rpath=no ;; + --enable-gnutls) _gnutls=yes ;; + --disable-gnutls) _gnutls=no ;; --enable-fribidi) _fribidi=yes ;; --disable-fribidi) _fribidi=no ;; @@ -4329,6 +4333,24 @@ else fi +echocheck "GnuTLS" +if test "$_gnutls" = auto ; then + _gnutls=no + if $_pkg_config --exists gnutls ; then + statement_check gnutls/gnutls.h 'gnutls_global_init()' $($_pkg_config --libs --cflags gnutls) && + _gnutls=yes + fi +fi +if test "$_gnutls" = yes ; then + def_gnutls='#define CONFIG_GNUTLS 1' + libavprotocols="$libavprotocols HTTPS_PROTOCOL TLS_PROTOCOL" + extra_cflags="$extra_cflags $($_pkg_config --cflags gnutls)" + extra_ldflags="$extra_ldflags $($_pkg_config --libs gnutls)" +else + def_gnutls='#define CONFIG_GNUTLS 0' +fi +echores "$_gnutls" + echocheck "Samba support (libsmbclient)" if test "$_smb" = yes; then extra_ldflags="$extra_ldflags -lsmbclient" @@ -8694,6 +8716,7 @@ CONFIG_AC3DSP = yes CONFIG_BZLIB = $bzlib CONFIG_CRYSTALHD= $crystalhd CONFIG_ENCODERS = yes +CONFIG_GNUTLS = $_gnutls CONFIG_GPL = yes CONFIG_ICONV = $_iconv CONFIG_MLIB = $_mlib @@ -9229,7 +9252,7 @@ $def_truncf #define CONFIG_FASTDIV 0 #define CONFIG_FFSERVER 0 #define CONFIG_FTRAPV 0 -#define CONFIG_GNUTLS 0 +$def_gnutls #define CONFIG_GPL 1 #define CONFIG_GRAY 0 #define CONFIG_LIBMODPLUG 0 --
On 12.10.2014, at 21:40, Alexander Strasser <eclipse7@gmx.net> wrote:
Allow playback of https:// URLs via FFmpeg.
Fix ticket #2183
Looks good to me if it works. I guess some more things will be necessary to support all use-cases though (I suspect things like cookie and password support). Also, aren't there more protocols that can be enabled if gnutls is available?
Hi Reimar! On 2014-10-13 09:55 +0200, Reimar Döffinger wrote:
On 12.10.2014, at 21:40, Alexander Strasser <eclipse7@gmx.net> wrote:
Allow playback of https:// URLs via FFmpeg.
Fix ticket #2183
Looks good to me if it works.
Works for me.
I guess some more things will be necessary to support all use-cases though (I suspect things like cookie and password support).
IMHO we can improve on that after this patch is committed. This is an obvious thing that is missing in MPlayer for some time now. So having this working will be an improvement for many users.
Also, aren't there more protocols that can be enabled if gnutls is available?
Ditto for this one. I didn't really investigate. IIRC some crypto protocols rtmpe or somesuch can be enabled if nettle is available if I am not mistaken.. I committed the patch as I sent it. Everyone, please complain here or in ticket #2183 if you find any problems. Thank you Reimar for having a look, Alexander
participants (2)
-
Alexander Strasser -
Reimar Döffinger