[MPlayer-cvslog] r37868 - trunk/configure

rtogni subversion at mplayerhq.hu
Sat May 14 21:09:51 CEST 2016


Author: rtogni
Date: Sat May 14 21:09:50 2016
New Revision: 37868

Log:
Generate bsf_list and protcol list for ffmpeg in configure, try 2

Move generation at the end of configure, so that protocols and bfs with unmet
dependencies are not included in the list.
Also remove TLS_PROTOCOL from the list, there is no protocol with that name

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Fri May 13 22:40:50 2016	(r37867)
+++ trunk/configure	Sat May 14 21:09:50 2016	(r37868)
@@ -1628,24 +1628,6 @@ for ac_option do
   esac
 done
 
-# generate the lists of enabled components for ffmpeg
-print_enabled_components(){
-    file=$1
-    struct_name=$2
-    name=$3
-    shift 3
-    list=$(echo $* | tolower)
-    echo "static const $struct_name *$name[] = {" > $TMPH
-    for c in $list; do
-        printf "    &ff_%s,\n" $c >> $TMPH
-    done
-    echo "    NULL };" >> $TMPH
-    cmp -s $TMPH ffmpeg/$file && return
-    cp $TMPH ffmpeg/$file
-}
-
-print_enabled_components libavcodec/bsf_list.c AVBitStreamFilter bitstream_filters $libavbsfs
-print_enabled_components libavformat/protocol_list.c URLProtocol url_protocols $libavprotocols
 
 # Checking CC version...
 # Intel C++ Compilers (no autoselect, use CC=/some/binary ./configure)
@@ -4457,7 +4439,7 @@ if test "$_gnutls" = auto ; then
 fi
 if test "$_gnutls" = yes ; then
   def_gnutls='#define CONFIG_GNUTLS 1'
-  libavprotocols="$libavprotocols HTTPS_PROTOCOL TLS_PROTOCOL TLS_GNUTLS_PROTOCOL"
+  libavprotocols="$libavprotocols HTTPS_PROTOCOL TLS_GNUTLS_PROTOCOL"
   extra_cflags="$extra_cflags $($_pkg_config --cflags gnutls)"
   extra_ldflags="$extra_ldflags $($_pkg_config --libs gnutls)"
 else
@@ -4468,7 +4450,7 @@ echores "$_gnutls"
 echocheck "OpenSSL"
 if test "$_openssl" = yes ; then
   def_openssl='#define CONFIG_OPENSSL 1'
-  libavprotocols="$libavprotocols HTTPS_PROTOCOL TLS_PROTOCOL TLS_OPENSSL_PROTOCOL"
+  libavprotocols="$libavprotocols HTTPS_PROTOCOL TLS_OPENSSL_PROTOCOL"
   extra_cflags="$extra_cflags $($_pkg_config --cflags openssl)"
   extra_ldflags="$extra_ldflags $($_pkg_config --libs openssl)"
 else
@@ -9494,6 +9476,25 @@ cat > ffmpeg/config.h << EOF
 EOF
 touch ffmpeg/.config
 
+# generate the lists of enabled components for ffmpeg
+print_enabled_components(){
+    file=$1
+    struct_name=$2
+    name=$3
+    shift 3
+    list=$(echo $* | tolower)
+    echo "static const $struct_name *$name[] = {" > $TMPH
+    for c in $list; do
+        printf "    &ff_%s,\n" $c >> $TMPH
+    done
+    echo "    NULL };" >> $TMPH
+    cmp -s $TMPH ffmpeg/$file && return
+    cp $TMPH ffmpeg/$file
+}
+
+print_enabled_components libavcodec/bsf_list.c AVBitStreamFilter bitstream_filters $libavbsfs
+print_enabled_components libavformat/protocol_list.c URLProtocol url_protocols $libavprotocols
+
 fi
 
 #############################################################################


More information about the MPlayer-cvslog mailing list