comparison configure @ 36787:4704c3f95273

configure: Avoid annoying error messages in case of external FFmpeg.
author ib
date Wed, 19 Feb 2014 01:18:34 +0000
parents 568afd60302c
children 64a53697effe
comparison
equal deleted inserted replaced
36786:568afd60302c 36787:4704c3f95273
1530 fi 1530 fi
1531 touch ffmpeg/mp_auto_pull 1531 touch ffmpeg/mp_auto_pull
1532 fi 1532 fi
1533 1533
1534 list_subparts() { 1534 list_subparts() {
1535 test ! -e ffmpeg/libav${3} && return 1
1535 pattern="s/^[^#]*${1}.*([^ ,]*, *\([^ ,)]*\).*/\1_${2}/p" 1536 pattern="s/^[^#]*${1}.*([^ ,]*, *\([^ ,)]*\).*/\1_${2}/p"
1536 sed -n "$pattern" ffmpeg/libav${3} | toupper 1537 sed -n "$pattern" ffmpeg/libav${3} | toupper
1538 return 0
1537 } 1539 }
1538 1540
1541 echocheck "ffmpeg/libavcodec/allcodecs.c"
1539 libavdecoders_all=$(list_subparts DEC decoder codec/allcodecs.c) 1542 libavdecoders_all=$(list_subparts DEC decoder codec/allcodecs.c)
1540 libavencoders_all=$(list_subparts ENC encoder codec/allcodecs.c) 1543 libavencoders_all=$(list_subparts ENC encoder codec/allcodecs.c)
1541 libavparsers_all=$(list_subparts PARSER parser codec/allcodecs.c) 1544 libavparsers_all=$(list_subparts PARSER parser codec/allcodecs.c)
1542 libavbsfs_all=$(list_subparts BSF bsf codec/allcodecs.c) 1545 libavbsfs_all=$(list_subparts BSF bsf codec/allcodecs.c)
1543 libavhwaccels_all=$(list_subparts HWACCEL hwaccel codec/allcodecs.c) 1546 libavhwaccels_all=$(list_subparts HWACCEL hwaccel codec/allcodecs.c)
1547 test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
1548 echores "$_list_subparts"
1549
1550 echocheck "ffmpeg/libavformat/allformats.c"
1544 libavdemuxers_all=$(list_subparts DEMUX demuxer format/allformats.c) 1551 libavdemuxers_all=$(list_subparts DEMUX demuxer format/allformats.c)
1545 libavmuxers_all=$(list_subparts _MUX muxer format/allformats.c) 1552 libavmuxers_all=$(list_subparts _MUX muxer format/allformats.c)
1546 libavprotocols_all=$(list_subparts PROTOCOL protocol format/allformats.c) 1553 libavprotocols_all=$(list_subparts PROTOCOL protocol format/allformats.c)
1554 test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
1555 echores "$_list_subparts"
1556
1557 echocheck "ffmpeg/libavfilter/allfilters.c"
1547 libavfilters_all=$(list_subparts FILTER filter filter/allfilters.c) 1558 libavfilters_all=$(list_subparts FILTER filter filter/allfilters.c)
1559 test $? -eq 0 && _list_subparts=found || _list_subparts="not found"
1560 echores "$_list_subparts"
1548 1561
1549 filter_out_component() { 1562 filter_out_component() {
1550 eval list=\$libav${1}s 1563 eval list=\$libav${1}s
1551 type=$(echo $1 | toupper) 1564 type=$(echo $1 | toupper)
1552 shift 1565 shift