From: James Almer Date: Thu, 16 Nov 2017 16:11:24 +0000 (-0300) Subject: Merge commit '9e48de3cc86c732d9cebd496d6f0a2b7e7732754' X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b449af20d5d4b53cdc51696a04477a16336dc22d;p=ffmpeg Merge commit '9e48de3cc86c732d9cebd496d6f0a2b7e7732754' * commit '9e48de3cc86c732d9cebd496d6f0a2b7e7732754': configure: Miscellaneous minor changes Merged-by: James Almer --- b449af20d5d4b53cdc51696a04477a16336dc22d diff --cc configure index 934ac3abfd9,be9a3ee5cb6..0fc63cbfca2 --- a/configure +++ b/configure @@@ -462,20 -347,6 +462,19 @@@ EO exit 0 } - quotes='""' +if test -t 1 && which tput >/dev/null 2>&1; then + ncolors=$(tput colors) + if test -n "$ncolors" && test $ncolors -ge 8; then + bold_color=$(tput bold) + warn_color=$(tput setaf 3) + error_color=$(tput setaf 1) + reset_color=$(tput sgr0) + fi + # 72 used instead of 80 since that's the default of pr + ncols=$(tput cols) +fi +: ${ncols:=72} + log(){ echo "$@" >> $logfile } @@@ -3714,25 -2857,10 +3713,27 @@@ for e in $env; d eval "export $e" done +if disabled autodetect; then + + # Unless iconv is explicitely disabled by the user, we still want to probe + # for the iconv from the libc. + disabled iconv || enable libc_iconv + + disable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST + disable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST +fi +# Mark specifically enabled, but normally autodetected libraries as requested. +for lib in $AUTODETECT_LIBS; do + enabled $lib && request $lib +done +#TODO: switch to $AUTODETECT_LIBS when $THREADS_LIST is supported the same way +enable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST +enable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST + disabled logging && logfile=/dev/null + # command line configuration sanity checks + # we need to build at least one lib type if ! enabled_any static shared; then cat <