comparison configure @ 23108:7c60ea3e4902

cosmetics: Fix indentation, merge some lines in the FFmpeg checks.
author diego
date Thu, 26 Apr 2007 12:26:52 +0000
parents 18b824724eea
children d01ab20fd7f4
comparison
equal deleted inserted replaced
23107:18b824724eea 23108:7c60ea3e4902
6195 #if LIBAVCODEC_BUILD >= 3211265 6195 #if LIBAVCODEC_BUILD >= 3211265
6196 #error We need libavutil! 6196 #error We need libavutil!
6197 #endif 6197 #endif
6198 int main(void) { return 0; } 6198 int main(void) { return 0; }
6199 EOF 6199 EOF
6200
6201 if cc_check -I. -I./libavutil; then 6200 if cc_check -I. -I./libavutil; then
6202 _libavutil_required="no" 6201 _libavutil_required="no"
6203 else 6202 else
6204 _libavutil_required="yes" 6203 _libavutil_required="yes"
6205 fi 6204 fi
6214 _libavcodec_so=no 6213 _libavcodec_so=no
6215 _res_comment="libavcodec.so is discouraged over static libavcodec" 6214 _res_comment="libavcodec.so is discouraged over static libavcodec"
6216 # FIXME : check for avcodec_find_encoder_by_name() for mencoder 6215 # FIXME : check for avcodec_find_encoder_by_name() for mencoder
6217 cat > $TMPC << EOF 6216 cat > $TMPC << EOF
6218 #include <ffmpeg/avcodec.h> 6217 #include <ffmpeg/avcodec.h>
6219 int main(void) { 6218 int main(void) { avcodec_find_encoder_by_name(""); return 0; }
6220 avcodec_find_encoder_by_name("");
6221 return 0; }
6222 EOF 6219 EOF
6223 if $_pkg_config --exists libavcodec ; then 6220 if $_pkg_config --exists libavcodec ; then
6224 _inc_libavcodec=`$_pkg_config --cflags libavcodec` 6221 _inc_libavcodec=`$_pkg_config --cflags libavcodec`
6225 _ld_tmp=`$_pkg_config --libs libavcodec` 6222 _ld_tmp=`$_pkg_config --libs libavcodec`
6226 cc_check $_inc_libavcodec $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ 6223 cc_check $_inc_libavcodec $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \
6265 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes 6262 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes
6266 echores "$_libavformat" 6263 echores "$_libavformat"
6267 6264
6268 echocheck "FFmpeg libpostproc" 6265 echocheck "FFmpeg libpostproc"
6269 if test "$_libpostproc_a" = auto ; then 6266 if test "$_libpostproc_a" = auto ; then
6270 _libpostproc_a=no 6267 _libpostproc_a=no
6271 if test -d libpostproc && test -f libpostproc/postprocess.h ; then 6268 if test -d libpostproc && test -f libpostproc/postprocess.h ; then
6272 _libpostproc_a='yes' 6269 _libpostproc_a='yes'
6273 _res_comment="static" 6270 _res_comment="static"
6274 fi 6271 fi
6275 elif test "$_libpostproc_so" = auto ; then 6272 elif test "$_libpostproc_so" = auto ; then
6276 _libpostproc_so=no 6273 _libpostproc_so=no
6277 cat > $TMPC << EOF 6274 cat > $TMPC << EOF
6278 #define USE_LIBPOSTPROC 1 6275 #define USE_LIBPOSTPROC 1
6279 #include <inttypes.h> 6276 #include <inttypes.h>
6280 #include <postproc/postprocess.h> 6277 #include <postproc/postprocess.h>
6281 int main(void) { 6278 int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; }
6282 pp_get_mode_by_name_and_quality("de", 0);
6283 return 0;}
6284 EOF 6279 EOF
6285 if cc_check -lpostproc $_ld_lm ; then 6280 if cc_check -lpostproc $_ld_lm ; then
6286 _ld_extra="$_ld_extra -lpostproc" 6281 _ld_extra="$_ld_extra -lpostproc"
6287 _libpostproc_so=yes 6282 _libpostproc_so=yes
6288 _res_comment="using libpostproc.so, but static libpostproc is recommended" 6283 _res_comment="using libpostproc.so, but static libpostproc is recommended"