Ignore:
Timestamp:
Mar 15, 2012, 11:46:42 PM (13 years ago)
Author:
ldelgass
Message:

Remove vr3d library - texture classes were redundant. Remove last vestiges of
opencv usage in code and remove from configure - replaced by imgLoaders library
functions.

Location:
trunk/packages/vizservers
Files:
1 deleted
36 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/configure

    r2829 r2857  
    1272912729$as_echo "$DX_LIB_SPEC" >&6; }
    1273012730
    12731 
    12732 
    12733 for ac_header in opencv/cv.h opencv/highgui.h
     12731save_CPPFLAGS=$CPPFLAGS
     12732# Test for redhat-specific location of ffmpeg headers.
     12733if test -d "/usr/include/ffmpeg" ; then
     12734  CPPFLAGS="$CPPFLAGS -I/usr/include/ffmpeg"
     12735  FF_INC_SPEC="-I/usr/include/ffmpeg"
     12736fi
     12737
     12738
     12739
     12740
     12741
     12742
     12743
     12744for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h
     12745do
     12746as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     12747{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     12748$as_echo_n "checking for $ac_header... " >&6; }
     12749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     12750  $as_echo_n "(cached) " >&6
     12751else
     12752  cat >conftest.$ac_ext <<_ACEOF
     12753/* confdefs.h.  */
     12754_ACEOF
     12755cat confdefs.h >>conftest.$ac_ext
     12756cat >>conftest.$ac_ext <<_ACEOF
     12757/* end confdefs.h.  */
     12758
     12759#define __STDC_CONSTANT_MACROS 1
     12760
     12761
     12762#include <$ac_header>
     12763_ACEOF
     12764rm -f conftest.$ac_objext
     12765if { (ac_try="$ac_compile"
     12766case "(($ac_try" in
     12767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12768  *) ac_try_echo=$ac_try;;
     12769esac
     12770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12771$as_echo "$ac_try_echo") >&5
     12772  (eval "$ac_compile") 2>conftest.er1
     12773  ac_status=$?
     12774  grep -v '^ *+' conftest.er1 >conftest.err
     12775  rm -f conftest.er1
     12776  cat conftest.err >&5
     12777  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12778  (exit $ac_status); } && {
     12779         test -z "$ac_cxx_werror_flag" ||
     12780         test ! -s conftest.err
     12781       } && test -s conftest.$ac_objext; then
     12782  eval "$as_ac_Header=yes"
     12783else
     12784  $as_echo "$as_me: failed program was:" >&5
     12785sed 's/^/| /' conftest.$ac_ext >&5
     12786
     12787        eval "$as_ac_Header=no"
     12788fi
     12789
     12790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     12791fi
     12792ac_res=`eval 'as_val=${'$as_ac_Header'}
     12793                 $as_echo "$as_val"'`
     12794               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     12795$as_echo "$ac_res" >&6; }
     12796as_val=`eval 'as_val=${'$as_ac_Header'}
     12797                 $as_echo "$as_val"'`
     12798   if test "x$as_val" = x""yes; then
     12799  cat >>confdefs.h <<_ACEOF
     12800#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     12801_ACEOF
     12802
     12803fi
     12804
     12805done
     12806
     12807CPPFLAGS=$save_CPPFLAGS
     12808
     12809
     12810{ $as_echo "$as_me:$LINENO: checking for main in -lavcodec" >&5
     12811$as_echo_n "checking for main in -lavcodec... " >&6; }
     12812if test "${ac_cv_lib_avcodec_main+set}" = set; then
     12813  $as_echo_n "(cached) " >&6
     12814else
     12815  ac_check_lib_save_LIBS=$LIBS
     12816LIBS="-lavcodec  $LIBS"
     12817cat >conftest.$ac_ext <<_ACEOF
     12818/* confdefs.h.  */
     12819_ACEOF
     12820cat confdefs.h >>conftest.$ac_ext
     12821cat >>conftest.$ac_ext <<_ACEOF
     12822/* end confdefs.h.  */
     12823
     12824
     12825int
     12826main ()
     12827{
     12828return main ();
     12829  ;
     12830  return 0;
     12831}
     12832_ACEOF
     12833rm -f conftest.$ac_objext conftest$ac_exeext
     12834if { (ac_try="$ac_link"
     12835case "(($ac_try" in
     12836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12837  *) ac_try_echo=$ac_try;;
     12838esac
     12839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12840$as_echo "$ac_try_echo") >&5
     12841  (eval "$ac_link") 2>conftest.er1
     12842  ac_status=$?
     12843  grep -v '^ *+' conftest.er1 >conftest.err
     12844  rm -f conftest.er1
     12845  cat conftest.err >&5
     12846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12847  (exit $ac_status); } && {
     12848         test -z "$ac_cxx_werror_flag" ||
     12849         test ! -s conftest.err
     12850       } && test -s conftest$ac_exeext && {
     12851         test "$cross_compiling" = yes ||
     12852         $as_test_x conftest$ac_exeext
     12853       }; then
     12854  ac_cv_lib_avcodec_main=yes
     12855else
     12856  $as_echo "$as_me: failed program was:" >&5
     12857sed 's/^/| /' conftest.$ac_ext >&5
     12858
     12859        ac_cv_lib_avcodec_main=no
     12860fi
     12861
     12862rm -rf conftest.dSYM
     12863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     12864      conftest$ac_exeext conftest.$ac_ext
     12865LIBS=$ac_check_lib_save_LIBS
     12866fi
     12867{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&5
     12868$as_echo "$ac_cv_lib_avcodec_main" >&6; }
     12869if test "x$ac_cv_lib_avcodec_main" = x""yes; then
     12870  cat >>confdefs.h <<_ACEOF
     12871#define HAVE_LIBAVCODEC 1
     12872_ACEOF
     12873
     12874  LIBS="-lavcodec $LIBS"
     12875
     12876else
     12877  { { $as_echo "$as_me:$LINENO: error: requires libavcodec" >&5
     12878$as_echo "$as_me: error: requires libavcodec" >&2;}
     12879   { (exit 1); exit 1; }; }
     12880fi
     12881
     12882
     12883{ $as_echo "$as_me:$LINENO: checking for main in -lavutil" >&5
     12884$as_echo_n "checking for main in -lavutil... " >&6; }
     12885if test "${ac_cv_lib_avutil_main+set}" = set; then
     12886  $as_echo_n "(cached) " >&6
     12887else
     12888  ac_check_lib_save_LIBS=$LIBS
     12889LIBS="-lavutil  $LIBS"
     12890cat >conftest.$ac_ext <<_ACEOF
     12891/* confdefs.h.  */
     12892_ACEOF
     12893cat confdefs.h >>conftest.$ac_ext
     12894cat >>conftest.$ac_ext <<_ACEOF
     12895/* end confdefs.h.  */
     12896
     12897
     12898int
     12899main ()
     12900{
     12901return main ();
     12902  ;
     12903  return 0;
     12904}
     12905_ACEOF
     12906rm -f conftest.$ac_objext conftest$ac_exeext
     12907if { (ac_try="$ac_link"
     12908case "(($ac_try" in
     12909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12910  *) ac_try_echo=$ac_try;;
     12911esac
     12912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12913$as_echo "$ac_try_echo") >&5
     12914  (eval "$ac_link") 2>conftest.er1
     12915  ac_status=$?
     12916  grep -v '^ *+' conftest.er1 >conftest.err
     12917  rm -f conftest.er1
     12918  cat conftest.err >&5
     12919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12920  (exit $ac_status); } && {
     12921         test -z "$ac_cxx_werror_flag" ||
     12922         test ! -s conftest.err
     12923       } && test -s conftest$ac_exeext && {
     12924         test "$cross_compiling" = yes ||
     12925         $as_test_x conftest$ac_exeext
     12926       }; then
     12927  ac_cv_lib_avutil_main=yes
     12928else
     12929  $as_echo "$as_me: failed program was:" >&5
     12930sed 's/^/| /' conftest.$ac_ext >&5
     12931
     12932        ac_cv_lib_avutil_main=no
     12933fi
     12934
     12935rm -rf conftest.dSYM
     12936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     12937      conftest$ac_exeext conftest.$ac_ext
     12938LIBS=$ac_check_lib_save_LIBS
     12939fi
     12940{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5
     12941$as_echo "$ac_cv_lib_avutil_main" >&6; }
     12942if test "x$ac_cv_lib_avutil_main" = x""yes; then
     12943  cat >>confdefs.h <<_ACEOF
     12944#define HAVE_LIBAVUTIL 1
     12945_ACEOF
     12946
     12947  LIBS="-lavutil $LIBS"
     12948
     12949else
     12950  { { $as_echo "$as_me:$LINENO: error: requires libavutil" >&5
     12951$as_echo "$as_me: error: requires libavutil" >&2;}
     12952   { (exit 1); exit 1; }; }
     12953fi
     12954
     12955
     12956{ $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
     12957$as_echo_n "checking for main in -lavformat... " >&6; }
     12958if test "${ac_cv_lib_avformat_main+set}" = set; then
     12959  $as_echo_n "(cached) " >&6
     12960else
     12961  ac_check_lib_save_LIBS=$LIBS
     12962LIBS="-lavformat  $LIBS"
     12963cat >conftest.$ac_ext <<_ACEOF
     12964/* confdefs.h.  */
     12965_ACEOF
     12966cat confdefs.h >>conftest.$ac_ext
     12967cat >>conftest.$ac_ext <<_ACEOF
     12968/* end confdefs.h.  */
     12969
     12970
     12971int
     12972main ()
     12973{
     12974return main ();
     12975  ;
     12976  return 0;
     12977}
     12978_ACEOF
     12979rm -f conftest.$ac_objext conftest$ac_exeext
     12980if { (ac_try="$ac_link"
     12981case "(($ac_try" in
     12982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     12983  *) ac_try_echo=$ac_try;;
     12984esac
     12985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     12986$as_echo "$ac_try_echo") >&5
     12987  (eval "$ac_link") 2>conftest.er1
     12988  ac_status=$?
     12989  grep -v '^ *+' conftest.er1 >conftest.err
     12990  rm -f conftest.er1
     12991  cat conftest.err >&5
     12992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     12993  (exit $ac_status); } && {
     12994         test -z "$ac_cxx_werror_flag" ||
     12995         test ! -s conftest.err
     12996       } && test -s conftest$ac_exeext && {
     12997         test "$cross_compiling" = yes ||
     12998         $as_test_x conftest$ac_exeext
     12999       }; then
     13000  ac_cv_lib_avformat_main=yes
     13001else
     13002  $as_echo "$as_me: failed program was:" >&5
     13003sed 's/^/| /' conftest.$ac_ext >&5
     13004
     13005        ac_cv_lib_avformat_main=no
     13006fi
     13007
     13008rm -rf conftest.dSYM
     13009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13010      conftest$ac_exeext conftest.$ac_ext
     13011LIBS=$ac_check_lib_save_LIBS
     13012fi
     13013{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
     13014$as_echo "$ac_cv_lib_avformat_main" >&6; }
     13015if test "x$ac_cv_lib_avformat_main" = x""yes; then
     13016  cat >>confdefs.h <<_ACEOF
     13017#define HAVE_LIBAVFORMAT 1
     13018_ACEOF
     13019
     13020  LIBS="-lavformat $LIBS"
     13021
     13022else
     13023  { { $as_echo "$as_me:$LINENO: error: requires libavformat" >&5
     13024$as_echo "$as_me: error: requires libavformat" >&2;}
     13025   { (exit 1); exit 1; }; }
     13026fi
     13027
     13028
     13029{ $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
     13030$as_echo_n "checking for main in -lswscale... " >&6; }
     13031if test "${ac_cv_lib_swscale_main+set}" = set; then
     13032  $as_echo_n "(cached) " >&6
     13033else
     13034  ac_check_lib_save_LIBS=$LIBS
     13035LIBS="-lswscale  $LIBS"
     13036cat >conftest.$ac_ext <<_ACEOF
     13037/* confdefs.h.  */
     13038_ACEOF
     13039cat confdefs.h >>conftest.$ac_ext
     13040cat >>conftest.$ac_ext <<_ACEOF
     13041/* end confdefs.h.  */
     13042
     13043
     13044int
     13045main ()
     13046{
     13047return main ();
     13048  ;
     13049  return 0;
     13050}
     13051_ACEOF
     13052rm -f conftest.$ac_objext conftest$ac_exeext
     13053if { (ac_try="$ac_link"
     13054case "(($ac_try" in
     13055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13056  *) ac_try_echo=$ac_try;;
     13057esac
     13058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13059$as_echo "$ac_try_echo") >&5
     13060  (eval "$ac_link") 2>conftest.er1
     13061  ac_status=$?
     13062  grep -v '^ *+' conftest.er1 >conftest.err
     13063  rm -f conftest.er1
     13064  cat conftest.err >&5
     13065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13066  (exit $ac_status); } && {
     13067         test -z "$ac_cxx_werror_flag" ||
     13068         test ! -s conftest.err
     13069       } && test -s conftest$ac_exeext && {
     13070         test "$cross_compiling" = yes ||
     13071         $as_test_x conftest$ac_exeext
     13072       }; then
     13073  ac_cv_lib_swscale_main=yes
     13074else
     13075  $as_echo "$as_me: failed program was:" >&5
     13076sed 's/^/| /' conftest.$ac_ext >&5
     13077
     13078        ac_cv_lib_swscale_main=no
     13079fi
     13080
     13081rm -rf conftest.dSYM
     13082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13083      conftest$ac_exeext conftest.$ac_ext
     13084LIBS=$ac_check_lib_save_LIBS
     13085fi
     13086{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
     13087$as_echo "$ac_cv_lib_swscale_main" >&6; }
     13088if test "x$ac_cv_lib_swscale_main" = x""yes; then
     13089  cat >>confdefs.h <<_ACEOF
     13090#define HAVE_LIBSWSCALE 1
     13091_ACEOF
     13092
     13093  LIBS="-lswscale $LIBS"
     13094
     13095fi
     13096
     13097
     13098for ac_func in avcodec_decode_video2
     13099do
     13100as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13101{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13102$as_echo_n "checking for $ac_func... " >&6; }
     13103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13104  $as_echo_n "(cached) " >&6
     13105else
     13106  cat >conftest.$ac_ext <<_ACEOF
     13107/* confdefs.h.  */
     13108_ACEOF
     13109cat confdefs.h >>conftest.$ac_ext
     13110cat >>conftest.$ac_ext <<_ACEOF
     13111/* end confdefs.h.  */
     13112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13113   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13114#define $ac_func innocuous_$ac_func
     13115
     13116/* System header to define __stub macros and hopefully few prototypes,
     13117    which can conflict with char $ac_func (); below.
     13118    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13119    <limits.h> exists even on freestanding compilers.  */
     13120
     13121#ifdef __STDC__
     13122# include <limits.h>
     13123#else
     13124# include <assert.h>
     13125#endif
     13126
     13127#undef $ac_func
     13128
     13129/* Override any GCC internal prototype to avoid an error.
     13130   Use char because int might match the return type of a GCC
     13131   builtin and then its argument prototype would still apply.  */
     13132#ifdef __cplusplus
     13133extern "C"
     13134#endif
     13135char $ac_func ();
     13136/* The GNU C library defines this for functions which it implements
     13137    to always fail with ENOSYS.  Some functions are actually named
     13138    something starting with __ and the normal name is an alias.  */
     13139#if defined __stub_$ac_func || defined __stub___$ac_func
     13140choke me
     13141#endif
     13142
     13143int
     13144main ()
     13145{
     13146return $ac_func ();
     13147  ;
     13148  return 0;
     13149}
     13150_ACEOF
     13151rm -f conftest.$ac_objext conftest$ac_exeext
     13152if { (ac_try="$ac_link"
     13153case "(($ac_try" in
     13154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13155  *) ac_try_echo=$ac_try;;
     13156esac
     13157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13158$as_echo "$ac_try_echo") >&5
     13159  (eval "$ac_link") 2>conftest.er1
     13160  ac_status=$?
     13161  grep -v '^ *+' conftest.er1 >conftest.err
     13162  rm -f conftest.er1
     13163  cat conftest.err >&5
     13164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13165  (exit $ac_status); } && {
     13166         test -z "$ac_cxx_werror_flag" ||
     13167         test ! -s conftest.err
     13168       } && test -s conftest$ac_exeext && {
     13169         test "$cross_compiling" = yes ||
     13170         $as_test_x conftest$ac_exeext
     13171       }; then
     13172  eval "$as_ac_var=yes"
     13173else
     13174  $as_echo "$as_me: failed program was:" >&5
     13175sed 's/^/| /' conftest.$ac_ext >&5
     13176
     13177        eval "$as_ac_var=no"
     13178fi
     13179
     13180rm -rf conftest.dSYM
     13181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13182      conftest$ac_exeext conftest.$ac_ext
     13183fi
     13184ac_res=`eval 'as_val=${'$as_ac_var'}
     13185                 $as_echo "$as_val"'`
     13186               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13187$as_echo "$ac_res" >&6; }
     13188as_val=`eval 'as_val=${'$as_ac_var'}
     13189                 $as_echo "$as_val"'`
     13190   if test "x$as_val" = x""yes; then
     13191  cat >>confdefs.h <<_ACEOF
     13192#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13193_ACEOF
     13194
     13195fi
     13196done
     13197
     13198
     13199for ac_func in avcodec_decode_video
     13200do
     13201as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13202{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13203$as_echo_n "checking for $ac_func... " >&6; }
     13204if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13205  $as_echo_n "(cached) " >&6
     13206else
     13207  cat >conftest.$ac_ext <<_ACEOF
     13208/* confdefs.h.  */
     13209_ACEOF
     13210cat confdefs.h >>conftest.$ac_ext
     13211cat >>conftest.$ac_ext <<_ACEOF
     13212/* end confdefs.h.  */
     13213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13214   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13215#define $ac_func innocuous_$ac_func
     13216
     13217/* System header to define __stub macros and hopefully few prototypes,
     13218    which can conflict with char $ac_func (); below.
     13219    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13220    <limits.h> exists even on freestanding compilers.  */
     13221
     13222#ifdef __STDC__
     13223# include <limits.h>
     13224#else
     13225# include <assert.h>
     13226#endif
     13227
     13228#undef $ac_func
     13229
     13230/* Override any GCC internal prototype to avoid an error.
     13231   Use char because int might match the return type of a GCC
     13232   builtin and then its argument prototype would still apply.  */
     13233#ifdef __cplusplus
     13234extern "C"
     13235#endif
     13236char $ac_func ();
     13237/* The GNU C library defines this for functions which it implements
     13238    to always fail with ENOSYS.  Some functions are actually named
     13239    something starting with __ and the normal name is an alias.  */
     13240#if defined __stub_$ac_func || defined __stub___$ac_func
     13241choke me
     13242#endif
     13243
     13244int
     13245main ()
     13246{
     13247return $ac_func ();
     13248  ;
     13249  return 0;
     13250}
     13251_ACEOF
     13252rm -f conftest.$ac_objext conftest$ac_exeext
     13253if { (ac_try="$ac_link"
     13254case "(($ac_try" in
     13255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13256  *) ac_try_echo=$ac_try;;
     13257esac
     13258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13259$as_echo "$ac_try_echo") >&5
     13260  (eval "$ac_link") 2>conftest.er1
     13261  ac_status=$?
     13262  grep -v '^ *+' conftest.er1 >conftest.err
     13263  rm -f conftest.er1
     13264  cat conftest.err >&5
     13265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13266  (exit $ac_status); } && {
     13267         test -z "$ac_cxx_werror_flag" ||
     13268         test ! -s conftest.err
     13269       } && test -s conftest$ac_exeext && {
     13270         test "$cross_compiling" = yes ||
     13271         $as_test_x conftest$ac_exeext
     13272       }; then
     13273  eval "$as_ac_var=yes"
     13274else
     13275  $as_echo "$as_me: failed program was:" >&5
     13276sed 's/^/| /' conftest.$ac_ext >&5
     13277
     13278        eval "$as_ac_var=no"
     13279fi
     13280
     13281rm -rf conftest.dSYM
     13282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13283      conftest$ac_exeext conftest.$ac_ext
     13284fi
     13285ac_res=`eval 'as_val=${'$as_ac_var'}
     13286                 $as_echo "$as_val"'`
     13287               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13288$as_echo "$ac_res" >&6; }
     13289as_val=`eval 'as_val=${'$as_ac_var'}
     13290                 $as_echo "$as_val"'`
     13291   if test "x$as_val" = x""yes; then
     13292  cat >>confdefs.h <<_ACEOF
     13293#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13294_ACEOF
     13295
     13296fi
     13297done
     13298
     13299
     13300for ac_func in avformat_open_input
     13301do
     13302as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13303{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13304$as_echo_n "checking for $ac_func... " >&6; }
     13305if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13306  $as_echo_n "(cached) " >&6
     13307else
     13308  cat >conftest.$ac_ext <<_ACEOF
     13309/* confdefs.h.  */
     13310_ACEOF
     13311cat confdefs.h >>conftest.$ac_ext
     13312cat >>conftest.$ac_ext <<_ACEOF
     13313/* end confdefs.h.  */
     13314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13315   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13316#define $ac_func innocuous_$ac_func
     13317
     13318/* System header to define __stub macros and hopefully few prototypes,
     13319    which can conflict with char $ac_func (); below.
     13320    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13321    <limits.h> exists even on freestanding compilers.  */
     13322
     13323#ifdef __STDC__
     13324# include <limits.h>
     13325#else
     13326# include <assert.h>
     13327#endif
     13328
     13329#undef $ac_func
     13330
     13331/* Override any GCC internal prototype to avoid an error.
     13332   Use char because int might match the return type of a GCC
     13333   builtin and then its argument prototype would still apply.  */
     13334#ifdef __cplusplus
     13335extern "C"
     13336#endif
     13337char $ac_func ();
     13338/* The GNU C library defines this for functions which it implements
     13339    to always fail with ENOSYS.  Some functions are actually named
     13340    something starting with __ and the normal name is an alias.  */
     13341#if defined __stub_$ac_func || defined __stub___$ac_func
     13342choke me
     13343#endif
     13344
     13345int
     13346main ()
     13347{
     13348return $ac_func ();
     13349  ;
     13350  return 0;
     13351}
     13352_ACEOF
     13353rm -f conftest.$ac_objext conftest$ac_exeext
     13354if { (ac_try="$ac_link"
     13355case "(($ac_try" in
     13356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13357  *) ac_try_echo=$ac_try;;
     13358esac
     13359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13360$as_echo "$ac_try_echo") >&5
     13361  (eval "$ac_link") 2>conftest.er1
     13362  ac_status=$?
     13363  grep -v '^ *+' conftest.er1 >conftest.err
     13364  rm -f conftest.er1
     13365  cat conftest.err >&5
     13366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13367  (exit $ac_status); } && {
     13368         test -z "$ac_cxx_werror_flag" ||
     13369         test ! -s conftest.err
     13370       } && test -s conftest$ac_exeext && {
     13371         test "$cross_compiling" = yes ||
     13372         $as_test_x conftest$ac_exeext
     13373       }; then
     13374  eval "$as_ac_var=yes"
     13375else
     13376  $as_echo "$as_me: failed program was:" >&5
     13377sed 's/^/| /' conftest.$ac_ext >&5
     13378
     13379        eval "$as_ac_var=no"
     13380fi
     13381
     13382rm -rf conftest.dSYM
     13383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13384      conftest$ac_exeext conftest.$ac_ext
     13385fi
     13386ac_res=`eval 'as_val=${'$as_ac_var'}
     13387                 $as_echo "$as_val"'`
     13388               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13389$as_echo "$ac_res" >&6; }
     13390as_val=`eval 'as_val=${'$as_ac_var'}
     13391                 $as_echo "$as_val"'`
     13392   if test "x$as_val" = x""yes; then
     13393  cat >>confdefs.h <<_ACEOF
     13394#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13395_ACEOF
     13396
     13397fi
     13398done
     13399
     13400
     13401for ac_func in av_open_input_file
     13402do
     13403as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13404{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13405$as_echo_n "checking for $ac_func... " >&6; }
     13406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13407  $as_echo_n "(cached) " >&6
     13408else
     13409  cat >conftest.$ac_ext <<_ACEOF
     13410/* confdefs.h.  */
     13411_ACEOF
     13412cat confdefs.h >>conftest.$ac_ext
     13413cat >>conftest.$ac_ext <<_ACEOF
     13414/* end confdefs.h.  */
     13415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13416   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13417#define $ac_func innocuous_$ac_func
     13418
     13419/* System header to define __stub macros and hopefully few prototypes,
     13420    which can conflict with char $ac_func (); below.
     13421    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13422    <limits.h> exists even on freestanding compilers.  */
     13423
     13424#ifdef __STDC__
     13425# include <limits.h>
     13426#else
     13427# include <assert.h>
     13428#endif
     13429
     13430#undef $ac_func
     13431
     13432/* Override any GCC internal prototype to avoid an error.
     13433   Use char because int might match the return type of a GCC
     13434   builtin and then its argument prototype would still apply.  */
     13435#ifdef __cplusplus
     13436extern "C"
     13437#endif
     13438char $ac_func ();
     13439/* The GNU C library defines this for functions which it implements
     13440    to always fail with ENOSYS.  Some functions are actually named
     13441    something starting with __ and the normal name is an alias.  */
     13442#if defined __stub_$ac_func || defined __stub___$ac_func
     13443choke me
     13444#endif
     13445
     13446int
     13447main ()
     13448{
     13449return $ac_func ();
     13450  ;
     13451  return 0;
     13452}
     13453_ACEOF
     13454rm -f conftest.$ac_objext conftest$ac_exeext
     13455if { (ac_try="$ac_link"
     13456case "(($ac_try" in
     13457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13458  *) ac_try_echo=$ac_try;;
     13459esac
     13460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13461$as_echo "$ac_try_echo") >&5
     13462  (eval "$ac_link") 2>conftest.er1
     13463  ac_status=$?
     13464  grep -v '^ *+' conftest.er1 >conftest.err
     13465  rm -f conftest.er1
     13466  cat conftest.err >&5
     13467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13468  (exit $ac_status); } && {
     13469         test -z "$ac_cxx_werror_flag" ||
     13470         test ! -s conftest.err
     13471       } && test -s conftest$ac_exeext && {
     13472         test "$cross_compiling" = yes ||
     13473         $as_test_x conftest$ac_exeext
     13474       }; then
     13475  eval "$as_ac_var=yes"
     13476else
     13477  $as_echo "$as_me: failed program was:" >&5
     13478sed 's/^/| /' conftest.$ac_ext >&5
     13479
     13480        eval "$as_ac_var=no"
     13481fi
     13482
     13483rm -rf conftest.dSYM
     13484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13485      conftest$ac_exeext conftest.$ac_ext
     13486fi
     13487ac_res=`eval 'as_val=${'$as_ac_var'}
     13488                 $as_echo "$as_val"'`
     13489               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13490$as_echo "$ac_res" >&6; }
     13491as_val=`eval 'as_val=${'$as_ac_var'}
     13492                 $as_echo "$as_val"'`
     13493   if test "x$as_val" = x""yes; then
     13494  cat >>confdefs.h <<_ACEOF
     13495#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13496_ACEOF
     13497
     13498fi
     13499done
     13500
     13501
     13502for ac_func in av_guess_format
     13503do
     13504as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13505{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13506$as_echo_n "checking for $ac_func... " >&6; }
     13507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13508  $as_echo_n "(cached) " >&6
     13509else
     13510  cat >conftest.$ac_ext <<_ACEOF
     13511/* confdefs.h.  */
     13512_ACEOF
     13513cat confdefs.h >>conftest.$ac_ext
     13514cat >>conftest.$ac_ext <<_ACEOF
     13515/* end confdefs.h.  */
     13516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13517   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13518#define $ac_func innocuous_$ac_func
     13519
     13520/* System header to define __stub macros and hopefully few prototypes,
     13521    which can conflict with char $ac_func (); below.
     13522    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13523    <limits.h> exists even on freestanding compilers.  */
     13524
     13525#ifdef __STDC__
     13526# include <limits.h>
     13527#else
     13528# include <assert.h>
     13529#endif
     13530
     13531#undef $ac_func
     13532
     13533/* Override any GCC internal prototype to avoid an error.
     13534   Use char because int might match the return type of a GCC
     13535   builtin and then its argument prototype would still apply.  */
     13536#ifdef __cplusplus
     13537extern "C"
     13538#endif
     13539char $ac_func ();
     13540/* The GNU C library defines this for functions which it implements
     13541    to always fail with ENOSYS.  Some functions are actually named
     13542    something starting with __ and the normal name is an alias.  */
     13543#if defined __stub_$ac_func || defined __stub___$ac_func
     13544choke me
     13545#endif
     13546
     13547int
     13548main ()
     13549{
     13550return $ac_func ();
     13551  ;
     13552  return 0;
     13553}
     13554_ACEOF
     13555rm -f conftest.$ac_objext conftest$ac_exeext
     13556if { (ac_try="$ac_link"
     13557case "(($ac_try" in
     13558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13559  *) ac_try_echo=$ac_try;;
     13560esac
     13561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13562$as_echo "$ac_try_echo") >&5
     13563  (eval "$ac_link") 2>conftest.er1
     13564  ac_status=$?
     13565  grep -v '^ *+' conftest.er1 >conftest.err
     13566  rm -f conftest.er1
     13567  cat conftest.err >&5
     13568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13569  (exit $ac_status); } && {
     13570         test -z "$ac_cxx_werror_flag" ||
     13571         test ! -s conftest.err
     13572       } && test -s conftest$ac_exeext && {
     13573         test "$cross_compiling" = yes ||
     13574         $as_test_x conftest$ac_exeext
     13575       }; then
     13576  eval "$as_ac_var=yes"
     13577else
     13578  $as_echo "$as_me: failed program was:" >&5
     13579sed 's/^/| /' conftest.$ac_ext >&5
     13580
     13581        eval "$as_ac_var=no"
     13582fi
     13583
     13584rm -rf conftest.dSYM
     13585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13586      conftest$ac_exeext conftest.$ac_ext
     13587fi
     13588ac_res=`eval 'as_val=${'$as_ac_var'}
     13589                 $as_echo "$as_val"'`
     13590               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13591$as_echo "$ac_res" >&6; }
     13592as_val=`eval 'as_val=${'$as_ac_var'}
     13593                 $as_echo "$as_val"'`
     13594   if test "x$as_val" = x""yes; then
     13595  cat >>confdefs.h <<_ACEOF
     13596#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13597_ACEOF
     13598
     13599fi
     13600done
     13601
     13602
     13603for ac_func in guess_format
     13604do
     13605as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13606{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13607$as_echo_n "checking for $ac_func... " >&6; }
     13608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13609  $as_echo_n "(cached) " >&6
     13610else
     13611  cat >conftest.$ac_ext <<_ACEOF
     13612/* confdefs.h.  */
     13613_ACEOF
     13614cat confdefs.h >>conftest.$ac_ext
     13615cat >>conftest.$ac_ext <<_ACEOF
     13616/* end confdefs.h.  */
     13617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13618   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13619#define $ac_func innocuous_$ac_func
     13620
     13621/* System header to define __stub macros and hopefully few prototypes,
     13622    which can conflict with char $ac_func (); below.
     13623    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13624    <limits.h> exists even on freestanding compilers.  */
     13625
     13626#ifdef __STDC__
     13627# include <limits.h>
     13628#else
     13629# include <assert.h>
     13630#endif
     13631
     13632#undef $ac_func
     13633
     13634/* Override any GCC internal prototype to avoid an error.
     13635   Use char because int might match the return type of a GCC
     13636   builtin and then its argument prototype would still apply.  */
     13637#ifdef __cplusplus
     13638extern "C"
     13639#endif
     13640char $ac_func ();
     13641/* The GNU C library defines this for functions which it implements
     13642    to always fail with ENOSYS.  Some functions are actually named
     13643    something starting with __ and the normal name is an alias.  */
     13644#if defined __stub_$ac_func || defined __stub___$ac_func
     13645choke me
     13646#endif
     13647
     13648int
     13649main ()
     13650{
     13651return $ac_func ();
     13652  ;
     13653  return 0;
     13654}
     13655_ACEOF
     13656rm -f conftest.$ac_objext conftest$ac_exeext
     13657if { (ac_try="$ac_link"
     13658case "(($ac_try" in
     13659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13660  *) ac_try_echo=$ac_try;;
     13661esac
     13662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13663$as_echo "$ac_try_echo") >&5
     13664  (eval "$ac_link") 2>conftest.er1
     13665  ac_status=$?
     13666  grep -v '^ *+' conftest.er1 >conftest.err
     13667  rm -f conftest.er1
     13668  cat conftest.err >&5
     13669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13670  (exit $ac_status); } && {
     13671         test -z "$ac_cxx_werror_flag" ||
     13672         test ! -s conftest.err
     13673       } && test -s conftest$ac_exeext && {
     13674         test "$cross_compiling" = yes ||
     13675         $as_test_x conftest$ac_exeext
     13676       }; then
     13677  eval "$as_ac_var=yes"
     13678else
     13679  $as_echo "$as_me: failed program was:" >&5
     13680sed 's/^/| /' conftest.$ac_ext >&5
     13681
     13682        eval "$as_ac_var=no"
     13683fi
     13684
     13685rm -rf conftest.dSYM
     13686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13687      conftest$ac_exeext conftest.$ac_ext
     13688fi
     13689ac_res=`eval 'as_val=${'$as_ac_var'}
     13690                 $as_echo "$as_val"'`
     13691               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13692$as_echo "$ac_res" >&6; }
     13693as_val=`eval 'as_val=${'$as_ac_var'}
     13694                 $as_echo "$as_val"'`
     13695   if test "x$as_val" = x""yes; then
     13696  cat >>confdefs.h <<_ACEOF
     13697#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13698_ACEOF
     13699
     13700fi
     13701done
     13702
     13703
     13704for ac_func in av_dump_format
     13705do
     13706as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13707{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13708$as_echo_n "checking for $ac_func... " >&6; }
     13709if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13710  $as_echo_n "(cached) " >&6
     13711else
     13712  cat >conftest.$ac_ext <<_ACEOF
     13713/* confdefs.h.  */
     13714_ACEOF
     13715cat confdefs.h >>conftest.$ac_ext
     13716cat >>conftest.$ac_ext <<_ACEOF
     13717/* end confdefs.h.  */
     13718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13719   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13720#define $ac_func innocuous_$ac_func
     13721
     13722/* System header to define __stub macros and hopefully few prototypes,
     13723    which can conflict with char $ac_func (); below.
     13724    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13725    <limits.h> exists even on freestanding compilers.  */
     13726
     13727#ifdef __STDC__
     13728# include <limits.h>
     13729#else
     13730# include <assert.h>
     13731#endif
     13732
     13733#undef $ac_func
     13734
     13735/* Override any GCC internal prototype to avoid an error.
     13736   Use char because int might match the return type of a GCC
     13737   builtin and then its argument prototype would still apply.  */
     13738#ifdef __cplusplus
     13739extern "C"
     13740#endif
     13741char $ac_func ();
     13742/* The GNU C library defines this for functions which it implements
     13743    to always fail with ENOSYS.  Some functions are actually named
     13744    something starting with __ and the normal name is an alias.  */
     13745#if defined __stub_$ac_func || defined __stub___$ac_func
     13746choke me
     13747#endif
     13748
     13749int
     13750main ()
     13751{
     13752return $ac_func ();
     13753  ;
     13754  return 0;
     13755}
     13756_ACEOF
     13757rm -f conftest.$ac_objext conftest$ac_exeext
     13758if { (ac_try="$ac_link"
     13759case "(($ac_try" in
     13760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13761  *) ac_try_echo=$ac_try;;
     13762esac
     13763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13764$as_echo "$ac_try_echo") >&5
     13765  (eval "$ac_link") 2>conftest.er1
     13766  ac_status=$?
     13767  grep -v '^ *+' conftest.er1 >conftest.err
     13768  rm -f conftest.er1
     13769  cat conftest.err >&5
     13770  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13771  (exit $ac_status); } && {
     13772         test -z "$ac_cxx_werror_flag" ||
     13773         test ! -s conftest.err
     13774       } && test -s conftest$ac_exeext && {
     13775         test "$cross_compiling" = yes ||
     13776         $as_test_x conftest$ac_exeext
     13777       }; then
     13778  eval "$as_ac_var=yes"
     13779else
     13780  $as_echo "$as_me: failed program was:" >&5
     13781sed 's/^/| /' conftest.$ac_ext >&5
     13782
     13783        eval "$as_ac_var=no"
     13784fi
     13785
     13786rm -rf conftest.dSYM
     13787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13788      conftest$ac_exeext conftest.$ac_ext
     13789fi
     13790ac_res=`eval 'as_val=${'$as_ac_var'}
     13791                 $as_echo "$as_val"'`
     13792               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13793$as_echo "$ac_res" >&6; }
     13794as_val=`eval 'as_val=${'$as_ac_var'}
     13795                 $as_echo "$as_val"'`
     13796   if test "x$as_val" = x""yes; then
     13797  cat >>confdefs.h <<_ACEOF
     13798#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13799_ACEOF
     13800
     13801fi
     13802done
     13803
     13804
     13805for ac_func in dump_format
     13806do
     13807as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13808{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13809$as_echo_n "checking for $ac_func... " >&6; }
     13810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13811  $as_echo_n "(cached) " >&6
     13812else
     13813  cat >conftest.$ac_ext <<_ACEOF
     13814/* confdefs.h.  */
     13815_ACEOF
     13816cat confdefs.h >>conftest.$ac_ext
     13817cat >>conftest.$ac_ext <<_ACEOF
     13818/* end confdefs.h.  */
     13819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13820   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13821#define $ac_func innocuous_$ac_func
     13822
     13823/* System header to define __stub macros and hopefully few prototypes,
     13824    which can conflict with char $ac_func (); below.
     13825    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13826    <limits.h> exists even on freestanding compilers.  */
     13827
     13828#ifdef __STDC__
     13829# include <limits.h>
     13830#else
     13831# include <assert.h>
     13832#endif
     13833
     13834#undef $ac_func
     13835
     13836/* Override any GCC internal prototype to avoid an error.
     13837   Use char because int might match the return type of a GCC
     13838   builtin and then its argument prototype would still apply.  */
     13839#ifdef __cplusplus
     13840extern "C"
     13841#endif
     13842char $ac_func ();
     13843/* The GNU C library defines this for functions which it implements
     13844    to always fail with ENOSYS.  Some functions are actually named
     13845    something starting with __ and the normal name is an alias.  */
     13846#if defined __stub_$ac_func || defined __stub___$ac_func
     13847choke me
     13848#endif
     13849
     13850int
     13851main ()
     13852{
     13853return $ac_func ();
     13854  ;
     13855  return 0;
     13856}
     13857_ACEOF
     13858rm -f conftest.$ac_objext conftest$ac_exeext
     13859if { (ac_try="$ac_link"
     13860case "(($ac_try" in
     13861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13862  *) ac_try_echo=$ac_try;;
     13863esac
     13864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13865$as_echo "$ac_try_echo") >&5
     13866  (eval "$ac_link") 2>conftest.er1
     13867  ac_status=$?
     13868  grep -v '^ *+' conftest.er1 >conftest.err
     13869  rm -f conftest.er1
     13870  cat conftest.err >&5
     13871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13872  (exit $ac_status); } && {
     13873         test -z "$ac_cxx_werror_flag" ||
     13874         test ! -s conftest.err
     13875       } && test -s conftest$ac_exeext && {
     13876         test "$cross_compiling" = yes ||
     13877         $as_test_x conftest$ac_exeext
     13878       }; then
     13879  eval "$as_ac_var=yes"
     13880else
     13881  $as_echo "$as_me: failed program was:" >&5
     13882sed 's/^/| /' conftest.$ac_ext >&5
     13883
     13884        eval "$as_ac_var=no"
     13885fi
     13886
     13887rm -rf conftest.dSYM
     13888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13889      conftest$ac_exeext conftest.$ac_ext
     13890fi
     13891ac_res=`eval 'as_val=${'$as_ac_var'}
     13892                 $as_echo "$as_val"'`
     13893               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13894$as_echo "$ac_res" >&6; }
     13895as_val=`eval 'as_val=${'$as_ac_var'}
     13896                 $as_echo "$as_val"'`
     13897   if test "x$as_val" = x""yes; then
     13898  cat >>confdefs.h <<_ACEOF
     13899#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     13900_ACEOF
     13901
     13902fi
     13903done
     13904
     13905
     13906for ac_func in avio_open
     13907do
     13908as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     13909{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     13910$as_echo_n "checking for $ac_func... " >&6; }
     13911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     13912  $as_echo_n "(cached) " >&6
     13913else
     13914  cat >conftest.$ac_ext <<_ACEOF
     13915/* confdefs.h.  */
     13916_ACEOF
     13917cat confdefs.h >>conftest.$ac_ext
     13918cat >>conftest.$ac_ext <<_ACEOF
     13919/* end confdefs.h.  */
     13920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     13921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     13922#define $ac_func innocuous_$ac_func
     13923
     13924/* System header to define __stub macros and hopefully few prototypes,
     13925    which can conflict with char $ac_func (); below.
     13926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     13927    <limits.h> exists even on freestanding compilers.  */
     13928
     13929#ifdef __STDC__
     13930# include <limits.h>
     13931#else
     13932# include <assert.h>
     13933#endif
     13934
     13935#undef $ac_func
     13936
     13937/* Override any GCC internal prototype to avoid an error.
     13938   Use char because int might match the return type of a GCC
     13939   builtin and then its argument prototype would still apply.  */
     13940#ifdef __cplusplus
     13941extern "C"
     13942#endif
     13943char $ac_func ();
     13944/* The GNU C library defines this for functions which it implements
     13945    to always fail with ENOSYS.  Some functions are actually named
     13946    something starting with __ and the normal name is an alias.  */
     13947#if defined __stub_$ac_func || defined __stub___$ac_func
     13948choke me
     13949#endif
     13950
     13951int
     13952main ()
     13953{
     13954return $ac_func ();
     13955  ;
     13956  return 0;
     13957}
     13958_ACEOF
     13959rm -f conftest.$ac_objext conftest$ac_exeext
     13960if { (ac_try="$ac_link"
     13961case "(($ac_try" in
     13962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     13963  *) ac_try_echo=$ac_try;;
     13964esac
     13965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     13966$as_echo "$ac_try_echo") >&5
     13967  (eval "$ac_link") 2>conftest.er1
     13968  ac_status=$?
     13969  grep -v '^ *+' conftest.er1 >conftest.err
     13970  rm -f conftest.er1
     13971  cat conftest.err >&5
     13972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13973  (exit $ac_status); } && {
     13974         test -z "$ac_cxx_werror_flag" ||
     13975         test ! -s conftest.err
     13976       } && test -s conftest$ac_exeext && {
     13977         test "$cross_compiling" = yes ||
     13978         $as_test_x conftest$ac_exeext
     13979       }; then
     13980  eval "$as_ac_var=yes"
     13981else
     13982  $as_echo "$as_me: failed program was:" >&5
     13983sed 's/^/| /' conftest.$ac_ext >&5
     13984
     13985        eval "$as_ac_var=no"
     13986fi
     13987
     13988rm -rf conftest.dSYM
     13989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     13990      conftest$ac_exeext conftest.$ac_ext
     13991fi
     13992ac_res=`eval 'as_val=${'$as_ac_var'}
     13993                 $as_echo "$as_val"'`
     13994               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     13995$as_echo "$ac_res" >&6; }
     13996as_val=`eval 'as_val=${'$as_ac_var'}
     13997                 $as_echo "$as_val"'`
     13998   if test "x$as_val" = x""yes; then
     13999  cat >>confdefs.h <<_ACEOF
     14000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14001_ACEOF
     14002
     14003fi
     14004done
     14005
     14006
     14007for ac_func in url_fopen
     14008do
     14009as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14010{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14011$as_echo_n "checking for $ac_func... " >&6; }
     14012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14013  $as_echo_n "(cached) " >&6
     14014else
     14015  cat >conftest.$ac_ext <<_ACEOF
     14016/* confdefs.h.  */
     14017_ACEOF
     14018cat confdefs.h >>conftest.$ac_ext
     14019cat >>conftest.$ac_ext <<_ACEOF
     14020/* end confdefs.h.  */
     14021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14023#define $ac_func innocuous_$ac_func
     14024
     14025/* System header to define __stub macros and hopefully few prototypes,
     14026    which can conflict with char $ac_func (); below.
     14027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14028    <limits.h> exists even on freestanding compilers.  */
     14029
     14030#ifdef __STDC__
     14031# include <limits.h>
     14032#else
     14033# include <assert.h>
     14034#endif
     14035
     14036#undef $ac_func
     14037
     14038/* Override any GCC internal prototype to avoid an error.
     14039   Use char because int might match the return type of a GCC
     14040   builtin and then its argument prototype would still apply.  */
     14041#ifdef __cplusplus
     14042extern "C"
     14043#endif
     14044char $ac_func ();
     14045/* The GNU C library defines this for functions which it implements
     14046    to always fail with ENOSYS.  Some functions are actually named
     14047    something starting with __ and the normal name is an alias.  */
     14048#if defined __stub_$ac_func || defined __stub___$ac_func
     14049choke me
     14050#endif
     14051
     14052int
     14053main ()
     14054{
     14055return $ac_func ();
     14056  ;
     14057  return 0;
     14058}
     14059_ACEOF
     14060rm -f conftest.$ac_objext conftest$ac_exeext
     14061if { (ac_try="$ac_link"
     14062case "(($ac_try" in
     14063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14064  *) ac_try_echo=$ac_try;;
     14065esac
     14066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14067$as_echo "$ac_try_echo") >&5
     14068  (eval "$ac_link") 2>conftest.er1
     14069  ac_status=$?
     14070  grep -v '^ *+' conftest.er1 >conftest.err
     14071  rm -f conftest.er1
     14072  cat conftest.err >&5
     14073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14074  (exit $ac_status); } && {
     14075         test -z "$ac_cxx_werror_flag" ||
     14076         test ! -s conftest.err
     14077       } && test -s conftest$ac_exeext && {
     14078         test "$cross_compiling" = yes ||
     14079         $as_test_x conftest$ac_exeext
     14080       }; then
     14081  eval "$as_ac_var=yes"
     14082else
     14083  $as_echo "$as_me: failed program was:" >&5
     14084sed 's/^/| /' conftest.$ac_ext >&5
     14085
     14086        eval "$as_ac_var=no"
     14087fi
     14088
     14089rm -rf conftest.dSYM
     14090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14091      conftest$ac_exeext conftest.$ac_ext
     14092fi
     14093ac_res=`eval 'as_val=${'$as_ac_var'}
     14094                 $as_echo "$as_val"'`
     14095               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14096$as_echo "$ac_res" >&6; }
     14097as_val=`eval 'as_val=${'$as_ac_var'}
     14098                 $as_echo "$as_val"'`
     14099   if test "x$as_val" = x""yes; then
     14100  cat >>confdefs.h <<_ACEOF
     14101#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14102_ACEOF
     14103
     14104fi
     14105done
     14106
     14107
     14108for ac_func in avio_close
     14109do
     14110as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14111{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14112$as_echo_n "checking for $ac_func... " >&6; }
     14113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14114  $as_echo_n "(cached) " >&6
     14115else
     14116  cat >conftest.$ac_ext <<_ACEOF
     14117/* confdefs.h.  */
     14118_ACEOF
     14119cat confdefs.h >>conftest.$ac_ext
     14120cat >>conftest.$ac_ext <<_ACEOF
     14121/* end confdefs.h.  */
     14122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14124#define $ac_func innocuous_$ac_func
     14125
     14126/* System header to define __stub macros and hopefully few prototypes,
     14127    which can conflict with char $ac_func (); below.
     14128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14129    <limits.h> exists even on freestanding compilers.  */
     14130
     14131#ifdef __STDC__
     14132# include <limits.h>
     14133#else
     14134# include <assert.h>
     14135#endif
     14136
     14137#undef $ac_func
     14138
     14139/* Override any GCC internal prototype to avoid an error.
     14140   Use char because int might match the return type of a GCC
     14141   builtin and then its argument prototype would still apply.  */
     14142#ifdef __cplusplus
     14143extern "C"
     14144#endif
     14145char $ac_func ();
     14146/* The GNU C library defines this for functions which it implements
     14147    to always fail with ENOSYS.  Some functions are actually named
     14148    something starting with __ and the normal name is an alias.  */
     14149#if defined __stub_$ac_func || defined __stub___$ac_func
     14150choke me
     14151#endif
     14152
     14153int
     14154main ()
     14155{
     14156return $ac_func ();
     14157  ;
     14158  return 0;
     14159}
     14160_ACEOF
     14161rm -f conftest.$ac_objext conftest$ac_exeext
     14162if { (ac_try="$ac_link"
     14163case "(($ac_try" in
     14164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14165  *) ac_try_echo=$ac_try;;
     14166esac
     14167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14168$as_echo "$ac_try_echo") >&5
     14169  (eval "$ac_link") 2>conftest.er1
     14170  ac_status=$?
     14171  grep -v '^ *+' conftest.er1 >conftest.err
     14172  rm -f conftest.er1
     14173  cat conftest.err >&5
     14174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14175  (exit $ac_status); } && {
     14176         test -z "$ac_cxx_werror_flag" ||
     14177         test ! -s conftest.err
     14178       } && test -s conftest$ac_exeext && {
     14179         test "$cross_compiling" = yes ||
     14180         $as_test_x conftest$ac_exeext
     14181       }; then
     14182  eval "$as_ac_var=yes"
     14183else
     14184  $as_echo "$as_me: failed program was:" >&5
     14185sed 's/^/| /' conftest.$ac_ext >&5
     14186
     14187        eval "$as_ac_var=no"
     14188fi
     14189
     14190rm -rf conftest.dSYM
     14191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14192      conftest$ac_exeext conftest.$ac_ext
     14193fi
     14194ac_res=`eval 'as_val=${'$as_ac_var'}
     14195                 $as_echo "$as_val"'`
     14196               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14197$as_echo "$ac_res" >&6; }
     14198as_val=`eval 'as_val=${'$as_ac_var'}
     14199                 $as_echo "$as_val"'`
     14200   if test "x$as_val" = x""yes; then
     14201  cat >>confdefs.h <<_ACEOF
     14202#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14203_ACEOF
     14204
     14205fi
     14206done
     14207
     14208
     14209for ac_func in url_fclose
     14210do
     14211as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14212{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14213$as_echo_n "checking for $ac_func... " >&6; }
     14214if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14215  $as_echo_n "(cached) " >&6
     14216else
     14217  cat >conftest.$ac_ext <<_ACEOF
     14218/* confdefs.h.  */
     14219_ACEOF
     14220cat confdefs.h >>conftest.$ac_ext
     14221cat >>conftest.$ac_ext <<_ACEOF
     14222/* end confdefs.h.  */
     14223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14224   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14225#define $ac_func innocuous_$ac_func
     14226
     14227/* System header to define __stub macros and hopefully few prototypes,
     14228    which can conflict with char $ac_func (); below.
     14229    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14230    <limits.h> exists even on freestanding compilers.  */
     14231
     14232#ifdef __STDC__
     14233# include <limits.h>
     14234#else
     14235# include <assert.h>
     14236#endif
     14237
     14238#undef $ac_func
     14239
     14240/* Override any GCC internal prototype to avoid an error.
     14241   Use char because int might match the return type of a GCC
     14242   builtin and then its argument prototype would still apply.  */
     14243#ifdef __cplusplus
     14244extern "C"
     14245#endif
     14246char $ac_func ();
     14247/* The GNU C library defines this for functions which it implements
     14248    to always fail with ENOSYS.  Some functions are actually named
     14249    something starting with __ and the normal name is an alias.  */
     14250#if defined __stub_$ac_func || defined __stub___$ac_func
     14251choke me
     14252#endif
     14253
     14254int
     14255main ()
     14256{
     14257return $ac_func ();
     14258  ;
     14259  return 0;
     14260}
     14261_ACEOF
     14262rm -f conftest.$ac_objext conftest$ac_exeext
     14263if { (ac_try="$ac_link"
     14264case "(($ac_try" in
     14265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14266  *) ac_try_echo=$ac_try;;
     14267esac
     14268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14269$as_echo "$ac_try_echo") >&5
     14270  (eval "$ac_link") 2>conftest.er1
     14271  ac_status=$?
     14272  grep -v '^ *+' conftest.er1 >conftest.err
     14273  rm -f conftest.er1
     14274  cat conftest.err >&5
     14275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14276  (exit $ac_status); } && {
     14277         test -z "$ac_cxx_werror_flag" ||
     14278         test ! -s conftest.err
     14279       } && test -s conftest$ac_exeext && {
     14280         test "$cross_compiling" = yes ||
     14281         $as_test_x conftest$ac_exeext
     14282       }; then
     14283  eval "$as_ac_var=yes"
     14284else
     14285  $as_echo "$as_me: failed program was:" >&5
     14286sed 's/^/| /' conftest.$ac_ext >&5
     14287
     14288        eval "$as_ac_var=no"
     14289fi
     14290
     14291rm -rf conftest.dSYM
     14292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14293      conftest$ac_exeext conftest.$ac_ext
     14294fi
     14295ac_res=`eval 'as_val=${'$as_ac_var'}
     14296                 $as_echo "$as_val"'`
     14297               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14298$as_echo "$ac_res" >&6; }
     14299as_val=`eval 'as_val=${'$as_ac_var'}
     14300                 $as_echo "$as_val"'`
     14301   if test "x$as_val" = x""yes; then
     14302  cat >>confdefs.h <<_ACEOF
     14303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14304_ACEOF
     14305
     14306fi
     14307done
     14308
     14309
     14310for ac_func in avformat_alloc_context
     14311do
     14312as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14313{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14314$as_echo_n "checking for $ac_func... " >&6; }
     14315if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14316  $as_echo_n "(cached) " >&6
     14317else
     14318  cat >conftest.$ac_ext <<_ACEOF
     14319/* confdefs.h.  */
     14320_ACEOF
     14321cat confdefs.h >>conftest.$ac_ext
     14322cat >>conftest.$ac_ext <<_ACEOF
     14323/* end confdefs.h.  */
     14324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14325   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14326#define $ac_func innocuous_$ac_func
     14327
     14328/* System header to define __stub macros and hopefully few prototypes,
     14329    which can conflict with char $ac_func (); below.
     14330    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14331    <limits.h> exists even on freestanding compilers.  */
     14332
     14333#ifdef __STDC__
     14334# include <limits.h>
     14335#else
     14336# include <assert.h>
     14337#endif
     14338
     14339#undef $ac_func
     14340
     14341/* Override any GCC internal prototype to avoid an error.
     14342   Use char because int might match the return type of a GCC
     14343   builtin and then its argument prototype would still apply.  */
     14344#ifdef __cplusplus
     14345extern "C"
     14346#endif
     14347char $ac_func ();
     14348/* The GNU C library defines this for functions which it implements
     14349    to always fail with ENOSYS.  Some functions are actually named
     14350    something starting with __ and the normal name is an alias.  */
     14351#if defined __stub_$ac_func || defined __stub___$ac_func
     14352choke me
     14353#endif
     14354
     14355int
     14356main ()
     14357{
     14358return $ac_func ();
     14359  ;
     14360  return 0;
     14361}
     14362_ACEOF
     14363rm -f conftest.$ac_objext conftest$ac_exeext
     14364if { (ac_try="$ac_link"
     14365case "(($ac_try" in
     14366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14367  *) ac_try_echo=$ac_try;;
     14368esac
     14369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14370$as_echo "$ac_try_echo") >&5
     14371  (eval "$ac_link") 2>conftest.er1
     14372  ac_status=$?
     14373  grep -v '^ *+' conftest.er1 >conftest.err
     14374  rm -f conftest.er1
     14375  cat conftest.err >&5
     14376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14377  (exit $ac_status); } && {
     14378         test -z "$ac_cxx_werror_flag" ||
     14379         test ! -s conftest.err
     14380       } && test -s conftest$ac_exeext && {
     14381         test "$cross_compiling" = yes ||
     14382         $as_test_x conftest$ac_exeext
     14383       }; then
     14384  eval "$as_ac_var=yes"
     14385else
     14386  $as_echo "$as_me: failed program was:" >&5
     14387sed 's/^/| /' conftest.$ac_ext >&5
     14388
     14389        eval "$as_ac_var=no"
     14390fi
     14391
     14392rm -rf conftest.dSYM
     14393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14394      conftest$ac_exeext conftest.$ac_ext
     14395fi
     14396ac_res=`eval 'as_val=${'$as_ac_var'}
     14397                 $as_echo "$as_val"'`
     14398               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14399$as_echo "$ac_res" >&6; }
     14400as_val=`eval 'as_val=${'$as_ac_var'}
     14401                 $as_echo "$as_val"'`
     14402   if test "x$as_val" = x""yes; then
     14403  cat >>confdefs.h <<_ACEOF
     14404#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14405_ACEOF
     14406
     14407fi
     14408done
     14409
     14410
     14411for ac_func in av_alloc_format_context
     14412do
     14413as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14414{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14415$as_echo_n "checking for $ac_func... " >&6; }
     14416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14417  $as_echo_n "(cached) " >&6
     14418else
     14419  cat >conftest.$ac_ext <<_ACEOF
     14420/* confdefs.h.  */
     14421_ACEOF
     14422cat confdefs.h >>conftest.$ac_ext
     14423cat >>conftest.$ac_ext <<_ACEOF
     14424/* end confdefs.h.  */
     14425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14426   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14427#define $ac_func innocuous_$ac_func
     14428
     14429/* System header to define __stub macros and hopefully few prototypes,
     14430    which can conflict with char $ac_func (); below.
     14431    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14432    <limits.h> exists even on freestanding compilers.  */
     14433
     14434#ifdef __STDC__
     14435# include <limits.h>
     14436#else
     14437# include <assert.h>
     14438#endif
     14439
     14440#undef $ac_func
     14441
     14442/* Override any GCC internal prototype to avoid an error.
     14443   Use char because int might match the return type of a GCC
     14444   builtin and then its argument prototype would still apply.  */
     14445#ifdef __cplusplus
     14446extern "C"
     14447#endif
     14448char $ac_func ();
     14449/* The GNU C library defines this for functions which it implements
     14450    to always fail with ENOSYS.  Some functions are actually named
     14451    something starting with __ and the normal name is an alias.  */
     14452#if defined __stub_$ac_func || defined __stub___$ac_func
     14453choke me
     14454#endif
     14455
     14456int
     14457main ()
     14458{
     14459return $ac_func ();
     14460  ;
     14461  return 0;
     14462}
     14463_ACEOF
     14464rm -f conftest.$ac_objext conftest$ac_exeext
     14465if { (ac_try="$ac_link"
     14466case "(($ac_try" in
     14467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14468  *) ac_try_echo=$ac_try;;
     14469esac
     14470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14471$as_echo "$ac_try_echo") >&5
     14472  (eval "$ac_link") 2>conftest.er1
     14473  ac_status=$?
     14474  grep -v '^ *+' conftest.er1 >conftest.err
     14475  rm -f conftest.er1
     14476  cat conftest.err >&5
     14477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14478  (exit $ac_status); } && {
     14479         test -z "$ac_cxx_werror_flag" ||
     14480         test ! -s conftest.err
     14481       } && test -s conftest$ac_exeext && {
     14482         test "$cross_compiling" = yes ||
     14483         $as_test_x conftest$ac_exeext
     14484       }; then
     14485  eval "$as_ac_var=yes"
     14486else
     14487  $as_echo "$as_me: failed program was:" >&5
     14488sed 's/^/| /' conftest.$ac_ext >&5
     14489
     14490        eval "$as_ac_var=no"
     14491fi
     14492
     14493rm -rf conftest.dSYM
     14494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14495      conftest$ac_exeext conftest.$ac_ext
     14496fi
     14497ac_res=`eval 'as_val=${'$as_ac_var'}
     14498                 $as_echo "$as_val"'`
     14499               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14500$as_echo "$ac_res" >&6; }
     14501as_val=`eval 'as_val=${'$as_ac_var'}
     14502                 $as_echo "$as_val"'`
     14503   if test "x$as_val" = x""yes; then
     14504  cat >>confdefs.h <<_ACEOF
     14505#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14506_ACEOF
     14507
     14508fi
     14509done
     14510
     14511
     14512for ac_func in av_set_parameters
     14513do
     14514as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14515{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14516$as_echo_n "checking for $ac_func... " >&6; }
     14517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14518  $as_echo_n "(cached) " >&6
     14519else
     14520  cat >conftest.$ac_ext <<_ACEOF
     14521/* confdefs.h.  */
     14522_ACEOF
     14523cat confdefs.h >>conftest.$ac_ext
     14524cat >>conftest.$ac_ext <<_ACEOF
     14525/* end confdefs.h.  */
     14526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14527   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14528#define $ac_func innocuous_$ac_func
     14529
     14530/* System header to define __stub macros and hopefully few prototypes,
     14531    which can conflict with char $ac_func (); below.
     14532    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14533    <limits.h> exists even on freestanding compilers.  */
     14534
     14535#ifdef __STDC__
     14536# include <limits.h>
     14537#else
     14538# include <assert.h>
     14539#endif
     14540
     14541#undef $ac_func
     14542
     14543/* Override any GCC internal prototype to avoid an error.
     14544   Use char because int might match the return type of a GCC
     14545   builtin and then its argument prototype would still apply.  */
     14546#ifdef __cplusplus
     14547extern "C"
     14548#endif
     14549char $ac_func ();
     14550/* The GNU C library defines this for functions which it implements
     14551    to always fail with ENOSYS.  Some functions are actually named
     14552    something starting with __ and the normal name is an alias.  */
     14553#if defined __stub_$ac_func || defined __stub___$ac_func
     14554choke me
     14555#endif
     14556
     14557int
     14558main ()
     14559{
     14560return $ac_func ();
     14561  ;
     14562  return 0;
     14563}
     14564_ACEOF
     14565rm -f conftest.$ac_objext conftest$ac_exeext
     14566if { (ac_try="$ac_link"
     14567case "(($ac_try" in
     14568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14569  *) ac_try_echo=$ac_try;;
     14570esac
     14571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14572$as_echo "$ac_try_echo") >&5
     14573  (eval "$ac_link") 2>conftest.er1
     14574  ac_status=$?
     14575  grep -v '^ *+' conftest.er1 >conftest.err
     14576  rm -f conftest.er1
     14577  cat conftest.err >&5
     14578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14579  (exit $ac_status); } && {
     14580         test -z "$ac_cxx_werror_flag" ||
     14581         test ! -s conftest.err
     14582       } && test -s conftest$ac_exeext && {
     14583         test "$cross_compiling" = yes ||
     14584         $as_test_x conftest$ac_exeext
     14585       }; then
     14586  eval "$as_ac_var=yes"
     14587else
     14588  $as_echo "$as_me: failed program was:" >&5
     14589sed 's/^/| /' conftest.$ac_ext >&5
     14590
     14591        eval "$as_ac_var=no"
     14592fi
     14593
     14594rm -rf conftest.dSYM
     14595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14596      conftest$ac_exeext conftest.$ac_ext
     14597fi
     14598ac_res=`eval 'as_val=${'$as_ac_var'}
     14599                 $as_echo "$as_val"'`
     14600               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14601$as_echo "$ac_res" >&6; }
     14602as_val=`eval 'as_val=${'$as_ac_var'}
     14603                 $as_echo "$as_val"'`
     14604   if test "x$as_val" = x""yes; then
     14605  cat >>confdefs.h <<_ACEOF
     14606#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14607_ACEOF
     14608
     14609fi
     14610done
     14611
     14612
     14613for ac_func in avformat_write_header
     14614do
     14615as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14616{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14617$as_echo_n "checking for $ac_func... " >&6; }
     14618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14619  $as_echo_n "(cached) " >&6
     14620else
     14621  cat >conftest.$ac_ext <<_ACEOF
     14622/* confdefs.h.  */
     14623_ACEOF
     14624cat confdefs.h >>conftest.$ac_ext
     14625cat >>conftest.$ac_ext <<_ACEOF
     14626/* end confdefs.h.  */
     14627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14628   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14629#define $ac_func innocuous_$ac_func
     14630
     14631/* System header to define __stub macros and hopefully few prototypes,
     14632    which can conflict with char $ac_func (); below.
     14633    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14634    <limits.h> exists even on freestanding compilers.  */
     14635
     14636#ifdef __STDC__
     14637# include <limits.h>
     14638#else
     14639# include <assert.h>
     14640#endif
     14641
     14642#undef $ac_func
     14643
     14644/* Override any GCC internal prototype to avoid an error.
     14645   Use char because int might match the return type of a GCC
     14646   builtin and then its argument prototype would still apply.  */
     14647#ifdef __cplusplus
     14648extern "C"
     14649#endif
     14650char $ac_func ();
     14651/* The GNU C library defines this for functions which it implements
     14652    to always fail with ENOSYS.  Some functions are actually named
     14653    something starting with __ and the normal name is an alias.  */
     14654#if defined __stub_$ac_func || defined __stub___$ac_func
     14655choke me
     14656#endif
     14657
     14658int
     14659main ()
     14660{
     14661return $ac_func ();
     14662  ;
     14663  return 0;
     14664}
     14665_ACEOF
     14666rm -f conftest.$ac_objext conftest$ac_exeext
     14667if { (ac_try="$ac_link"
     14668case "(($ac_try" in
     14669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14670  *) ac_try_echo=$ac_try;;
     14671esac
     14672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14673$as_echo "$ac_try_echo") >&5
     14674  (eval "$ac_link") 2>conftest.er1
     14675  ac_status=$?
     14676  grep -v '^ *+' conftest.er1 >conftest.err
     14677  rm -f conftest.er1
     14678  cat conftest.err >&5
     14679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14680  (exit $ac_status); } && {
     14681         test -z "$ac_cxx_werror_flag" ||
     14682         test ! -s conftest.err
     14683       } && test -s conftest$ac_exeext && {
     14684         test "$cross_compiling" = yes ||
     14685         $as_test_x conftest$ac_exeext
     14686       }; then
     14687  eval "$as_ac_var=yes"
     14688else
     14689  $as_echo "$as_me: failed program was:" >&5
     14690sed 's/^/| /' conftest.$ac_ext >&5
     14691
     14692        eval "$as_ac_var=no"
     14693fi
     14694
     14695rm -rf conftest.dSYM
     14696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14697      conftest$ac_exeext conftest.$ac_ext
     14698fi
     14699ac_res=`eval 'as_val=${'$as_ac_var'}
     14700                 $as_echo "$as_val"'`
     14701               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14702$as_echo "$ac_res" >&6; }
     14703as_val=`eval 'as_val=${'$as_ac_var'}
     14704                 $as_echo "$as_val"'`
     14705   if test "x$as_val" = x""yes; then
     14706  cat >>confdefs.h <<_ACEOF
     14707#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14708_ACEOF
     14709
     14710fi
     14711done
     14712
     14713
     14714for ac_func in av_write_header
     14715do
     14716as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     14717{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     14718$as_echo_n "checking for $ac_func... " >&6; }
     14719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     14720  $as_echo_n "(cached) " >&6
     14721else
     14722  cat >conftest.$ac_ext <<_ACEOF
     14723/* confdefs.h.  */
     14724_ACEOF
     14725cat confdefs.h >>conftest.$ac_ext
     14726cat >>conftest.$ac_ext <<_ACEOF
     14727/* end confdefs.h.  */
     14728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     14729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14730#define $ac_func innocuous_$ac_func
     14731
     14732/* System header to define __stub macros and hopefully few prototypes,
     14733    which can conflict with char $ac_func (); below.
     14734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14735    <limits.h> exists even on freestanding compilers.  */
     14736
     14737#ifdef __STDC__
     14738# include <limits.h>
     14739#else
     14740# include <assert.h>
     14741#endif
     14742
     14743#undef $ac_func
     14744
     14745/* Override any GCC internal prototype to avoid an error.
     14746   Use char because int might match the return type of a GCC
     14747   builtin and then its argument prototype would still apply.  */
     14748#ifdef __cplusplus
     14749extern "C"
     14750#endif
     14751char $ac_func ();
     14752/* The GNU C library defines this for functions which it implements
     14753    to always fail with ENOSYS.  Some functions are actually named
     14754    something starting with __ and the normal name is an alias.  */
     14755#if defined __stub_$ac_func || defined __stub___$ac_func
     14756choke me
     14757#endif
     14758
     14759int
     14760main ()
     14761{
     14762return $ac_func ();
     14763  ;
     14764  return 0;
     14765}
     14766_ACEOF
     14767rm -f conftest.$ac_objext conftest$ac_exeext
     14768if { (ac_try="$ac_link"
     14769case "(($ac_try" in
     14770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14771  *) ac_try_echo=$ac_try;;
     14772esac
     14773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14774$as_echo "$ac_try_echo") >&5
     14775  (eval "$ac_link") 2>conftest.er1
     14776  ac_status=$?
     14777  grep -v '^ *+' conftest.er1 >conftest.err
     14778  rm -f conftest.er1
     14779  cat conftest.err >&5
     14780  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14781  (exit $ac_status); } && {
     14782         test -z "$ac_cxx_werror_flag" ||
     14783         test ! -s conftest.err
     14784       } && test -s conftest$ac_exeext && {
     14785         test "$cross_compiling" = yes ||
     14786         $as_test_x conftest$ac_exeext
     14787       }; then
     14788  eval "$as_ac_var=yes"
     14789else
     14790  $as_echo "$as_me: failed program was:" >&5
     14791sed 's/^/| /' conftest.$ac_ext >&5
     14792
     14793        eval "$as_ac_var=no"
     14794fi
     14795
     14796rm -rf conftest.dSYM
     14797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14798      conftest$ac_exeext conftest.$ac_ext
     14799fi
     14800ac_res=`eval 'as_val=${'$as_ac_var'}
     14801                 $as_echo "$as_val"'`
     14802               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     14803$as_echo "$ac_res" >&6; }
     14804as_val=`eval 'as_val=${'$as_ac_var'}
     14805                 $as_echo "$as_val"'`
     14806   if test "x$as_val" = x""yes; then
     14807  cat >>confdefs.h <<_ACEOF
     14808#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     14809_ACEOF
     14810
     14811fi
     14812done
     14813
     14814{ $as_echo "$as_me:$LINENO: checking for av_write_trailer" >&5
     14815$as_echo_n "checking for av_write_trailer... " >&6; }
     14816if test "${ac_cv_func_av_write_trailer+set}" = set; then
     14817  $as_echo_n "(cached) " >&6
     14818else
     14819  cat >conftest.$ac_ext <<_ACEOF
     14820/* confdefs.h.  */
     14821_ACEOF
     14822cat confdefs.h >>conftest.$ac_ext
     14823cat >>conftest.$ac_ext <<_ACEOF
     14824/* end confdefs.h.  */
     14825/* Define av_write_trailer to an innocuous variant, in case <limits.h> declares av_write_trailer.
     14826   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14827#define av_write_trailer innocuous_av_write_trailer
     14828
     14829/* System header to define __stub macros and hopefully few prototypes,
     14830    which can conflict with char av_write_trailer (); below.
     14831    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14832    <limits.h> exists even on freestanding compilers.  */
     14833
     14834#ifdef __STDC__
     14835# include <limits.h>
     14836#else
     14837# include <assert.h>
     14838#endif
     14839
     14840#undef av_write_trailer
     14841
     14842/* Override any GCC internal prototype to avoid an error.
     14843   Use char because int might match the return type of a GCC
     14844   builtin and then its argument prototype would still apply.  */
     14845#ifdef __cplusplus
     14846extern "C"
     14847#endif
     14848char av_write_trailer ();
     14849/* The GNU C library defines this for functions which it implements
     14850    to always fail with ENOSYS.  Some functions are actually named
     14851    something starting with __ and the normal name is an alias.  */
     14852#if defined __stub_av_write_trailer || defined __stub___av_write_trailer
     14853choke me
     14854#endif
     14855
     14856int
     14857main ()
     14858{
     14859return av_write_trailer ();
     14860  ;
     14861  return 0;
     14862}
     14863_ACEOF
     14864rm -f conftest.$ac_objext conftest$ac_exeext
     14865if { (ac_try="$ac_link"
     14866case "(($ac_try" in
     14867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14868  *) ac_try_echo=$ac_try;;
     14869esac
     14870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14871$as_echo "$ac_try_echo") >&5
     14872  (eval "$ac_link") 2>conftest.er1
     14873  ac_status=$?
     14874  grep -v '^ *+' conftest.er1 >conftest.err
     14875  rm -f conftest.er1
     14876  cat conftest.err >&5
     14877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14878  (exit $ac_status); } && {
     14879         test -z "$ac_cxx_werror_flag" ||
     14880         test ! -s conftest.err
     14881       } && test -s conftest$ac_exeext && {
     14882         test "$cross_compiling" = yes ||
     14883         $as_test_x conftest$ac_exeext
     14884       }; then
     14885  ac_cv_func_av_write_trailer=yes
     14886else
     14887  $as_echo "$as_me: failed program was:" >&5
     14888sed 's/^/| /' conftest.$ac_ext >&5
     14889
     14890        ac_cv_func_av_write_trailer=no
     14891fi
     14892
     14893rm -rf conftest.dSYM
     14894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14895      conftest$ac_exeext conftest.$ac_ext
     14896fi
     14897{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_trailer" >&5
     14898$as_echo "$ac_cv_func_av_write_trailer" >&6; }
     14899if test "x$ac_cv_func_av_write_trailer" = x""yes; then
     14900  :
     14901else
     14902  { { $as_echo "$as_me:$LINENO: error: oops! no av_write_trailer?!?" >&5
     14903$as_echo "$as_me: error: oops! no av_write_trailer?!?" >&2;}
     14904   { (exit 1); exit 1; }; }
     14905fi
     14906
     14907{ $as_echo "$as_me:$LINENO: checking for av_freep" >&5
     14908$as_echo_n "checking for av_freep... " >&6; }
     14909if test "${ac_cv_func_av_freep+set}" = set; then
     14910  $as_echo_n "(cached) " >&6
     14911else
     14912  cat >conftest.$ac_ext <<_ACEOF
     14913/* confdefs.h.  */
     14914_ACEOF
     14915cat confdefs.h >>conftest.$ac_ext
     14916cat >>conftest.$ac_ext <<_ACEOF
     14917/* end confdefs.h.  */
     14918/* Define av_freep to an innocuous variant, in case <limits.h> declares av_freep.
     14919   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     14920#define av_freep innocuous_av_freep
     14921
     14922/* System header to define __stub macros and hopefully few prototypes,
     14923    which can conflict with char av_freep (); below.
     14924    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     14925    <limits.h> exists even on freestanding compilers.  */
     14926
     14927#ifdef __STDC__
     14928# include <limits.h>
     14929#else
     14930# include <assert.h>
     14931#endif
     14932
     14933#undef av_freep
     14934
     14935/* Override any GCC internal prototype to avoid an error.
     14936   Use char because int might match the return type of a GCC
     14937   builtin and then its argument prototype would still apply.  */
     14938#ifdef __cplusplus
     14939extern "C"
     14940#endif
     14941char av_freep ();
     14942/* The GNU C library defines this for functions which it implements
     14943    to always fail with ENOSYS.  Some functions are actually named
     14944    something starting with __ and the normal name is an alias.  */
     14945#if defined __stub_av_freep || defined __stub___av_freep
     14946choke me
     14947#endif
     14948
     14949int
     14950main ()
     14951{
     14952return av_freep ();
     14953  ;
     14954  return 0;
     14955}
     14956_ACEOF
     14957rm -f conftest.$ac_objext conftest$ac_exeext
     14958if { (ac_try="$ac_link"
     14959case "(($ac_try" in
     14960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     14961  *) ac_try_echo=$ac_try;;
     14962esac
     14963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     14964$as_echo "$ac_try_echo") >&5
     14965  (eval "$ac_link") 2>conftest.er1
     14966  ac_status=$?
     14967  grep -v '^ *+' conftest.er1 >conftest.err
     14968  rm -f conftest.er1
     14969  cat conftest.err >&5
     14970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     14971  (exit $ac_status); } && {
     14972         test -z "$ac_cxx_werror_flag" ||
     14973         test ! -s conftest.err
     14974       } && test -s conftest$ac_exeext && {
     14975         test "$cross_compiling" = yes ||
     14976         $as_test_x conftest$ac_exeext
     14977       }; then
     14978  ac_cv_func_av_freep=yes
     14979else
     14980  $as_echo "$as_me: failed program was:" >&5
     14981sed 's/^/| /' conftest.$ac_ext >&5
     14982
     14983        ac_cv_func_av_freep=no
     14984fi
     14985
     14986rm -rf conftest.dSYM
     14987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     14988      conftest$ac_exeext conftest.$ac_ext
     14989fi
     14990{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_freep" >&5
     14991$as_echo "$ac_cv_func_av_freep" >&6; }
     14992if test "x$ac_cv_func_av_freep" = x""yes; then
     14993  :
     14994else
     14995  { { $as_echo "$as_me:$LINENO: error: oops! no av_freep ?!?" >&5
     14996$as_echo "$as_me: error: oops! no av_freep ?!?" >&2;}
     14997   { (exit 1); exit 1; }; }
     14998fi
     14999
     15000{ $as_echo "$as_me:$LINENO: checking for av_free" >&5
     15001$as_echo_n "checking for av_free... " >&6; }
     15002if test "${ac_cv_func_av_free+set}" = set; then
     15003  $as_echo_n "(cached) " >&6
     15004else
     15005  cat >conftest.$ac_ext <<_ACEOF
     15006/* confdefs.h.  */
     15007_ACEOF
     15008cat confdefs.h >>conftest.$ac_ext
     15009cat >>conftest.$ac_ext <<_ACEOF
     15010/* end confdefs.h.  */
     15011/* Define av_free to an innocuous variant, in case <limits.h> declares av_free.
     15012   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15013#define av_free innocuous_av_free
     15014
     15015/* System header to define __stub macros and hopefully few prototypes,
     15016    which can conflict with char av_free (); below.
     15017    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15018    <limits.h> exists even on freestanding compilers.  */
     15019
     15020#ifdef __STDC__
     15021# include <limits.h>
     15022#else
     15023# include <assert.h>
     15024#endif
     15025
     15026#undef av_free
     15027
     15028/* Override any GCC internal prototype to avoid an error.
     15029   Use char because int might match the return type of a GCC
     15030   builtin and then its argument prototype would still apply.  */
     15031#ifdef __cplusplus
     15032extern "C"
     15033#endif
     15034char av_free ();
     15035/* The GNU C library defines this for functions which it implements
     15036    to always fail with ENOSYS.  Some functions are actually named
     15037    something starting with __ and the normal name is an alias.  */
     15038#if defined __stub_av_free || defined __stub___av_free
     15039choke me
     15040#endif
     15041
     15042int
     15043main ()
     15044{
     15045return av_free ();
     15046  ;
     15047  return 0;
     15048}
     15049_ACEOF
     15050rm -f conftest.$ac_objext conftest$ac_exeext
     15051if { (ac_try="$ac_link"
     15052case "(($ac_try" in
     15053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15054  *) ac_try_echo=$ac_try;;
     15055esac
     15056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15057$as_echo "$ac_try_echo") >&5
     15058  (eval "$ac_link") 2>conftest.er1
     15059  ac_status=$?
     15060  grep -v '^ *+' conftest.er1 >conftest.err
     15061  rm -f conftest.er1
     15062  cat conftest.err >&5
     15063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15064  (exit $ac_status); } && {
     15065         test -z "$ac_cxx_werror_flag" ||
     15066         test ! -s conftest.err
     15067       } && test -s conftest$ac_exeext && {
     15068         test "$cross_compiling" = yes ||
     15069         $as_test_x conftest$ac_exeext
     15070       }; then
     15071  ac_cv_func_av_free=yes
     15072else
     15073  $as_echo "$as_me: failed program was:" >&5
     15074sed 's/^/| /' conftest.$ac_ext >&5
     15075
     15076        ac_cv_func_av_free=no
     15077fi
     15078
     15079rm -rf conftest.dSYM
     15080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15081      conftest$ac_exeext conftest.$ac_ext
     15082fi
     15083{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_free" >&5
     15084$as_echo "$ac_cv_func_av_free" >&6; }
     15085if test "x$ac_cv_func_av_free" = x""yes; then
     15086  :
     15087else
     15088  { { $as_echo "$as_me:$LINENO: error: oops! no av_free ?!?" >&5
     15089$as_echo "$as_me: error: oops! no av_free ?!?" >&2;}
     15090   { (exit 1); exit 1; }; }
     15091fi
     15092
     15093{ $as_echo "$as_me:$LINENO: checking for av_new_stream" >&5
     15094$as_echo_n "checking for av_new_stream... " >&6; }
     15095if test "${ac_cv_func_av_new_stream+set}" = set; then
     15096  $as_echo_n "(cached) " >&6
     15097else
     15098  cat >conftest.$ac_ext <<_ACEOF
     15099/* confdefs.h.  */
     15100_ACEOF
     15101cat confdefs.h >>conftest.$ac_ext
     15102cat >>conftest.$ac_ext <<_ACEOF
     15103/* end confdefs.h.  */
     15104/* Define av_new_stream to an innocuous variant, in case <limits.h> declares av_new_stream.
     15105   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15106#define av_new_stream innocuous_av_new_stream
     15107
     15108/* System header to define __stub macros and hopefully few prototypes,
     15109    which can conflict with char av_new_stream (); below.
     15110    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15111    <limits.h> exists even on freestanding compilers.  */
     15112
     15113#ifdef __STDC__
     15114# include <limits.h>
     15115#else
     15116# include <assert.h>
     15117#endif
     15118
     15119#undef av_new_stream
     15120
     15121/* Override any GCC internal prototype to avoid an error.
     15122   Use char because int might match the return type of a GCC
     15123   builtin and then its argument prototype would still apply.  */
     15124#ifdef __cplusplus
     15125extern "C"
     15126#endif
     15127char av_new_stream ();
     15128/* The GNU C library defines this for functions which it implements
     15129    to always fail with ENOSYS.  Some functions are actually named
     15130    something starting with __ and the normal name is an alias.  */
     15131#if defined __stub_av_new_stream || defined __stub___av_new_stream
     15132choke me
     15133#endif
     15134
     15135int
     15136main ()
     15137{
     15138return av_new_stream ();
     15139  ;
     15140  return 0;
     15141}
     15142_ACEOF
     15143rm -f conftest.$ac_objext conftest$ac_exeext
     15144if { (ac_try="$ac_link"
     15145case "(($ac_try" in
     15146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15147  *) ac_try_echo=$ac_try;;
     15148esac
     15149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15150$as_echo "$ac_try_echo") >&5
     15151  (eval "$ac_link") 2>conftest.er1
     15152  ac_status=$?
     15153  grep -v '^ *+' conftest.er1 >conftest.err
     15154  rm -f conftest.er1
     15155  cat conftest.err >&5
     15156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15157  (exit $ac_status); } && {
     15158         test -z "$ac_cxx_werror_flag" ||
     15159         test ! -s conftest.err
     15160       } && test -s conftest$ac_exeext && {
     15161         test "$cross_compiling" = yes ||
     15162         $as_test_x conftest$ac_exeext
     15163       }; then
     15164  ac_cv_func_av_new_stream=yes
     15165else
     15166  $as_echo "$as_me: failed program was:" >&5
     15167sed 's/^/| /' conftest.$ac_ext >&5
     15168
     15169        ac_cv_func_av_new_stream=no
     15170fi
     15171
     15172rm -rf conftest.dSYM
     15173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15174      conftest$ac_exeext conftest.$ac_ext
     15175fi
     15176{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_new_stream" >&5
     15177$as_echo "$ac_cv_func_av_new_stream" >&6; }
     15178if test "x$ac_cv_func_av_new_stream" = x""yes; then
     15179  :
     15180else
     15181  { { $as_echo "$as_me:$LINENO: error: oops! av_new_stream ?!?" >&5
     15182$as_echo "$as_me: error: oops! av_new_stream ?!?" >&2;}
     15183   { (exit 1); exit 1; }; }
     15184fi
     15185
     15186{ $as_echo "$as_me:$LINENO: checking for av_malloc" >&5
     15187$as_echo_n "checking for av_malloc... " >&6; }
     15188if test "${ac_cv_func_av_malloc+set}" = set; then
     15189  $as_echo_n "(cached) " >&6
     15190else
     15191  cat >conftest.$ac_ext <<_ACEOF
     15192/* confdefs.h.  */
     15193_ACEOF
     15194cat confdefs.h >>conftest.$ac_ext
     15195cat >>conftest.$ac_ext <<_ACEOF
     15196/* end confdefs.h.  */
     15197/* Define av_malloc to an innocuous variant, in case <limits.h> declares av_malloc.
     15198   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15199#define av_malloc innocuous_av_malloc
     15200
     15201/* System header to define __stub macros and hopefully few prototypes,
     15202    which can conflict with char av_malloc (); below.
     15203    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15204    <limits.h> exists even on freestanding compilers.  */
     15205
     15206#ifdef __STDC__
     15207# include <limits.h>
     15208#else
     15209# include <assert.h>
     15210#endif
     15211
     15212#undef av_malloc
     15213
     15214/* Override any GCC internal prototype to avoid an error.
     15215   Use char because int might match the return type of a GCC
     15216   builtin and then its argument prototype would still apply.  */
     15217#ifdef __cplusplus
     15218extern "C"
     15219#endif
     15220char av_malloc ();
     15221/* The GNU C library defines this for functions which it implements
     15222    to always fail with ENOSYS.  Some functions are actually named
     15223    something starting with __ and the normal name is an alias.  */
     15224#if defined __stub_av_malloc || defined __stub___av_malloc
     15225choke me
     15226#endif
     15227
     15228int
     15229main ()
     15230{
     15231return av_malloc ();
     15232  ;
     15233  return 0;
     15234}
     15235_ACEOF
     15236rm -f conftest.$ac_objext conftest$ac_exeext
     15237if { (ac_try="$ac_link"
     15238case "(($ac_try" in
     15239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15240  *) ac_try_echo=$ac_try;;
     15241esac
     15242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15243$as_echo "$ac_try_echo") >&5
     15244  (eval "$ac_link") 2>conftest.er1
     15245  ac_status=$?
     15246  grep -v '^ *+' conftest.er1 >conftest.err
     15247  rm -f conftest.er1
     15248  cat conftest.err >&5
     15249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15250  (exit $ac_status); } && {
     15251         test -z "$ac_cxx_werror_flag" ||
     15252         test ! -s conftest.err
     15253       } && test -s conftest$ac_exeext && {
     15254         test "$cross_compiling" = yes ||
     15255         $as_test_x conftest$ac_exeext
     15256       }; then
     15257  ac_cv_func_av_malloc=yes
     15258else
     15259  $as_echo "$as_me: failed program was:" >&5
     15260sed 's/^/| /' conftest.$ac_ext >&5
     15261
     15262        ac_cv_func_av_malloc=no
     15263fi
     15264
     15265rm -rf conftest.dSYM
     15266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15267      conftest$ac_exeext conftest.$ac_ext
     15268fi
     15269{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_malloc" >&5
     15270$as_echo "$ac_cv_func_av_malloc" >&6; }
     15271if test "x$ac_cv_func_av_malloc" = x""yes; then
     15272  :
     15273else
     15274  { { $as_echo "$as_me:$LINENO: error: oops! no av_malloc ?!?" >&5
     15275$as_echo "$as_me: error: oops! no av_malloc ?!?" >&2;}
     15276   { (exit 1); exit 1; }; }
     15277fi
     15278
     15279{ $as_echo "$as_me:$LINENO: checking for av_init_packet" >&5
     15280$as_echo_n "checking for av_init_packet... " >&6; }
     15281if test "${ac_cv_func_av_init_packet+set}" = set; then
     15282  $as_echo_n "(cached) " >&6
     15283else
     15284  cat >conftest.$ac_ext <<_ACEOF
     15285/* confdefs.h.  */
     15286_ACEOF
     15287cat confdefs.h >>conftest.$ac_ext
     15288cat >>conftest.$ac_ext <<_ACEOF
     15289/* end confdefs.h.  */
     15290/* Define av_init_packet to an innocuous variant, in case <limits.h> declares av_init_packet.
     15291   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15292#define av_init_packet innocuous_av_init_packet
     15293
     15294/* System header to define __stub macros and hopefully few prototypes,
     15295    which can conflict with char av_init_packet (); below.
     15296    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15297    <limits.h> exists even on freestanding compilers.  */
     15298
     15299#ifdef __STDC__
     15300# include <limits.h>
     15301#else
     15302# include <assert.h>
     15303#endif
     15304
     15305#undef av_init_packet
     15306
     15307/* Override any GCC internal prototype to avoid an error.
     15308   Use char because int might match the return type of a GCC
     15309   builtin and then its argument prototype would still apply.  */
     15310#ifdef __cplusplus
     15311extern "C"
     15312#endif
     15313char av_init_packet ();
     15314/* The GNU C library defines this for functions which it implements
     15315    to always fail with ENOSYS.  Some functions are actually named
     15316    something starting with __ and the normal name is an alias.  */
     15317#if defined __stub_av_init_packet || defined __stub___av_init_packet
     15318choke me
     15319#endif
     15320
     15321int
     15322main ()
     15323{
     15324return av_init_packet ();
     15325  ;
     15326  return 0;
     15327}
     15328_ACEOF
     15329rm -f conftest.$ac_objext conftest$ac_exeext
     15330if { (ac_try="$ac_link"
     15331case "(($ac_try" in
     15332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15333  *) ac_try_echo=$ac_try;;
     15334esac
     15335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15336$as_echo "$ac_try_echo") >&5
     15337  (eval "$ac_link") 2>conftest.er1
     15338  ac_status=$?
     15339  grep -v '^ *+' conftest.er1 >conftest.err
     15340  rm -f conftest.er1
     15341  cat conftest.err >&5
     15342  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15343  (exit $ac_status); } && {
     15344         test -z "$ac_cxx_werror_flag" ||
     15345         test ! -s conftest.err
     15346       } && test -s conftest$ac_exeext && {
     15347         test "$cross_compiling" = yes ||
     15348         $as_test_x conftest$ac_exeext
     15349       }; then
     15350  ac_cv_func_av_init_packet=yes
     15351else
     15352  $as_echo "$as_me: failed program was:" >&5
     15353sed 's/^/| /' conftest.$ac_ext >&5
     15354
     15355        ac_cv_func_av_init_packet=no
     15356fi
     15357
     15358rm -rf conftest.dSYM
     15359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15360      conftest$ac_exeext conftest.$ac_ext
     15361fi
     15362{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_init_packet" >&5
     15363$as_echo "$ac_cv_func_av_init_packet" >&6; }
     15364if test "x$ac_cv_func_av_init_packet" = x""yes; then
     15365  :
     15366else
     15367  { { $as_echo "$as_me:$LINENO: error: oops! no av_init_packet ?!?" >&5
     15368$as_echo "$as_me: error: oops! no av_init_packet ?!?" >&2;}
     15369   { (exit 1); exit 1; }; }
     15370fi
     15371
     15372{ $as_echo "$as_me:$LINENO: checking for av_rescale_q" >&5
     15373$as_echo_n "checking for av_rescale_q... " >&6; }
     15374if test "${ac_cv_func_av_rescale_q+set}" = set; then
     15375  $as_echo_n "(cached) " >&6
     15376else
     15377  cat >conftest.$ac_ext <<_ACEOF
     15378/* confdefs.h.  */
     15379_ACEOF
     15380cat confdefs.h >>conftest.$ac_ext
     15381cat >>conftest.$ac_ext <<_ACEOF
     15382/* end confdefs.h.  */
     15383/* Define av_rescale_q to an innocuous variant, in case <limits.h> declares av_rescale_q.
     15384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15385#define av_rescale_q innocuous_av_rescale_q
     15386
     15387/* System header to define __stub macros and hopefully few prototypes,
     15388    which can conflict with char av_rescale_q (); below.
     15389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15390    <limits.h> exists even on freestanding compilers.  */
     15391
     15392#ifdef __STDC__
     15393# include <limits.h>
     15394#else
     15395# include <assert.h>
     15396#endif
     15397
     15398#undef av_rescale_q
     15399
     15400/* Override any GCC internal prototype to avoid an error.
     15401   Use char because int might match the return type of a GCC
     15402   builtin and then its argument prototype would still apply.  */
     15403#ifdef __cplusplus
     15404extern "C"
     15405#endif
     15406char av_rescale_q ();
     15407/* The GNU C library defines this for functions which it implements
     15408    to always fail with ENOSYS.  Some functions are actually named
     15409    something starting with __ and the normal name is an alias.  */
     15410#if defined __stub_av_rescale_q || defined __stub___av_rescale_q
     15411choke me
     15412#endif
     15413
     15414int
     15415main ()
     15416{
     15417return av_rescale_q ();
     15418  ;
     15419  return 0;
     15420}
     15421_ACEOF
     15422rm -f conftest.$ac_objext conftest$ac_exeext
     15423if { (ac_try="$ac_link"
     15424case "(($ac_try" in
     15425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15426  *) ac_try_echo=$ac_try;;
     15427esac
     15428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15429$as_echo "$ac_try_echo") >&5
     15430  (eval "$ac_link") 2>conftest.er1
     15431  ac_status=$?
     15432  grep -v '^ *+' conftest.er1 >conftest.err
     15433  rm -f conftest.er1
     15434  cat conftest.err >&5
     15435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15436  (exit $ac_status); } && {
     15437         test -z "$ac_cxx_werror_flag" ||
     15438         test ! -s conftest.err
     15439       } && test -s conftest$ac_exeext && {
     15440         test "$cross_compiling" = yes ||
     15441         $as_test_x conftest$ac_exeext
     15442       }; then
     15443  ac_cv_func_av_rescale_q=yes
     15444else
     15445  $as_echo "$as_me: failed program was:" >&5
     15446sed 's/^/| /' conftest.$ac_ext >&5
     15447
     15448        ac_cv_func_av_rescale_q=no
     15449fi
     15450
     15451rm -rf conftest.dSYM
     15452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15453      conftest$ac_exeext conftest.$ac_ext
     15454fi
     15455{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_rescale_q" >&5
     15456$as_echo "$ac_cv_func_av_rescale_q" >&6; }
     15457if test "x$ac_cv_func_av_rescale_q" = x""yes; then
     15458  :
     15459else
     15460  { { $as_echo "$as_me:$LINENO: error: oops! no av_rescale_q ?!?" >&5
     15461$as_echo "$as_me: error: oops! no av_rescale_q ?!?" >&2;}
     15462   { (exit 1); exit 1; }; }
     15463fi
     15464
     15465{ $as_echo "$as_me:$LINENO: checking for av_write_frame" >&5
     15466$as_echo_n "checking for av_write_frame... " >&6; }
     15467if test "${ac_cv_func_av_write_frame+set}" = set; then
     15468  $as_echo_n "(cached) " >&6
     15469else
     15470  cat >conftest.$ac_ext <<_ACEOF
     15471/* confdefs.h.  */
     15472_ACEOF
     15473cat confdefs.h >>conftest.$ac_ext
     15474cat >>conftest.$ac_ext <<_ACEOF
     15475/* end confdefs.h.  */
     15476/* Define av_write_frame to an innocuous variant, in case <limits.h> declares av_write_frame.
     15477   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15478#define av_write_frame innocuous_av_write_frame
     15479
     15480/* System header to define __stub macros and hopefully few prototypes,
     15481    which can conflict with char av_write_frame (); below.
     15482    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15483    <limits.h> exists even on freestanding compilers.  */
     15484
     15485#ifdef __STDC__
     15486# include <limits.h>
     15487#else
     15488# include <assert.h>
     15489#endif
     15490
     15491#undef av_write_frame
     15492
     15493/* Override any GCC internal prototype to avoid an error.
     15494   Use char because int might match the return type of a GCC
     15495   builtin and then its argument prototype would still apply.  */
     15496#ifdef __cplusplus
     15497extern "C"
     15498#endif
     15499char av_write_frame ();
     15500/* The GNU C library defines this for functions which it implements
     15501    to always fail with ENOSYS.  Some functions are actually named
     15502    something starting with __ and the normal name is an alias.  */
     15503#if defined __stub_av_write_frame || defined __stub___av_write_frame
     15504choke me
     15505#endif
     15506
     15507int
     15508main ()
     15509{
     15510return av_write_frame ();
     15511  ;
     15512  return 0;
     15513}
     15514_ACEOF
     15515rm -f conftest.$ac_objext conftest$ac_exeext
     15516if { (ac_try="$ac_link"
     15517case "(($ac_try" in
     15518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15519  *) ac_try_echo=$ac_try;;
     15520esac
     15521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15522$as_echo "$ac_try_echo") >&5
     15523  (eval "$ac_link") 2>conftest.er1
     15524  ac_status=$?
     15525  grep -v '^ *+' conftest.er1 >conftest.err
     15526  rm -f conftest.er1
     15527  cat conftest.err >&5
     15528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15529  (exit $ac_status); } && {
     15530         test -z "$ac_cxx_werror_flag" ||
     15531         test ! -s conftest.err
     15532       } && test -s conftest$ac_exeext && {
     15533         test "$cross_compiling" = yes ||
     15534         $as_test_x conftest$ac_exeext
     15535       }; then
     15536  ac_cv_func_av_write_frame=yes
     15537else
     15538  $as_echo "$as_me: failed program was:" >&5
     15539sed 's/^/| /' conftest.$ac_ext >&5
     15540
     15541        ac_cv_func_av_write_frame=no
     15542fi
     15543
     15544rm -rf conftest.dSYM
     15545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15546      conftest$ac_exeext conftest.$ac_ext
     15547fi
     15548{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_frame" >&5
     15549$as_echo "$ac_cv_func_av_write_frame" >&6; }
     15550if test "x$ac_cv_func_av_write_frame" = x""yes; then
     15551  :
     15552else
     15553  { { $as_echo "$as_me:$LINENO: error: oops! av_write_frame ?!?" >&5
     15554$as_echo "$as_me: error: oops! av_write_frame ?!?" >&2;}
     15555   { (exit 1); exit 1; }; }
     15556fi
     15557
     15558
     15559for ac_func in img_convert
     15560do
     15561as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15562{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15563$as_echo_n "checking for $ac_func... " >&6; }
     15564if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15565  $as_echo_n "(cached) " >&6
     15566else
     15567  cat >conftest.$ac_ext <<_ACEOF
     15568/* confdefs.h.  */
     15569_ACEOF
     15570cat confdefs.h >>conftest.$ac_ext
     15571cat >>conftest.$ac_ext <<_ACEOF
     15572/* end confdefs.h.  */
     15573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15574   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15575#define $ac_func innocuous_$ac_func
     15576
     15577/* System header to define __stub macros and hopefully few prototypes,
     15578    which can conflict with char $ac_func (); below.
     15579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15580    <limits.h> exists even on freestanding compilers.  */
     15581
     15582#ifdef __STDC__
     15583# include <limits.h>
     15584#else
     15585# include <assert.h>
     15586#endif
     15587
     15588#undef $ac_func
     15589
     15590/* Override any GCC internal prototype to avoid an error.
     15591   Use char because int might match the return type of a GCC
     15592   builtin and then its argument prototype would still apply.  */
     15593#ifdef __cplusplus
     15594extern "C"
     15595#endif
     15596char $ac_func ();
     15597/* The GNU C library defines this for functions which it implements
     15598    to always fail with ENOSYS.  Some functions are actually named
     15599    something starting with __ and the normal name is an alias.  */
     15600#if defined __stub_$ac_func || defined __stub___$ac_func
     15601choke me
     15602#endif
     15603
     15604int
     15605main ()
     15606{
     15607return $ac_func ();
     15608  ;
     15609  return 0;
     15610}
     15611_ACEOF
     15612rm -f conftest.$ac_objext conftest$ac_exeext
     15613if { (ac_try="$ac_link"
     15614case "(($ac_try" in
     15615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15616  *) ac_try_echo=$ac_try;;
     15617esac
     15618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15619$as_echo "$ac_try_echo") >&5
     15620  (eval "$ac_link") 2>conftest.er1
     15621  ac_status=$?
     15622  grep -v '^ *+' conftest.er1 >conftest.err
     15623  rm -f conftest.er1
     15624  cat conftest.err >&5
     15625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15626  (exit $ac_status); } && {
     15627         test -z "$ac_cxx_werror_flag" ||
     15628         test ! -s conftest.err
     15629       } && test -s conftest$ac_exeext && {
     15630         test "$cross_compiling" = yes ||
     15631         $as_test_x conftest$ac_exeext
     15632       }; then
     15633  eval "$as_ac_var=yes"
     15634else
     15635  $as_echo "$as_me: failed program was:" >&5
     15636sed 's/^/| /' conftest.$ac_ext >&5
     15637
     15638        eval "$as_ac_var=no"
     15639fi
     15640
     15641rm -rf conftest.dSYM
     15642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15643      conftest$ac_exeext conftest.$ac_ext
     15644fi
     15645ac_res=`eval 'as_val=${'$as_ac_var'}
     15646                 $as_echo "$as_val"'`
     15647               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15648$as_echo "$ac_res" >&6; }
     15649as_val=`eval 'as_val=${'$as_ac_var'}
     15650                 $as_echo "$as_val"'`
     15651   if test "x$as_val" = x""yes; then
     15652  cat >>confdefs.h <<_ACEOF
     15653#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     15654_ACEOF
     15655
     15656fi
     15657done
     15658
     15659
     15660for ac_func in sws_scale
     15661do
     15662as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     15663{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
     15664$as_echo_n "checking for $ac_func... " >&6; }
     15665if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
     15666  $as_echo_n "(cached) " >&6
     15667else
     15668  cat >conftest.$ac_ext <<_ACEOF
     15669/* confdefs.h.  */
     15670_ACEOF
     15671cat confdefs.h >>conftest.$ac_ext
     15672cat >>conftest.$ac_ext <<_ACEOF
     15673/* end confdefs.h.  */
     15674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     15675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     15676#define $ac_func innocuous_$ac_func
     15677
     15678/* System header to define __stub macros and hopefully few prototypes,
     15679    which can conflict with char $ac_func (); below.
     15680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     15681    <limits.h> exists even on freestanding compilers.  */
     15682
     15683#ifdef __STDC__
     15684# include <limits.h>
     15685#else
     15686# include <assert.h>
     15687#endif
     15688
     15689#undef $ac_func
     15690
     15691/* Override any GCC internal prototype to avoid an error.
     15692   Use char because int might match the return type of a GCC
     15693   builtin and then its argument prototype would still apply.  */
     15694#ifdef __cplusplus
     15695extern "C"
     15696#endif
     15697char $ac_func ();
     15698/* The GNU C library defines this for functions which it implements
     15699    to always fail with ENOSYS.  Some functions are actually named
     15700    something starting with __ and the normal name is an alias.  */
     15701#if defined __stub_$ac_func || defined __stub___$ac_func
     15702choke me
     15703#endif
     15704
     15705int
     15706main ()
     15707{
     15708return $ac_func ();
     15709  ;
     15710  return 0;
     15711}
     15712_ACEOF
     15713rm -f conftest.$ac_objext conftest$ac_exeext
     15714if { (ac_try="$ac_link"
     15715case "(($ac_try" in
     15716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15717  *) ac_try_echo=$ac_try;;
     15718esac
     15719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15720$as_echo "$ac_try_echo") >&5
     15721  (eval "$ac_link") 2>conftest.er1
     15722  ac_status=$?
     15723  grep -v '^ *+' conftest.er1 >conftest.err
     15724  rm -f conftest.er1
     15725  cat conftest.err >&5
     15726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15727  (exit $ac_status); } && {
     15728         test -z "$ac_cxx_werror_flag" ||
     15729         test ! -s conftest.err
     15730       } && test -s conftest$ac_exeext && {
     15731         test "$cross_compiling" = yes ||
     15732         $as_test_x conftest$ac_exeext
     15733       }; then
     15734  eval "$as_ac_var=yes"
     15735else
     15736  $as_echo "$as_me: failed program was:" >&5
     15737sed 's/^/| /' conftest.$ac_ext >&5
     15738
     15739        eval "$as_ac_var=no"
     15740fi
     15741
     15742rm -rf conftest.dSYM
     15743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15744      conftest$ac_exeext conftest.$ac_ext
     15745fi
     15746ac_res=`eval 'as_val=${'$as_ac_var'}
     15747                 $as_echo "$as_val"'`
     15748               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     15749$as_echo "$ac_res" >&6; }
     15750as_val=`eval 'as_val=${'$as_ac_var'}
     15751                 $as_echo "$as_val"'`
     15752   if test "x$as_val" = x""yes; then
     15753  cat >>confdefs.h <<_ACEOF
     15754#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     15755_ACEOF
     15756
     15757fi
     15758done
     15759
     15760cat >conftest.$ac_ext <<_ACEOF
     15761/* confdefs.h.  */
     15762_ACEOF
     15763cat confdefs.h >>conftest.$ac_ext
     15764cat >>conftest.$ac_ext <<_ACEOF
     15765/* end confdefs.h.  */
     15766
     15767#define __STDC_CONSTANT_MACROS 1
     15768#include <stdlib.h>
     15769#ifdef HAVE_FFMPEG_AVCODEC_H
     15770# include <ffmpeg/avcodec.h>
     15771#endif
     15772#ifdef HAVE_LIBAVCODEC_AVCODEC_H
     15773# include <libavcodec/avcodec.h>
     15774#endif
     15775int x = AVMEDIA_TYPE_VIDEO;
     15776
     15777int
     15778main ()
     15779{
     15780
     15781  ;
     15782  return 0;
     15783}
     15784_ACEOF
     15785rm -f conftest.$ac_objext
     15786if { (ac_try="$ac_compile"
     15787case "(($ac_try" in
     15788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15789  *) ac_try_echo=$ac_try;;
     15790esac
     15791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15792$as_echo "$ac_try_echo") >&5
     15793  (eval "$ac_compile") 2>conftest.er1
     15794  ac_status=$?
     15795  grep -v '^ *+' conftest.er1 >conftest.err
     15796  rm -f conftest.er1
     15797  cat conftest.err >&5
     15798  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15799  (exit $ac_status); } && {
     15800         test -z "$ac_cxx_werror_flag" ||
     15801         test ! -s conftest.err
     15802       } && test -s conftest.$ac_objext; then
     15803  ac_avmedia_type_video="yes"
     15804else
     15805  $as_echo "$as_me: failed program was:" >&5
     15806sed 's/^/| /' conftest.$ac_ext >&5
     15807
     15808        ac_avmedia_type_video="no"
     15809fi
     15810
     15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     15812if test "$ac_avmedia_type_video" == "yes" ; then
     15813
     15814cat >>confdefs.h <<\_ACEOF
     15815#define HAVE_AVMEDIA_TYPE_VIDEO 1
     15816_ACEOF
     15817
     15818fi
     15819
     15820
     15821{ $as_echo "$as_me:$LINENO: checking for avcodec_alloc_frame in -lavcodec" >&5
     15822$as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; }
     15823if test "${ac_cv_lib_avcodec_avcodec_alloc_frame+set}" = set; then
     15824  $as_echo_n "(cached) " >&6
     15825else
     15826  ac_check_lib_save_LIBS=$LIBS
     15827LIBS="-lavcodec  $LIBS"
     15828cat >conftest.$ac_ext <<_ACEOF
     15829/* confdefs.h.  */
     15830_ACEOF
     15831cat confdefs.h >>conftest.$ac_ext
     15832cat >>conftest.$ac_ext <<_ACEOF
     15833/* end confdefs.h.  */
     15834
     15835/* Override any GCC internal prototype to avoid an error.
     15836   Use char because int might match the return type of a GCC
     15837   builtin and then its argument prototype would still apply.  */
     15838#ifdef __cplusplus
     15839extern "C"
     15840#endif
     15841char avcodec_alloc_frame ();
     15842int
     15843main ()
     15844{
     15845return avcodec_alloc_frame ();
     15846  ;
     15847  return 0;
     15848}
     15849_ACEOF
     15850rm -f conftest.$ac_objext conftest$ac_exeext
     15851if { (ac_try="$ac_link"
     15852case "(($ac_try" in
     15853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15854  *) ac_try_echo=$ac_try;;
     15855esac
     15856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15857$as_echo "$ac_try_echo") >&5
     15858  (eval "$ac_link") 2>conftest.er1
     15859  ac_status=$?
     15860  grep -v '^ *+' conftest.er1 >conftest.err
     15861  rm -f conftest.er1
     15862  cat conftest.err >&5
     15863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15864  (exit $ac_status); } && {
     15865         test -z "$ac_cxx_werror_flag" ||
     15866         test ! -s conftest.err
     15867       } && test -s conftest$ac_exeext && {
     15868         test "$cross_compiling" = yes ||
     15869         $as_test_x conftest$ac_exeext
     15870       }; then
     15871  ac_cv_lib_avcodec_avcodec_alloc_frame=yes
     15872else
     15873  $as_echo "$as_me: failed program was:" >&5
     15874sed 's/^/| /' conftest.$ac_ext >&5
     15875
     15876        ac_cv_lib_avcodec_avcodec_alloc_frame=no
     15877fi
     15878
     15879rm -rf conftest.dSYM
     15880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15881      conftest$ac_exeext conftest.$ac_ext
     15882LIBS=$ac_check_lib_save_LIBS
     15883fi
     15884{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5
     15885$as_echo "$ac_cv_lib_avcodec_avcodec_alloc_frame" >&6; }
     15886if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = x""yes; then
     15887  cat >>confdefs.h <<_ACEOF
     15888#define HAVE_LIBAVCODEC 1
     15889_ACEOF
     15890
     15891  LIBS="-lavcodec $LIBS"
     15892
     15893fi
     15894
     15895# Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found
     15896
     15897{ $as_echo "$as_me:$LINENO: checking for avformat_alloc_context in -lavformat" >&5
     15898$as_echo_n "checking for avformat_alloc_context in -lavformat... " >&6; }
     15899if test "${ac_cv_lib_avformat_avformat_alloc_context+set}" = set; then
     15900  $as_echo_n "(cached) " >&6
     15901else
     15902  ac_check_lib_save_LIBS=$LIBS
     15903LIBS="-lavformat  $LIBS"
     15904cat >conftest.$ac_ext <<_ACEOF
     15905/* confdefs.h.  */
     15906_ACEOF
     15907cat confdefs.h >>conftest.$ac_ext
     15908cat >>conftest.$ac_ext <<_ACEOF
     15909/* end confdefs.h.  */
     15910
     15911/* Override any GCC internal prototype to avoid an error.
     15912   Use char because int might match the return type of a GCC
     15913   builtin and then its argument prototype would still apply.  */
     15914#ifdef __cplusplus
     15915extern "C"
     15916#endif
     15917char avformat_alloc_context ();
     15918int
     15919main ()
     15920{
     15921return avformat_alloc_context ();
     15922  ;
     15923  return 0;
     15924}
     15925_ACEOF
     15926rm -f conftest.$ac_objext conftest$ac_exeext
     15927if { (ac_try="$ac_link"
     15928case "(($ac_try" in
     15929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     15930  *) ac_try_echo=$ac_try;;
     15931esac
     15932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     15933$as_echo "$ac_try_echo") >&5
     15934  (eval "$ac_link") 2>conftest.er1
     15935  ac_status=$?
     15936  grep -v '^ *+' conftest.er1 >conftest.err
     15937  rm -f conftest.er1
     15938  cat conftest.err >&5
     15939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     15940  (exit $ac_status); } && {
     15941         test -z "$ac_cxx_werror_flag" ||
     15942         test ! -s conftest.err
     15943       } && test -s conftest$ac_exeext && {
     15944         test "$cross_compiling" = yes ||
     15945         $as_test_x conftest$ac_exeext
     15946       }; then
     15947  ac_cv_lib_avformat_avformat_alloc_context=yes
     15948else
     15949  $as_echo "$as_me: failed program was:" >&5
     15950sed 's/^/| /' conftest.$ac_ext >&5
     15951
     15952        ac_cv_lib_avformat_avformat_alloc_context=no
     15953fi
     15954
     15955rm -rf conftest.dSYM
     15956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     15957      conftest$ac_exeext conftest.$ac_ext
     15958LIBS=$ac_check_lib_save_LIBS
     15959fi
     15960{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5
     15961$as_echo "$ac_cv_lib_avformat_avformat_alloc_context" >&6; }
     15962if test "x$ac_cv_lib_avformat_avformat_alloc_context" = x""yes; then
     15963  cat >>confdefs.h <<_ACEOF
     15964#define HAVE_LIBAVFORMAT 1
     15965_ACEOF
     15966
     15967  LIBS="-lavformat $LIBS"
     15968
     15969else
     15970
     15971{ $as_echo "$as_me:$LINENO: checking for av_alloc_format_context in -lavformat" >&5
     15972$as_echo_n "checking for av_alloc_format_context in -lavformat... " >&6; }
     15973if test "${ac_cv_lib_avformat_av_alloc_format_context+set}" = set; then
     15974  $as_echo_n "(cached) " >&6
     15975else
     15976  ac_check_lib_save_LIBS=$LIBS
     15977LIBS="-lavformat  $LIBS"
     15978cat >conftest.$ac_ext <<_ACEOF
     15979/* confdefs.h.  */
     15980_ACEOF
     15981cat confdefs.h >>conftest.$ac_ext
     15982cat >>conftest.$ac_ext <<_ACEOF
     15983/* end confdefs.h.  */
     15984
     15985/* Override any GCC internal prototype to avoid an error.
     15986   Use char because int might match the return type of a GCC
     15987   builtin and then its argument prototype would still apply.  */
     15988#ifdef __cplusplus
     15989extern "C"
     15990#endif
     15991char av_alloc_format_context ();
     15992int
     15993main ()
     15994{
     15995return av_alloc_format_context ();
     15996  ;
     15997  return 0;
     15998}
     15999_ACEOF
     16000rm -f conftest.$ac_objext conftest$ac_exeext
     16001if { (ac_try="$ac_link"
     16002case "(($ac_try" in
     16003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     16004  *) ac_try_echo=$ac_try;;
     16005esac
     16006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     16007$as_echo "$ac_try_echo") >&5
     16008  (eval "$ac_link") 2>conftest.er1
     16009  ac_status=$?
     16010  grep -v '^ *+' conftest.er1 >conftest.err
     16011  rm -f conftest.er1
     16012  cat conftest.err >&5
     16013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     16014  (exit $ac_status); } && {
     16015         test -z "$ac_cxx_werror_flag" ||
     16016         test ! -s conftest.err
     16017       } && test -s conftest$ac_exeext && {
     16018         test "$cross_compiling" = yes ||
     16019         $as_test_x conftest$ac_exeext
     16020       }; then
     16021  ac_cv_lib_avformat_av_alloc_format_context=yes
     16022else
     16023  $as_echo "$as_me: failed program was:" >&5
     16024sed 's/^/| /' conftest.$ac_ext >&5
     16025
     16026        ac_cv_lib_avformat_av_alloc_format_context=no
     16027fi
     16028
     16029rm -rf conftest.dSYM
     16030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     16031      conftest$ac_exeext conftest.$ac_ext
     16032LIBS=$ac_check_lib_save_LIBS
     16033fi
     16034{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5
     16035$as_echo "$ac_cv_lib_avformat_av_alloc_format_context" >&6; }
     16036if test "x$ac_cv_lib_avformat_av_alloc_format_context" = x""yes; then
     16037  cat >>confdefs.h <<_ACEOF
     16038#define HAVE_LIBAVFORMAT 1
     16039_ACEOF
     16040
     16041  LIBS="-lavformat $LIBS"
     16042
     16043else
     16044  { $as_echo "$as_me:$LINENO: WARNING: libavformat not usable" >&5
     16045$as_echo "$as_me: WARNING: libavformat not usable" >&2;}
     16046fi
     16047
     16048fi
     16049
     16050
     16051
     16052{ $as_echo "$as_me:$LINENO: checking for nVidia Cg installation" >&5
     16053$as_echo_n "checking for nVidia Cg installation... " >&6; }
     16054CG_DIR=""
     16055for dir in \
     16056 /opt/nvidia-cg-toolkit \
     16057 /usr/cg \
     16058 /usr
     16059do
     16060  if test -r "$dir/include" ; then
     16061    CG_DIR=$dir
     16062    break
     16063  fi
     16064done
     16065{ $as_echo "$as_me:$LINENO: result: ${CG_DIR}" >&5
     16066$as_echo "${CG_DIR}" >&6; }
     16067
     16068CG_INC_SPEC="-I${CG_DIR}/include"
     16069CG_LIB_DIR="${CG_DIR}/lib"
     16070
     16071save_CPPFLAGS=$CPPFLAGS
     16072CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS"
     16073
     16074for ac_header in Cg/cgGL.h
    1273416075do
    1273516076as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    1287716218_ACEOF
    1287816219
    12879 fi
    12880 
    12881 done
    12882 
    12883 
    12884 { $as_echo "$as_me:$LINENO: checking for cvLoadImage in -lhighgui" >&5
    12885 $as_echo_n "checking for cvLoadImage in -lhighgui... " >&6; }
    12886 if test "${ac_cv_lib_highgui_cvLoadImage+set}" = set; then
    12887   $as_echo_n "(cached) " >&6
    12888 else
    12889   ac_check_lib_save_LIBS=$LIBS
    12890 LIBS="-lhighgui  $LIBS"
    12891 cat >conftest.$ac_ext <<_ACEOF
    12892 /* confdefs.h.  */
    12893 _ACEOF
    12894 cat confdefs.h >>conftest.$ac_ext
    12895 cat >>conftest.$ac_ext <<_ACEOF
    12896 /* end confdefs.h.  */
    12897 
    12898 /* Override any GCC internal prototype to avoid an error.
    12899    Use char because int might match the return type of a GCC
    12900    builtin and then its argument prototype would still apply.  */
    12901 #ifdef __cplusplus
    12902 extern "C"
    12903 #endif
    12904 char cvLoadImage ();
    12905 int
    12906 main ()
    12907 {
    12908 return cvLoadImage ();
    12909   ;
    12910   return 0;
    12911 }
    12912 _ACEOF
    12913 rm -f conftest.$ac_objext conftest$ac_exeext
    12914 if { (ac_try="$ac_link"
    12915 case "(($ac_try" in
    12916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12917   *) ac_try_echo=$ac_try;;
    12918 esac
    12919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12920 $as_echo "$ac_try_echo") >&5
    12921   (eval "$ac_link") 2>conftest.er1
    12922   ac_status=$?
    12923   grep -v '^ *+' conftest.er1 >conftest.err
    12924   rm -f conftest.er1
    12925   cat conftest.err >&5
    12926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12927   (exit $ac_status); } && {
    12928          test -z "$ac_cxx_werror_flag" ||
    12929          test ! -s conftest.err
    12930        } && test -s conftest$ac_exeext && {
    12931          test "$cross_compiling" = yes ||
    12932          $as_test_x conftest$ac_exeext
    12933        }; then
    12934   ac_cv_lib_highgui_cvLoadImage=yes
    12935 else
    12936   $as_echo "$as_me: failed program was:" >&5
    12937 sed 's/^/| /' conftest.$ac_ext >&5
    12938 
    12939         ac_cv_lib_highgui_cvLoadImage=no
    12940 fi
    12941 
    12942 rm -rf conftest.dSYM
    12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    12944       conftest$ac_exeext conftest.$ac_ext
    12945 LIBS=$ac_check_lib_save_LIBS
    12946 fi
    12947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_highgui_cvLoadImage" >&5
    12948 $as_echo "$ac_cv_lib_highgui_cvLoadImage" >&6; }
    12949 if test "x$ac_cv_lib_highgui_cvLoadImage" = x""yes; then
    12950   cat >>confdefs.h <<_ACEOF
    12951 #define HAVE_LIBHIGHGUI 1
    12952 _ACEOF
    12953 
    12954   LIBS="-lhighgui $LIBS"
    12955 
    12956 fi
    12957 
    12958 
    12959 save_CPPFLAGS=$CPPFLAGS
    12960 # Test for redhat-specific location of ffmpeg headers.
    12961 if test -d "/usr/include/ffmpeg" ; then
    12962   CPPFLAGS="$CPPFLAGS -I/usr/include/ffmpeg"
    12963   FF_INC_SPEC="-I/usr/include/ffmpeg"
    12964 fi
    12965 
    12966 
    12967 
    12968 
    12969 
    12970 
    12971 
    12972 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h
    12973 do
    12974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    12975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    12976 $as_echo_n "checking for $ac_header... " >&6; }
    12977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    12978   $as_echo_n "(cached) " >&6
    12979 else
    12980   cat >conftest.$ac_ext <<_ACEOF
    12981 /* confdefs.h.  */
    12982 _ACEOF
    12983 cat confdefs.h >>conftest.$ac_ext
    12984 cat >>conftest.$ac_ext <<_ACEOF
    12985 /* end confdefs.h.  */
    12986 
    12987 #define __STDC_CONSTANT_MACROS 1
    12988 
    12989 
    12990 #include <$ac_header>
    12991 _ACEOF
    12992 rm -f conftest.$ac_objext
    12993 if { (ac_try="$ac_compile"
    12994 case "(($ac_try" in
    12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    12996   *) ac_try_echo=$ac_try;;
    12997 esac
    12998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    12999 $as_echo "$ac_try_echo") >&5
    13000   (eval "$ac_compile") 2>conftest.er1
    13001   ac_status=$?
    13002   grep -v '^ *+' conftest.er1 >conftest.err
    13003   rm -f conftest.er1
    13004   cat conftest.err >&5
    13005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13006   (exit $ac_status); } && {
    13007          test -z "$ac_cxx_werror_flag" ||
    13008          test ! -s conftest.err
    13009        } && test -s conftest.$ac_objext; then
    13010   eval "$as_ac_Header=yes"
    13011 else
    13012   $as_echo "$as_me: failed program was:" >&5
    13013 sed 's/^/| /' conftest.$ac_ext >&5
    13014 
    13015         eval "$as_ac_Header=no"
    13016 fi
    13017 
    13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    13019 fi
    13020 ac_res=`eval 'as_val=${'$as_ac_Header'}
    13021                  $as_echo "$as_val"'`
    13022                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13023 $as_echo "$ac_res" >&6; }
    13024 as_val=`eval 'as_val=${'$as_ac_Header'}
    13025                  $as_echo "$as_val"'`
    13026    if test "x$as_val" = x""yes; then
    13027   cat >>confdefs.h <<_ACEOF
    13028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    13029 _ACEOF
    13030 
    13031 fi
    13032 
    13033 done
    13034 
    13035 CPPFLAGS=$save_CPPFLAGS
    13036 
    13037 
    13038 { $as_echo "$as_me:$LINENO: checking for main in -lavcodec" >&5
    13039 $as_echo_n "checking for main in -lavcodec... " >&6; }
    13040 if test "${ac_cv_lib_avcodec_main+set}" = set; then
    13041   $as_echo_n "(cached) " >&6
    13042 else
    13043   ac_check_lib_save_LIBS=$LIBS
    13044 LIBS="-lavcodec  $LIBS"
    13045 cat >conftest.$ac_ext <<_ACEOF
    13046 /* confdefs.h.  */
    13047 _ACEOF
    13048 cat confdefs.h >>conftest.$ac_ext
    13049 cat >>conftest.$ac_ext <<_ACEOF
    13050 /* end confdefs.h.  */
    13051 
    13052 
    13053 int
    13054 main ()
    13055 {
    13056 return main ();
    13057   ;
    13058   return 0;
    13059 }
    13060 _ACEOF
    13061 rm -f conftest.$ac_objext conftest$ac_exeext
    13062 if { (ac_try="$ac_link"
    13063 case "(($ac_try" in
    13064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13065   *) ac_try_echo=$ac_try;;
    13066 esac
    13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13068 $as_echo "$ac_try_echo") >&5
    13069   (eval "$ac_link") 2>conftest.er1
    13070   ac_status=$?
    13071   grep -v '^ *+' conftest.er1 >conftest.err
    13072   rm -f conftest.er1
    13073   cat conftest.err >&5
    13074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13075   (exit $ac_status); } && {
    13076          test -z "$ac_cxx_werror_flag" ||
    13077          test ! -s conftest.err
    13078        } && test -s conftest$ac_exeext && {
    13079          test "$cross_compiling" = yes ||
    13080          $as_test_x conftest$ac_exeext
    13081        }; then
    13082   ac_cv_lib_avcodec_main=yes
    13083 else
    13084   $as_echo "$as_me: failed program was:" >&5
    13085 sed 's/^/| /' conftest.$ac_ext >&5
    13086 
    13087         ac_cv_lib_avcodec_main=no
    13088 fi
    13089 
    13090 rm -rf conftest.dSYM
    13091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13092       conftest$ac_exeext conftest.$ac_ext
    13093 LIBS=$ac_check_lib_save_LIBS
    13094 fi
    13095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_main" >&5
    13096 $as_echo "$ac_cv_lib_avcodec_main" >&6; }
    13097 if test "x$ac_cv_lib_avcodec_main" = x""yes; then
    13098   cat >>confdefs.h <<_ACEOF
    13099 #define HAVE_LIBAVCODEC 1
    13100 _ACEOF
    13101 
    13102   LIBS="-lavcodec $LIBS"
    13103 
    13104 else
    13105   { { $as_echo "$as_me:$LINENO: error: requires libavcodec" >&5
    13106 $as_echo "$as_me: error: requires libavcodec" >&2;}
    13107    { (exit 1); exit 1; }; }
    13108 fi
    13109 
    13110 
    13111 { $as_echo "$as_me:$LINENO: checking for main in -lavutil" >&5
    13112 $as_echo_n "checking for main in -lavutil... " >&6; }
    13113 if test "${ac_cv_lib_avutil_main+set}" = set; then
    13114   $as_echo_n "(cached) " >&6
    13115 else
    13116   ac_check_lib_save_LIBS=$LIBS
    13117 LIBS="-lavutil  $LIBS"
    13118 cat >conftest.$ac_ext <<_ACEOF
    13119 /* confdefs.h.  */
    13120 _ACEOF
    13121 cat confdefs.h >>conftest.$ac_ext
    13122 cat >>conftest.$ac_ext <<_ACEOF
    13123 /* end confdefs.h.  */
    13124 
    13125 
    13126 int
    13127 main ()
    13128 {
    13129 return main ();
    13130   ;
    13131   return 0;
    13132 }
    13133 _ACEOF
    13134 rm -f conftest.$ac_objext conftest$ac_exeext
    13135 if { (ac_try="$ac_link"
    13136 case "(($ac_try" in
    13137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13138   *) ac_try_echo=$ac_try;;
    13139 esac
    13140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13141 $as_echo "$ac_try_echo") >&5
    13142   (eval "$ac_link") 2>conftest.er1
    13143   ac_status=$?
    13144   grep -v '^ *+' conftest.er1 >conftest.err
    13145   rm -f conftest.er1
    13146   cat conftest.err >&5
    13147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13148   (exit $ac_status); } && {
    13149          test -z "$ac_cxx_werror_flag" ||
    13150          test ! -s conftest.err
    13151        } && test -s conftest$ac_exeext && {
    13152          test "$cross_compiling" = yes ||
    13153          $as_test_x conftest$ac_exeext
    13154        }; then
    13155   ac_cv_lib_avutil_main=yes
    13156 else
    13157   $as_echo "$as_me: failed program was:" >&5
    13158 sed 's/^/| /' conftest.$ac_ext >&5
    13159 
    13160         ac_cv_lib_avutil_main=no
    13161 fi
    13162 
    13163 rm -rf conftest.dSYM
    13164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13165       conftest$ac_exeext conftest.$ac_ext
    13166 LIBS=$ac_check_lib_save_LIBS
    13167 fi
    13168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_main" >&5
    13169 $as_echo "$ac_cv_lib_avutil_main" >&6; }
    13170 if test "x$ac_cv_lib_avutil_main" = x""yes; then
    13171   cat >>confdefs.h <<_ACEOF
    13172 #define HAVE_LIBAVUTIL 1
    13173 _ACEOF
    13174 
    13175   LIBS="-lavutil $LIBS"
    13176 
    13177 else
    13178   { { $as_echo "$as_me:$LINENO: error: requires libavutil" >&5
    13179 $as_echo "$as_me: error: requires libavutil" >&2;}
    13180    { (exit 1); exit 1; }; }
    13181 fi
    13182 
    13183 
    13184 { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
    13185 $as_echo_n "checking for main in -lavformat... " >&6; }
    13186 if test "${ac_cv_lib_avformat_main+set}" = set; then
    13187   $as_echo_n "(cached) " >&6
    13188 else
    13189   ac_check_lib_save_LIBS=$LIBS
    13190 LIBS="-lavformat  $LIBS"
    13191 cat >conftest.$ac_ext <<_ACEOF
    13192 /* confdefs.h.  */
    13193 _ACEOF
    13194 cat confdefs.h >>conftest.$ac_ext
    13195 cat >>conftest.$ac_ext <<_ACEOF
    13196 /* end confdefs.h.  */
    13197 
    13198 
    13199 int
    13200 main ()
    13201 {
    13202 return main ();
    13203   ;
    13204   return 0;
    13205 }
    13206 _ACEOF
    13207 rm -f conftest.$ac_objext conftest$ac_exeext
    13208 if { (ac_try="$ac_link"
    13209 case "(($ac_try" in
    13210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13211   *) ac_try_echo=$ac_try;;
    13212 esac
    13213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13214 $as_echo "$ac_try_echo") >&5
    13215   (eval "$ac_link") 2>conftest.er1
    13216   ac_status=$?
    13217   grep -v '^ *+' conftest.er1 >conftest.err
    13218   rm -f conftest.er1
    13219   cat conftest.err >&5
    13220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13221   (exit $ac_status); } && {
    13222          test -z "$ac_cxx_werror_flag" ||
    13223          test ! -s conftest.err
    13224        } && test -s conftest$ac_exeext && {
    13225          test "$cross_compiling" = yes ||
    13226          $as_test_x conftest$ac_exeext
    13227        }; then
    13228   ac_cv_lib_avformat_main=yes
    13229 else
    13230   $as_echo "$as_me: failed program was:" >&5
    13231 sed 's/^/| /' conftest.$ac_ext >&5
    13232 
    13233         ac_cv_lib_avformat_main=no
    13234 fi
    13235 
    13236 rm -rf conftest.dSYM
    13237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13238       conftest$ac_exeext conftest.$ac_ext
    13239 LIBS=$ac_check_lib_save_LIBS
    13240 fi
    13241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
    13242 $as_echo "$ac_cv_lib_avformat_main" >&6; }
    13243 if test "x$ac_cv_lib_avformat_main" = x""yes; then
    13244   cat >>confdefs.h <<_ACEOF
    13245 #define HAVE_LIBAVFORMAT 1
    13246 _ACEOF
    13247 
    13248   LIBS="-lavformat $LIBS"
    13249 
    13250 else
    13251   { { $as_echo "$as_me:$LINENO: error: requires libavformat" >&5
    13252 $as_echo "$as_me: error: requires libavformat" >&2;}
    13253    { (exit 1); exit 1; }; }
    13254 fi
    13255 
    13256 
    13257 { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
    13258 $as_echo_n "checking for main in -lswscale... " >&6; }
    13259 if test "${ac_cv_lib_swscale_main+set}" = set; then
    13260   $as_echo_n "(cached) " >&6
    13261 else
    13262   ac_check_lib_save_LIBS=$LIBS
    13263 LIBS="-lswscale  $LIBS"
    13264 cat >conftest.$ac_ext <<_ACEOF
    13265 /* confdefs.h.  */
    13266 _ACEOF
    13267 cat confdefs.h >>conftest.$ac_ext
    13268 cat >>conftest.$ac_ext <<_ACEOF
    13269 /* end confdefs.h.  */
    13270 
    13271 
    13272 int
    13273 main ()
    13274 {
    13275 return main ();
    13276   ;
    13277   return 0;
    13278 }
    13279 _ACEOF
    13280 rm -f conftest.$ac_objext conftest$ac_exeext
    13281 if { (ac_try="$ac_link"
    13282 case "(($ac_try" in
    13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13284   *) ac_try_echo=$ac_try;;
    13285 esac
    13286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13287 $as_echo "$ac_try_echo") >&5
    13288   (eval "$ac_link") 2>conftest.er1
    13289   ac_status=$?
    13290   grep -v '^ *+' conftest.er1 >conftest.err
    13291   rm -f conftest.er1
    13292   cat conftest.err >&5
    13293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13294   (exit $ac_status); } && {
    13295          test -z "$ac_cxx_werror_flag" ||
    13296          test ! -s conftest.err
    13297        } && test -s conftest$ac_exeext && {
    13298          test "$cross_compiling" = yes ||
    13299          $as_test_x conftest$ac_exeext
    13300        }; then
    13301   ac_cv_lib_swscale_main=yes
    13302 else
    13303   $as_echo "$as_me: failed program was:" >&5
    13304 sed 's/^/| /' conftest.$ac_ext >&5
    13305 
    13306         ac_cv_lib_swscale_main=no
    13307 fi
    13308 
    13309 rm -rf conftest.dSYM
    13310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13311       conftest$ac_exeext conftest.$ac_ext
    13312 LIBS=$ac_check_lib_save_LIBS
    13313 fi
    13314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
    13315 $as_echo "$ac_cv_lib_swscale_main" >&6; }
    13316 if test "x$ac_cv_lib_swscale_main" = x""yes; then
    13317   cat >>confdefs.h <<_ACEOF
    13318 #define HAVE_LIBSWSCALE 1
    13319 _ACEOF
    13320 
    13321   LIBS="-lswscale $LIBS"
    13322 
    13323 fi
    13324 
    13325 
    13326 for ac_func in avcodec_decode_video2
    13327 do
    13328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13329 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13330 $as_echo_n "checking for $ac_func... " >&6; }
    13331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13332   $as_echo_n "(cached) " >&6
    13333 else
    13334   cat >conftest.$ac_ext <<_ACEOF
    13335 /* confdefs.h.  */
    13336 _ACEOF
    13337 cat confdefs.h >>conftest.$ac_ext
    13338 cat >>conftest.$ac_ext <<_ACEOF
    13339 /* end confdefs.h.  */
    13340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13342 #define $ac_func innocuous_$ac_func
    13343 
    13344 /* System header to define __stub macros and hopefully few prototypes,
    13345     which can conflict with char $ac_func (); below.
    13346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13347     <limits.h> exists even on freestanding compilers.  */
    13348 
    13349 #ifdef __STDC__
    13350 # include <limits.h>
    13351 #else
    13352 # include <assert.h>
    13353 #endif
    13354 
    13355 #undef $ac_func
    13356 
    13357 /* Override any GCC internal prototype to avoid an error.
    13358    Use char because int might match the return type of a GCC
    13359    builtin and then its argument prototype would still apply.  */
    13360 #ifdef __cplusplus
    13361 extern "C"
    13362 #endif
    13363 char $ac_func ();
    13364 /* The GNU C library defines this for functions which it implements
    13365     to always fail with ENOSYS.  Some functions are actually named
    13366     something starting with __ and the normal name is an alias.  */
    13367 #if defined __stub_$ac_func || defined __stub___$ac_func
    13368 choke me
    13369 #endif
    13370 
    13371 int
    13372 main ()
    13373 {
    13374 return $ac_func ();
    13375   ;
    13376   return 0;
    13377 }
    13378 _ACEOF
    13379 rm -f conftest.$ac_objext conftest$ac_exeext
    13380 if { (ac_try="$ac_link"
    13381 case "(($ac_try" in
    13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13383   *) ac_try_echo=$ac_try;;
    13384 esac
    13385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13386 $as_echo "$ac_try_echo") >&5
    13387   (eval "$ac_link") 2>conftest.er1
    13388   ac_status=$?
    13389   grep -v '^ *+' conftest.er1 >conftest.err
    13390   rm -f conftest.er1
    13391   cat conftest.err >&5
    13392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13393   (exit $ac_status); } && {
    13394          test -z "$ac_cxx_werror_flag" ||
    13395          test ! -s conftest.err
    13396        } && test -s conftest$ac_exeext && {
    13397          test "$cross_compiling" = yes ||
    13398          $as_test_x conftest$ac_exeext
    13399        }; then
    13400   eval "$as_ac_var=yes"
    13401 else
    13402   $as_echo "$as_me: failed program was:" >&5
    13403 sed 's/^/| /' conftest.$ac_ext >&5
    13404 
    13405         eval "$as_ac_var=no"
    13406 fi
    13407 
    13408 rm -rf conftest.dSYM
    13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13410       conftest$ac_exeext conftest.$ac_ext
    13411 fi
    13412 ac_res=`eval 'as_val=${'$as_ac_var'}
    13413                  $as_echo "$as_val"'`
    13414                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13415 $as_echo "$ac_res" >&6; }
    13416 as_val=`eval 'as_val=${'$as_ac_var'}
    13417                  $as_echo "$as_val"'`
    13418    if test "x$as_val" = x""yes; then
    13419   cat >>confdefs.h <<_ACEOF
    13420 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    13421 _ACEOF
    13422 
    13423 fi
    13424 done
    13425 
    13426 
    13427 for ac_func in avcodec_decode_video
    13428 do
    13429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13431 $as_echo_n "checking for $ac_func... " >&6; }
    13432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13433   $as_echo_n "(cached) " >&6
    13434 else
    13435   cat >conftest.$ac_ext <<_ACEOF
    13436 /* confdefs.h.  */
    13437 _ACEOF
    13438 cat confdefs.h >>conftest.$ac_ext
    13439 cat >>conftest.$ac_ext <<_ACEOF
    13440 /* end confdefs.h.  */
    13441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13443 #define $ac_func innocuous_$ac_func
    13444 
    13445 /* System header to define __stub macros and hopefully few prototypes,
    13446     which can conflict with char $ac_func (); below.
    13447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13448     <limits.h> exists even on freestanding compilers.  */
    13449 
    13450 #ifdef __STDC__
    13451 # include <limits.h>
    13452 #else
    13453 # include <assert.h>
    13454 #endif
    13455 
    13456 #undef $ac_func
    13457 
    13458 /* Override any GCC internal prototype to avoid an error.
    13459    Use char because int might match the return type of a GCC
    13460    builtin and then its argument prototype would still apply.  */
    13461 #ifdef __cplusplus
    13462 extern "C"
    13463 #endif
    13464 char $ac_func ();
    13465 /* The GNU C library defines this for functions which it implements
    13466     to always fail with ENOSYS.  Some functions are actually named
    13467     something starting with __ and the normal name is an alias.  */
    13468 #if defined __stub_$ac_func || defined __stub___$ac_func
    13469 choke me
    13470 #endif
    13471 
    13472 int
    13473 main ()
    13474 {
    13475 return $ac_func ();
    13476   ;
    13477   return 0;
    13478 }
    13479 _ACEOF
    13480 rm -f conftest.$ac_objext conftest$ac_exeext
    13481 if { (ac_try="$ac_link"
    13482 case "(($ac_try" in
    13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13484   *) ac_try_echo=$ac_try;;
    13485 esac
    13486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13487 $as_echo "$ac_try_echo") >&5
    13488   (eval "$ac_link") 2>conftest.er1
    13489   ac_status=$?
    13490   grep -v '^ *+' conftest.er1 >conftest.err
    13491   rm -f conftest.er1
    13492   cat conftest.err >&5
    13493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13494   (exit $ac_status); } && {
    13495          test -z "$ac_cxx_werror_flag" ||
    13496          test ! -s conftest.err
    13497        } && test -s conftest$ac_exeext && {
    13498          test "$cross_compiling" = yes ||
    13499          $as_test_x conftest$ac_exeext
    13500        }; then
    13501   eval "$as_ac_var=yes"
    13502 else
    13503   $as_echo "$as_me: failed program was:" >&5
    13504 sed 's/^/| /' conftest.$ac_ext >&5
    13505 
    13506         eval "$as_ac_var=no"
    13507 fi
    13508 
    13509 rm -rf conftest.dSYM
    13510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13511       conftest$ac_exeext conftest.$ac_ext
    13512 fi
    13513 ac_res=`eval 'as_val=${'$as_ac_var'}
    13514                  $as_echo "$as_val"'`
    13515                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13516 $as_echo "$ac_res" >&6; }
    13517 as_val=`eval 'as_val=${'$as_ac_var'}
    13518                  $as_echo "$as_val"'`
    13519    if test "x$as_val" = x""yes; then
    13520   cat >>confdefs.h <<_ACEOF
    13521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    13522 _ACEOF
    13523 
    13524 fi
    13525 done
    13526 
    13527 
    13528 for ac_func in avformat_open_input
    13529 do
    13530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13532 $as_echo_n "checking for $ac_func... " >&6; }
    13533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13534   $as_echo_n "(cached) " >&6
    13535 else
    13536   cat >conftest.$ac_ext <<_ACEOF
    13537 /* confdefs.h.  */
    13538 _ACEOF
    13539 cat confdefs.h >>conftest.$ac_ext
    13540 cat >>conftest.$ac_ext <<_ACEOF
    13541 /* end confdefs.h.  */
    13542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13544 #define $ac_func innocuous_$ac_func
    13545 
    13546 /* System header to define __stub macros and hopefully few prototypes,
    13547     which can conflict with char $ac_func (); below.
    13548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13549     <limits.h> exists even on freestanding compilers.  */
    13550 
    13551 #ifdef __STDC__
    13552 # include <limits.h>
    13553 #else
    13554 # include <assert.h>
    13555 #endif
    13556 
    13557 #undef $ac_func
    13558 
    13559 /* Override any GCC internal prototype to avoid an error.
    13560    Use char because int might match the return type of a GCC
    13561    builtin and then its argument prototype would still apply.  */
    13562 #ifdef __cplusplus
    13563 extern "C"
    13564 #endif
    13565 char $ac_func ();
    13566 /* The GNU C library defines this for functions which it implements
    13567     to always fail with ENOSYS.  Some functions are actually named
    13568     something starting with __ and the normal name is an alias.  */
    13569 #if defined __stub_$ac_func || defined __stub___$ac_func
    13570 choke me
    13571 #endif
    13572 
    13573 int
    13574 main ()
    13575 {
    13576 return $ac_func ();
    13577   ;
    13578   return 0;
    13579 }
    13580 _ACEOF
    13581 rm -f conftest.$ac_objext conftest$ac_exeext
    13582 if { (ac_try="$ac_link"
    13583 case "(($ac_try" in
    13584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13585   *) ac_try_echo=$ac_try;;
    13586 esac
    13587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13588 $as_echo "$ac_try_echo") >&5
    13589   (eval "$ac_link") 2>conftest.er1
    13590   ac_status=$?
    13591   grep -v '^ *+' conftest.er1 >conftest.err
    13592   rm -f conftest.er1
    13593   cat conftest.err >&5
    13594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13595   (exit $ac_status); } && {
    13596          test -z "$ac_cxx_werror_flag" ||
    13597          test ! -s conftest.err
    13598        } && test -s conftest$ac_exeext && {
    13599          test "$cross_compiling" = yes ||
    13600          $as_test_x conftest$ac_exeext
    13601        }; then
    13602   eval "$as_ac_var=yes"
    13603 else
    13604   $as_echo "$as_me: failed program was:" >&5
    13605 sed 's/^/| /' conftest.$ac_ext >&5
    13606 
    13607         eval "$as_ac_var=no"
    13608 fi
    13609 
    13610 rm -rf conftest.dSYM
    13611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13612       conftest$ac_exeext conftest.$ac_ext
    13613 fi
    13614 ac_res=`eval 'as_val=${'$as_ac_var'}
    13615                  $as_echo "$as_val"'`
    13616                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13617 $as_echo "$ac_res" >&6; }
    13618 as_val=`eval 'as_val=${'$as_ac_var'}
    13619                  $as_echo "$as_val"'`
    13620    if test "x$as_val" = x""yes; then
    13621   cat >>confdefs.h <<_ACEOF
    13622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    13623 _ACEOF
    13624 
    13625 fi
    13626 done
    13627 
    13628 
    13629 for ac_func in av_open_input_file
    13630 do
    13631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13632 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13633 $as_echo_n "checking for $ac_func... " >&6; }
    13634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13635   $as_echo_n "(cached) " >&6
    13636 else
    13637   cat >conftest.$ac_ext <<_ACEOF
    13638 /* confdefs.h.  */
    13639 _ACEOF
    13640 cat confdefs.h >>conftest.$ac_ext
    13641 cat >>conftest.$ac_ext <<_ACEOF
    13642 /* end confdefs.h.  */
    13643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13645 #define $ac_func innocuous_$ac_func
    13646 
    13647 /* System header to define __stub macros and hopefully few prototypes,
    13648     which can conflict with char $ac_func (); below.
    13649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13650     <limits.h> exists even on freestanding compilers.  */
    13651 
    13652 #ifdef __STDC__
    13653 # include <limits.h>
    13654 #else
    13655 # include <assert.h>
    13656 #endif
    13657 
    13658 #undef $ac_func
    13659 
    13660 /* Override any GCC internal prototype to avoid an error.
    13661    Use char because int might match the return type of a GCC
    13662    builtin and then its argument prototype would still apply.  */
    13663 #ifdef __cplusplus
    13664 extern "C"
    13665 #endif
    13666 char $ac_func ();
    13667 /* The GNU C library defines this for functions which it implements
    13668     to always fail with ENOSYS.  Some functions are actually named
    13669     something starting with __ and the normal name is an alias.  */
    13670 #if defined __stub_$ac_func || defined __stub___$ac_func
    13671 choke me
    13672 #endif
    13673 
    13674 int
    13675 main ()
    13676 {
    13677 return $ac_func ();
    13678   ;
    13679   return 0;
    13680 }
    13681 _ACEOF
    13682 rm -f conftest.$ac_objext conftest$ac_exeext
    13683 if { (ac_try="$ac_link"
    13684 case "(($ac_try" in
    13685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13686   *) ac_try_echo=$ac_try;;
    13687 esac
    13688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13689 $as_echo "$ac_try_echo") >&5
    13690   (eval "$ac_link") 2>conftest.er1
    13691   ac_status=$?
    13692   grep -v '^ *+' conftest.er1 >conftest.err
    13693   rm -f conftest.er1
    13694   cat conftest.err >&5
    13695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13696   (exit $ac_status); } && {
    13697          test -z "$ac_cxx_werror_flag" ||
    13698          test ! -s conftest.err
    13699        } && test -s conftest$ac_exeext && {
    13700          test "$cross_compiling" = yes ||
    13701          $as_test_x conftest$ac_exeext
    13702        }; then
    13703   eval "$as_ac_var=yes"
    13704 else
    13705   $as_echo "$as_me: failed program was:" >&5
    13706 sed 's/^/| /' conftest.$ac_ext >&5
    13707 
    13708         eval "$as_ac_var=no"
    13709 fi
    13710 
    13711 rm -rf conftest.dSYM
    13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13713       conftest$ac_exeext conftest.$ac_ext
    13714 fi
    13715 ac_res=`eval 'as_val=${'$as_ac_var'}
    13716                  $as_echo "$as_val"'`
    13717                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13718 $as_echo "$ac_res" >&6; }
    13719 as_val=`eval 'as_val=${'$as_ac_var'}
    13720                  $as_echo "$as_val"'`
    13721    if test "x$as_val" = x""yes; then
    13722   cat >>confdefs.h <<_ACEOF
    13723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    13724 _ACEOF
    13725 
    13726 fi
    13727 done
    13728 
    13729 
    13730 for ac_func in av_guess_format
    13731 do
    13732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13734 $as_echo_n "checking for $ac_func... " >&6; }
    13735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13736   $as_echo_n "(cached) " >&6
    13737 else
    13738   cat >conftest.$ac_ext <<_ACEOF
    13739 /* confdefs.h.  */
    13740 _ACEOF
    13741 cat confdefs.h >>conftest.$ac_ext
    13742 cat >>conftest.$ac_ext <<_ACEOF
    13743 /* end confdefs.h.  */
    13744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13746 #define $ac_func innocuous_$ac_func
    13747 
    13748 /* System header to define __stub macros and hopefully few prototypes,
    13749     which can conflict with char $ac_func (); below.
    13750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13751     <limits.h> exists even on freestanding compilers.  */
    13752 
    13753 #ifdef __STDC__
    13754 # include <limits.h>
    13755 #else
    13756 # include <assert.h>
    13757 #endif
    13758 
    13759 #undef $ac_func
    13760 
    13761 /* Override any GCC internal prototype to avoid an error.
    13762    Use char because int might match the return type of a GCC
    13763    builtin and then its argument prototype would still apply.  */
    13764 #ifdef __cplusplus
    13765 extern "C"
    13766 #endif
    13767 char $ac_func ();
    13768 /* The GNU C library defines this for functions which it implements
    13769     to always fail with ENOSYS.  Some functions are actually named
    13770     something starting with __ and the normal name is an alias.  */
    13771 #if defined __stub_$ac_func || defined __stub___$ac_func
    13772 choke me
    13773 #endif
    13774 
    13775 int
    13776 main ()
    13777 {
    13778 return $ac_func ();
    13779   ;
    13780   return 0;
    13781 }
    13782 _ACEOF
    13783 rm -f conftest.$ac_objext conftest$ac_exeext
    13784 if { (ac_try="$ac_link"
    13785 case "(($ac_try" in
    13786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13787   *) ac_try_echo=$ac_try;;
    13788 esac
    13789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13790 $as_echo "$ac_try_echo") >&5
    13791   (eval "$ac_link") 2>conftest.er1
    13792   ac_status=$?
    13793   grep -v '^ *+' conftest.er1 >conftest.err
    13794   rm -f conftest.er1
    13795   cat conftest.err >&5
    13796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13797   (exit $ac_status); } && {
    13798          test -z "$ac_cxx_werror_flag" ||
    13799          test ! -s conftest.err
    13800        } && test -s conftest$ac_exeext && {
    13801          test "$cross_compiling" = yes ||
    13802          $as_test_x conftest$ac_exeext
    13803        }; then
    13804   eval "$as_ac_var=yes"
    13805 else
    13806   $as_echo "$as_me: failed program was:" >&5
    13807 sed 's/^/| /' conftest.$ac_ext >&5
    13808 
    13809         eval "$as_ac_var=no"
    13810 fi
    13811 
    13812 rm -rf conftest.dSYM
    13813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13814       conftest$ac_exeext conftest.$ac_ext
    13815 fi
    13816 ac_res=`eval 'as_val=${'$as_ac_var'}
    13817                  $as_echo "$as_val"'`
    13818                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13819 $as_echo "$ac_res" >&6; }
    13820 as_val=`eval 'as_val=${'$as_ac_var'}
    13821                  $as_echo "$as_val"'`
    13822    if test "x$as_val" = x""yes; then
    13823   cat >>confdefs.h <<_ACEOF
    13824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    13825 _ACEOF
    13826 
    13827 fi
    13828 done
    13829 
    13830 
    13831 for ac_func in guess_format
    13832 do
    13833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13834 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13835 $as_echo_n "checking for $ac_func... " >&6; }
    13836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13837   $as_echo_n "(cached) " >&6
    13838 else
    13839   cat >conftest.$ac_ext <<_ACEOF
    13840 /* confdefs.h.  */
    13841 _ACEOF
    13842 cat confdefs.h >>conftest.$ac_ext
    13843 cat >>conftest.$ac_ext <<_ACEOF
    13844 /* end confdefs.h.  */
    13845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13847 #define $ac_func innocuous_$ac_func
    13848 
    13849 /* System header to define __stub macros and hopefully few prototypes,
    13850     which can conflict with char $ac_func (); below.
    13851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13852     <limits.h> exists even on freestanding compilers.  */
    13853 
    13854 #ifdef __STDC__
    13855 # include <limits.h>
    13856 #else
    13857 # include <assert.h>
    13858 #endif
    13859 
    13860 #undef $ac_func
    13861 
    13862 /* Override any GCC internal prototype to avoid an error.
    13863    Use char because int might match the return type of a GCC
    13864    builtin and then its argument prototype would still apply.  */
    13865 #ifdef __cplusplus
    13866 extern "C"
    13867 #endif
    13868 char $ac_func ();
    13869 /* The GNU C library defines this for functions which it implements
    13870     to always fail with ENOSYS.  Some functions are actually named
    13871     something starting with __ and the normal name is an alias.  */
    13872 #if defined __stub_$ac_func || defined __stub___$ac_func
    13873 choke me
    13874 #endif
    13875 
    13876 int
    13877 main ()
    13878 {
    13879 return $ac_func ();
    13880   ;
    13881   return 0;
    13882 }
    13883 _ACEOF
    13884 rm -f conftest.$ac_objext conftest$ac_exeext
    13885 if { (ac_try="$ac_link"
    13886 case "(($ac_try" in
    13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13888   *) ac_try_echo=$ac_try;;
    13889 esac
    13890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13891 $as_echo "$ac_try_echo") >&5
    13892   (eval "$ac_link") 2>conftest.er1
    13893   ac_status=$?
    13894   grep -v '^ *+' conftest.er1 >conftest.err
    13895   rm -f conftest.er1
    13896   cat conftest.err >&5
    13897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13898   (exit $ac_status); } && {
    13899          test -z "$ac_cxx_werror_flag" ||
    13900          test ! -s conftest.err
    13901        } && test -s conftest$ac_exeext && {
    13902          test "$cross_compiling" = yes ||
    13903          $as_test_x conftest$ac_exeext
    13904        }; then
    13905   eval "$as_ac_var=yes"
    13906 else
    13907   $as_echo "$as_me: failed program was:" >&5
    13908 sed 's/^/| /' conftest.$ac_ext >&5
    13909 
    13910         eval "$as_ac_var=no"
    13911 fi
    13912 
    13913 rm -rf conftest.dSYM
    13914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    13915       conftest$ac_exeext conftest.$ac_ext
    13916 fi
    13917 ac_res=`eval 'as_val=${'$as_ac_var'}
    13918                  $as_echo "$as_val"'`
    13919                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    13920 $as_echo "$ac_res" >&6; }
    13921 as_val=`eval 'as_val=${'$as_ac_var'}
    13922                  $as_echo "$as_val"'`
    13923    if test "x$as_val" = x""yes; then
    13924   cat >>confdefs.h <<_ACEOF
    13925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    13926 _ACEOF
    13927 
    13928 fi
    13929 done
    13930 
    13931 
    13932 for ac_func in av_dump_format
    13933 do
    13934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    13935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    13936 $as_echo_n "checking for $ac_func... " >&6; }
    13937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    13938   $as_echo_n "(cached) " >&6
    13939 else
    13940   cat >conftest.$ac_ext <<_ACEOF
    13941 /* confdefs.h.  */
    13942 _ACEOF
    13943 cat confdefs.h >>conftest.$ac_ext
    13944 cat >>conftest.$ac_ext <<_ACEOF
    13945 /* end confdefs.h.  */
    13946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    13947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13948 #define $ac_func innocuous_$ac_func
    13949 
    13950 /* System header to define __stub macros and hopefully few prototypes,
    13951     which can conflict with char $ac_func (); below.
    13952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13953     <limits.h> exists even on freestanding compilers.  */
    13954 
    13955 #ifdef __STDC__
    13956 # include <limits.h>
    13957 #else
    13958 # include <assert.h>
    13959 #endif
    13960 
    13961 #undef $ac_func
    13962 
    13963 /* Override any GCC internal prototype to avoid an error.
    13964    Use char because int might match the return type of a GCC
    13965    builtin and then its argument prototype would still apply.  */
    13966 #ifdef __cplusplus
    13967 extern "C"
    13968 #endif
    13969 char $ac_func ();
    13970 /* The GNU C library defines this for functions which it implements
    13971     to always fail with ENOSYS.  Some functions are actually named
    13972     something starting with __ and the normal name is an alias.  */
    13973 #if defined __stub_$ac_func || defined __stub___$ac_func
    13974 choke me
    13975 #endif
    13976 
    13977 int
    13978 main ()
    13979 {
    13980 return $ac_func ();
    13981   ;
    13982   return 0;
    13983 }
    13984 _ACEOF
    13985 rm -f conftest.$ac_objext conftest$ac_exeext
    13986 if { (ac_try="$ac_link"
    13987 case "(($ac_try" in
    13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    13989   *) ac_try_echo=$ac_try;;
    13990 esac
    13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    13992 $as_echo "$ac_try_echo") >&5
    13993   (eval "$ac_link") 2>conftest.er1
    13994   ac_status=$?
    13995   grep -v '^ *+' conftest.er1 >conftest.err
    13996   rm -f conftest.er1
    13997   cat conftest.err >&5
    13998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13999   (exit $ac_status); } && {
    14000          test -z "$ac_cxx_werror_flag" ||
    14001          test ! -s conftest.err
    14002        } && test -s conftest$ac_exeext && {
    14003          test "$cross_compiling" = yes ||
    14004          $as_test_x conftest$ac_exeext
    14005        }; then
    14006   eval "$as_ac_var=yes"
    14007 else
    14008   $as_echo "$as_me: failed program was:" >&5
    14009 sed 's/^/| /' conftest.$ac_ext >&5
    14010 
    14011         eval "$as_ac_var=no"
    14012 fi
    14013 
    14014 rm -rf conftest.dSYM
    14015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14016       conftest$ac_exeext conftest.$ac_ext
    14017 fi
    14018 ac_res=`eval 'as_val=${'$as_ac_var'}
    14019                  $as_echo "$as_val"'`
    14020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14021 $as_echo "$ac_res" >&6; }
    14022 as_val=`eval 'as_val=${'$as_ac_var'}
    14023                  $as_echo "$as_val"'`
    14024    if test "x$as_val" = x""yes; then
    14025   cat >>confdefs.h <<_ACEOF
    14026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14027 _ACEOF
    14028 
    14029 fi
    14030 done
    14031 
    14032 
    14033 for ac_func in dump_format
    14034 do
    14035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14037 $as_echo_n "checking for $ac_func... " >&6; }
    14038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14039   $as_echo_n "(cached) " >&6
    14040 else
    14041   cat >conftest.$ac_ext <<_ACEOF
    14042 /* confdefs.h.  */
    14043 _ACEOF
    14044 cat confdefs.h >>conftest.$ac_ext
    14045 cat >>conftest.$ac_ext <<_ACEOF
    14046 /* end confdefs.h.  */
    14047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14049 #define $ac_func innocuous_$ac_func
    14050 
    14051 /* System header to define __stub macros and hopefully few prototypes,
    14052     which can conflict with char $ac_func (); below.
    14053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14054     <limits.h> exists even on freestanding compilers.  */
    14055 
    14056 #ifdef __STDC__
    14057 # include <limits.h>
    14058 #else
    14059 # include <assert.h>
    14060 #endif
    14061 
    14062 #undef $ac_func
    14063 
    14064 /* Override any GCC internal prototype to avoid an error.
    14065    Use char because int might match the return type of a GCC
    14066    builtin and then its argument prototype would still apply.  */
    14067 #ifdef __cplusplus
    14068 extern "C"
    14069 #endif
    14070 char $ac_func ();
    14071 /* The GNU C library defines this for functions which it implements
    14072     to always fail with ENOSYS.  Some functions are actually named
    14073     something starting with __ and the normal name is an alias.  */
    14074 #if defined __stub_$ac_func || defined __stub___$ac_func
    14075 choke me
    14076 #endif
    14077 
    14078 int
    14079 main ()
    14080 {
    14081 return $ac_func ();
    14082   ;
    14083   return 0;
    14084 }
    14085 _ACEOF
    14086 rm -f conftest.$ac_objext conftest$ac_exeext
    14087 if { (ac_try="$ac_link"
    14088 case "(($ac_try" in
    14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14090   *) ac_try_echo=$ac_try;;
    14091 esac
    14092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14093 $as_echo "$ac_try_echo") >&5
    14094   (eval "$ac_link") 2>conftest.er1
    14095   ac_status=$?
    14096   grep -v '^ *+' conftest.er1 >conftest.err
    14097   rm -f conftest.er1
    14098   cat conftest.err >&5
    14099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14100   (exit $ac_status); } && {
    14101          test -z "$ac_cxx_werror_flag" ||
    14102          test ! -s conftest.err
    14103        } && test -s conftest$ac_exeext && {
    14104          test "$cross_compiling" = yes ||
    14105          $as_test_x conftest$ac_exeext
    14106        }; then
    14107   eval "$as_ac_var=yes"
    14108 else
    14109   $as_echo "$as_me: failed program was:" >&5
    14110 sed 's/^/| /' conftest.$ac_ext >&5
    14111 
    14112         eval "$as_ac_var=no"
    14113 fi
    14114 
    14115 rm -rf conftest.dSYM
    14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14117       conftest$ac_exeext conftest.$ac_ext
    14118 fi
    14119 ac_res=`eval 'as_val=${'$as_ac_var'}
    14120                  $as_echo "$as_val"'`
    14121                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14122 $as_echo "$ac_res" >&6; }
    14123 as_val=`eval 'as_val=${'$as_ac_var'}
    14124                  $as_echo "$as_val"'`
    14125    if test "x$as_val" = x""yes; then
    14126   cat >>confdefs.h <<_ACEOF
    14127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14128 _ACEOF
    14129 
    14130 fi
    14131 done
    14132 
    14133 
    14134 for ac_func in avio_open
    14135 do
    14136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14137 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14138 $as_echo_n "checking for $ac_func... " >&6; }
    14139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14140   $as_echo_n "(cached) " >&6
    14141 else
    14142   cat >conftest.$ac_ext <<_ACEOF
    14143 /* confdefs.h.  */
    14144 _ACEOF
    14145 cat confdefs.h >>conftest.$ac_ext
    14146 cat >>conftest.$ac_ext <<_ACEOF
    14147 /* end confdefs.h.  */
    14148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14150 #define $ac_func innocuous_$ac_func
    14151 
    14152 /* System header to define __stub macros and hopefully few prototypes,
    14153     which can conflict with char $ac_func (); below.
    14154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14155     <limits.h> exists even on freestanding compilers.  */
    14156 
    14157 #ifdef __STDC__
    14158 # include <limits.h>
    14159 #else
    14160 # include <assert.h>
    14161 #endif
    14162 
    14163 #undef $ac_func
    14164 
    14165 /* Override any GCC internal prototype to avoid an error.
    14166    Use char because int might match the return type of a GCC
    14167    builtin and then its argument prototype would still apply.  */
    14168 #ifdef __cplusplus
    14169 extern "C"
    14170 #endif
    14171 char $ac_func ();
    14172 /* The GNU C library defines this for functions which it implements
    14173     to always fail with ENOSYS.  Some functions are actually named
    14174     something starting with __ and the normal name is an alias.  */
    14175 #if defined __stub_$ac_func || defined __stub___$ac_func
    14176 choke me
    14177 #endif
    14178 
    14179 int
    14180 main ()
    14181 {
    14182 return $ac_func ();
    14183   ;
    14184   return 0;
    14185 }
    14186 _ACEOF
    14187 rm -f conftest.$ac_objext conftest$ac_exeext
    14188 if { (ac_try="$ac_link"
    14189 case "(($ac_try" in
    14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14191   *) ac_try_echo=$ac_try;;
    14192 esac
    14193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14194 $as_echo "$ac_try_echo") >&5
    14195   (eval "$ac_link") 2>conftest.er1
    14196   ac_status=$?
    14197   grep -v '^ *+' conftest.er1 >conftest.err
    14198   rm -f conftest.er1
    14199   cat conftest.err >&5
    14200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14201   (exit $ac_status); } && {
    14202          test -z "$ac_cxx_werror_flag" ||
    14203          test ! -s conftest.err
    14204        } && test -s conftest$ac_exeext && {
    14205          test "$cross_compiling" = yes ||
    14206          $as_test_x conftest$ac_exeext
    14207        }; then
    14208   eval "$as_ac_var=yes"
    14209 else
    14210   $as_echo "$as_me: failed program was:" >&5
    14211 sed 's/^/| /' conftest.$ac_ext >&5
    14212 
    14213         eval "$as_ac_var=no"
    14214 fi
    14215 
    14216 rm -rf conftest.dSYM
    14217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14218       conftest$ac_exeext conftest.$ac_ext
    14219 fi
    14220 ac_res=`eval 'as_val=${'$as_ac_var'}
    14221                  $as_echo "$as_val"'`
    14222                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14223 $as_echo "$ac_res" >&6; }
    14224 as_val=`eval 'as_val=${'$as_ac_var'}
    14225                  $as_echo "$as_val"'`
    14226    if test "x$as_val" = x""yes; then
    14227   cat >>confdefs.h <<_ACEOF
    14228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14229 _ACEOF
    14230 
    14231 fi
    14232 done
    14233 
    14234 
    14235 for ac_func in url_fopen
    14236 do
    14237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14239 $as_echo_n "checking for $ac_func... " >&6; }
    14240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14241   $as_echo_n "(cached) " >&6
    14242 else
    14243   cat >conftest.$ac_ext <<_ACEOF
    14244 /* confdefs.h.  */
    14245 _ACEOF
    14246 cat confdefs.h >>conftest.$ac_ext
    14247 cat >>conftest.$ac_ext <<_ACEOF
    14248 /* end confdefs.h.  */
    14249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14251 #define $ac_func innocuous_$ac_func
    14252 
    14253 /* System header to define __stub macros and hopefully few prototypes,
    14254     which can conflict with char $ac_func (); below.
    14255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14256     <limits.h> exists even on freestanding compilers.  */
    14257 
    14258 #ifdef __STDC__
    14259 # include <limits.h>
    14260 #else
    14261 # include <assert.h>
    14262 #endif
    14263 
    14264 #undef $ac_func
    14265 
    14266 /* Override any GCC internal prototype to avoid an error.
    14267    Use char because int might match the return type of a GCC
    14268    builtin and then its argument prototype would still apply.  */
    14269 #ifdef __cplusplus
    14270 extern "C"
    14271 #endif
    14272 char $ac_func ();
    14273 /* The GNU C library defines this for functions which it implements
    14274     to always fail with ENOSYS.  Some functions are actually named
    14275     something starting with __ and the normal name is an alias.  */
    14276 #if defined __stub_$ac_func || defined __stub___$ac_func
    14277 choke me
    14278 #endif
    14279 
    14280 int
    14281 main ()
    14282 {
    14283 return $ac_func ();
    14284   ;
    14285   return 0;
    14286 }
    14287 _ACEOF
    14288 rm -f conftest.$ac_objext conftest$ac_exeext
    14289 if { (ac_try="$ac_link"
    14290 case "(($ac_try" in
    14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14292   *) ac_try_echo=$ac_try;;
    14293 esac
    14294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14295 $as_echo "$ac_try_echo") >&5
    14296   (eval "$ac_link") 2>conftest.er1
    14297   ac_status=$?
    14298   grep -v '^ *+' conftest.er1 >conftest.err
    14299   rm -f conftest.er1
    14300   cat conftest.err >&5
    14301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14302   (exit $ac_status); } && {
    14303          test -z "$ac_cxx_werror_flag" ||
    14304          test ! -s conftest.err
    14305        } && test -s conftest$ac_exeext && {
    14306          test "$cross_compiling" = yes ||
    14307          $as_test_x conftest$ac_exeext
    14308        }; then
    14309   eval "$as_ac_var=yes"
    14310 else
    14311   $as_echo "$as_me: failed program was:" >&5
    14312 sed 's/^/| /' conftest.$ac_ext >&5
    14313 
    14314         eval "$as_ac_var=no"
    14315 fi
    14316 
    14317 rm -rf conftest.dSYM
    14318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14319       conftest$ac_exeext conftest.$ac_ext
    14320 fi
    14321 ac_res=`eval 'as_val=${'$as_ac_var'}
    14322                  $as_echo "$as_val"'`
    14323                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14324 $as_echo "$ac_res" >&6; }
    14325 as_val=`eval 'as_val=${'$as_ac_var'}
    14326                  $as_echo "$as_val"'`
    14327    if test "x$as_val" = x""yes; then
    14328   cat >>confdefs.h <<_ACEOF
    14329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14330 _ACEOF
    14331 
    14332 fi
    14333 done
    14334 
    14335 
    14336 for ac_func in avio_close
    14337 do
    14338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14340 $as_echo_n "checking for $ac_func... " >&6; }
    14341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14342   $as_echo_n "(cached) " >&6
    14343 else
    14344   cat >conftest.$ac_ext <<_ACEOF
    14345 /* confdefs.h.  */
    14346 _ACEOF
    14347 cat confdefs.h >>conftest.$ac_ext
    14348 cat >>conftest.$ac_ext <<_ACEOF
    14349 /* end confdefs.h.  */
    14350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14352 #define $ac_func innocuous_$ac_func
    14353 
    14354 /* System header to define __stub macros and hopefully few prototypes,
    14355     which can conflict with char $ac_func (); below.
    14356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14357     <limits.h> exists even on freestanding compilers.  */
    14358 
    14359 #ifdef __STDC__
    14360 # include <limits.h>
    14361 #else
    14362 # include <assert.h>
    14363 #endif
    14364 
    14365 #undef $ac_func
    14366 
    14367 /* Override any GCC internal prototype to avoid an error.
    14368    Use char because int might match the return type of a GCC
    14369    builtin and then its argument prototype would still apply.  */
    14370 #ifdef __cplusplus
    14371 extern "C"
    14372 #endif
    14373 char $ac_func ();
    14374 /* The GNU C library defines this for functions which it implements
    14375     to always fail with ENOSYS.  Some functions are actually named
    14376     something starting with __ and the normal name is an alias.  */
    14377 #if defined __stub_$ac_func || defined __stub___$ac_func
    14378 choke me
    14379 #endif
    14380 
    14381 int
    14382 main ()
    14383 {
    14384 return $ac_func ();
    14385   ;
    14386   return 0;
    14387 }
    14388 _ACEOF
    14389 rm -f conftest.$ac_objext conftest$ac_exeext
    14390 if { (ac_try="$ac_link"
    14391 case "(($ac_try" in
    14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14393   *) ac_try_echo=$ac_try;;
    14394 esac
    14395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14396 $as_echo "$ac_try_echo") >&5
    14397   (eval "$ac_link") 2>conftest.er1
    14398   ac_status=$?
    14399   grep -v '^ *+' conftest.er1 >conftest.err
    14400   rm -f conftest.er1
    14401   cat conftest.err >&5
    14402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14403   (exit $ac_status); } && {
    14404          test -z "$ac_cxx_werror_flag" ||
    14405          test ! -s conftest.err
    14406        } && test -s conftest$ac_exeext && {
    14407          test "$cross_compiling" = yes ||
    14408          $as_test_x conftest$ac_exeext
    14409        }; then
    14410   eval "$as_ac_var=yes"
    14411 else
    14412   $as_echo "$as_me: failed program was:" >&5
    14413 sed 's/^/| /' conftest.$ac_ext >&5
    14414 
    14415         eval "$as_ac_var=no"
    14416 fi
    14417 
    14418 rm -rf conftest.dSYM
    14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14420       conftest$ac_exeext conftest.$ac_ext
    14421 fi
    14422 ac_res=`eval 'as_val=${'$as_ac_var'}
    14423                  $as_echo "$as_val"'`
    14424                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14425 $as_echo "$ac_res" >&6; }
    14426 as_val=`eval 'as_val=${'$as_ac_var'}
    14427                  $as_echo "$as_val"'`
    14428    if test "x$as_val" = x""yes; then
    14429   cat >>confdefs.h <<_ACEOF
    14430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14431 _ACEOF
    14432 
    14433 fi
    14434 done
    14435 
    14436 
    14437 for ac_func in url_fclose
    14438 do
    14439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14440 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14441 $as_echo_n "checking for $ac_func... " >&6; }
    14442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14443   $as_echo_n "(cached) " >&6
    14444 else
    14445   cat >conftest.$ac_ext <<_ACEOF
    14446 /* confdefs.h.  */
    14447 _ACEOF
    14448 cat confdefs.h >>conftest.$ac_ext
    14449 cat >>conftest.$ac_ext <<_ACEOF
    14450 /* end confdefs.h.  */
    14451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14453 #define $ac_func innocuous_$ac_func
    14454 
    14455 /* System header to define __stub macros and hopefully few prototypes,
    14456     which can conflict with char $ac_func (); below.
    14457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14458     <limits.h> exists even on freestanding compilers.  */
    14459 
    14460 #ifdef __STDC__
    14461 # include <limits.h>
    14462 #else
    14463 # include <assert.h>
    14464 #endif
    14465 
    14466 #undef $ac_func
    14467 
    14468 /* Override any GCC internal prototype to avoid an error.
    14469    Use char because int might match the return type of a GCC
    14470    builtin and then its argument prototype would still apply.  */
    14471 #ifdef __cplusplus
    14472 extern "C"
    14473 #endif
    14474 char $ac_func ();
    14475 /* The GNU C library defines this for functions which it implements
    14476     to always fail with ENOSYS.  Some functions are actually named
    14477     something starting with __ and the normal name is an alias.  */
    14478 #if defined __stub_$ac_func || defined __stub___$ac_func
    14479 choke me
    14480 #endif
    14481 
    14482 int
    14483 main ()
    14484 {
    14485 return $ac_func ();
    14486   ;
    14487   return 0;
    14488 }
    14489 _ACEOF
    14490 rm -f conftest.$ac_objext conftest$ac_exeext
    14491 if { (ac_try="$ac_link"
    14492 case "(($ac_try" in
    14493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14494   *) ac_try_echo=$ac_try;;
    14495 esac
    14496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14497 $as_echo "$ac_try_echo") >&5
    14498   (eval "$ac_link") 2>conftest.er1
    14499   ac_status=$?
    14500   grep -v '^ *+' conftest.er1 >conftest.err
    14501   rm -f conftest.er1
    14502   cat conftest.err >&5
    14503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14504   (exit $ac_status); } && {
    14505          test -z "$ac_cxx_werror_flag" ||
    14506          test ! -s conftest.err
    14507        } && test -s conftest$ac_exeext && {
    14508          test "$cross_compiling" = yes ||
    14509          $as_test_x conftest$ac_exeext
    14510        }; then
    14511   eval "$as_ac_var=yes"
    14512 else
    14513   $as_echo "$as_me: failed program was:" >&5
    14514 sed 's/^/| /' conftest.$ac_ext >&5
    14515 
    14516         eval "$as_ac_var=no"
    14517 fi
    14518 
    14519 rm -rf conftest.dSYM
    14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14521       conftest$ac_exeext conftest.$ac_ext
    14522 fi
    14523 ac_res=`eval 'as_val=${'$as_ac_var'}
    14524                  $as_echo "$as_val"'`
    14525                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14526 $as_echo "$ac_res" >&6; }
    14527 as_val=`eval 'as_val=${'$as_ac_var'}
    14528                  $as_echo "$as_val"'`
    14529    if test "x$as_val" = x""yes; then
    14530   cat >>confdefs.h <<_ACEOF
    14531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14532 _ACEOF
    14533 
    14534 fi
    14535 done
    14536 
    14537 
    14538 for ac_func in avformat_alloc_context
    14539 do
    14540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14542 $as_echo_n "checking for $ac_func... " >&6; }
    14543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14544   $as_echo_n "(cached) " >&6
    14545 else
    14546   cat >conftest.$ac_ext <<_ACEOF
    14547 /* confdefs.h.  */
    14548 _ACEOF
    14549 cat confdefs.h >>conftest.$ac_ext
    14550 cat >>conftest.$ac_ext <<_ACEOF
    14551 /* end confdefs.h.  */
    14552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14554 #define $ac_func innocuous_$ac_func
    14555 
    14556 /* System header to define __stub macros and hopefully few prototypes,
    14557     which can conflict with char $ac_func (); below.
    14558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14559     <limits.h> exists even on freestanding compilers.  */
    14560 
    14561 #ifdef __STDC__
    14562 # include <limits.h>
    14563 #else
    14564 # include <assert.h>
    14565 #endif
    14566 
    14567 #undef $ac_func
    14568 
    14569 /* Override any GCC internal prototype to avoid an error.
    14570    Use char because int might match the return type of a GCC
    14571    builtin and then its argument prototype would still apply.  */
    14572 #ifdef __cplusplus
    14573 extern "C"
    14574 #endif
    14575 char $ac_func ();
    14576 /* The GNU C library defines this for functions which it implements
    14577     to always fail with ENOSYS.  Some functions are actually named
    14578     something starting with __ and the normal name is an alias.  */
    14579 #if defined __stub_$ac_func || defined __stub___$ac_func
    14580 choke me
    14581 #endif
    14582 
    14583 int
    14584 main ()
    14585 {
    14586 return $ac_func ();
    14587   ;
    14588   return 0;
    14589 }
    14590 _ACEOF
    14591 rm -f conftest.$ac_objext conftest$ac_exeext
    14592 if { (ac_try="$ac_link"
    14593 case "(($ac_try" in
    14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14595   *) ac_try_echo=$ac_try;;
    14596 esac
    14597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14598 $as_echo "$ac_try_echo") >&5
    14599   (eval "$ac_link") 2>conftest.er1
    14600   ac_status=$?
    14601   grep -v '^ *+' conftest.er1 >conftest.err
    14602   rm -f conftest.er1
    14603   cat conftest.err >&5
    14604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14605   (exit $ac_status); } && {
    14606          test -z "$ac_cxx_werror_flag" ||
    14607          test ! -s conftest.err
    14608        } && test -s conftest$ac_exeext && {
    14609          test "$cross_compiling" = yes ||
    14610          $as_test_x conftest$ac_exeext
    14611        }; then
    14612   eval "$as_ac_var=yes"
    14613 else
    14614   $as_echo "$as_me: failed program was:" >&5
    14615 sed 's/^/| /' conftest.$ac_ext >&5
    14616 
    14617         eval "$as_ac_var=no"
    14618 fi
    14619 
    14620 rm -rf conftest.dSYM
    14621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14622       conftest$ac_exeext conftest.$ac_ext
    14623 fi
    14624 ac_res=`eval 'as_val=${'$as_ac_var'}
    14625                  $as_echo "$as_val"'`
    14626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14627 $as_echo "$ac_res" >&6; }
    14628 as_val=`eval 'as_val=${'$as_ac_var'}
    14629                  $as_echo "$as_val"'`
    14630    if test "x$as_val" = x""yes; then
    14631   cat >>confdefs.h <<_ACEOF
    14632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14633 _ACEOF
    14634 
    14635 fi
    14636 done
    14637 
    14638 
    14639 for ac_func in av_alloc_format_context
    14640 do
    14641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14642 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14643 $as_echo_n "checking for $ac_func... " >&6; }
    14644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14645   $as_echo_n "(cached) " >&6
    14646 else
    14647   cat >conftest.$ac_ext <<_ACEOF
    14648 /* confdefs.h.  */
    14649 _ACEOF
    14650 cat confdefs.h >>conftest.$ac_ext
    14651 cat >>conftest.$ac_ext <<_ACEOF
    14652 /* end confdefs.h.  */
    14653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14655 #define $ac_func innocuous_$ac_func
    14656 
    14657 /* System header to define __stub macros and hopefully few prototypes,
    14658     which can conflict with char $ac_func (); below.
    14659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14660     <limits.h> exists even on freestanding compilers.  */
    14661 
    14662 #ifdef __STDC__
    14663 # include <limits.h>
    14664 #else
    14665 # include <assert.h>
    14666 #endif
    14667 
    14668 #undef $ac_func
    14669 
    14670 /* Override any GCC internal prototype to avoid an error.
    14671    Use char because int might match the return type of a GCC
    14672    builtin and then its argument prototype would still apply.  */
    14673 #ifdef __cplusplus
    14674 extern "C"
    14675 #endif
    14676 char $ac_func ();
    14677 /* The GNU C library defines this for functions which it implements
    14678     to always fail with ENOSYS.  Some functions are actually named
    14679     something starting with __ and the normal name is an alias.  */
    14680 #if defined __stub_$ac_func || defined __stub___$ac_func
    14681 choke me
    14682 #endif
    14683 
    14684 int
    14685 main ()
    14686 {
    14687 return $ac_func ();
    14688   ;
    14689   return 0;
    14690 }
    14691 _ACEOF
    14692 rm -f conftest.$ac_objext conftest$ac_exeext
    14693 if { (ac_try="$ac_link"
    14694 case "(($ac_try" in
    14695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14696   *) ac_try_echo=$ac_try;;
    14697 esac
    14698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14699 $as_echo "$ac_try_echo") >&5
    14700   (eval "$ac_link") 2>conftest.er1
    14701   ac_status=$?
    14702   grep -v '^ *+' conftest.er1 >conftest.err
    14703   rm -f conftest.er1
    14704   cat conftest.err >&5
    14705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14706   (exit $ac_status); } && {
    14707          test -z "$ac_cxx_werror_flag" ||
    14708          test ! -s conftest.err
    14709        } && test -s conftest$ac_exeext && {
    14710          test "$cross_compiling" = yes ||
    14711          $as_test_x conftest$ac_exeext
    14712        }; then
    14713   eval "$as_ac_var=yes"
    14714 else
    14715   $as_echo "$as_me: failed program was:" >&5
    14716 sed 's/^/| /' conftest.$ac_ext >&5
    14717 
    14718         eval "$as_ac_var=no"
    14719 fi
    14720 
    14721 rm -rf conftest.dSYM
    14722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14723       conftest$ac_exeext conftest.$ac_ext
    14724 fi
    14725 ac_res=`eval 'as_val=${'$as_ac_var'}
    14726                  $as_echo "$as_val"'`
    14727                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14728 $as_echo "$ac_res" >&6; }
    14729 as_val=`eval 'as_val=${'$as_ac_var'}
    14730                  $as_echo "$as_val"'`
    14731    if test "x$as_val" = x""yes; then
    14732   cat >>confdefs.h <<_ACEOF
    14733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14734 _ACEOF
    14735 
    14736 fi
    14737 done
    14738 
    14739 
    14740 for ac_func in av_set_parameters
    14741 do
    14742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14743 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14744 $as_echo_n "checking for $ac_func... " >&6; }
    14745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14746   $as_echo_n "(cached) " >&6
    14747 else
    14748   cat >conftest.$ac_ext <<_ACEOF
    14749 /* confdefs.h.  */
    14750 _ACEOF
    14751 cat confdefs.h >>conftest.$ac_ext
    14752 cat >>conftest.$ac_ext <<_ACEOF
    14753 /* end confdefs.h.  */
    14754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14756 #define $ac_func innocuous_$ac_func
    14757 
    14758 /* System header to define __stub macros and hopefully few prototypes,
    14759     which can conflict with char $ac_func (); below.
    14760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14761     <limits.h> exists even on freestanding compilers.  */
    14762 
    14763 #ifdef __STDC__
    14764 # include <limits.h>
    14765 #else
    14766 # include <assert.h>
    14767 #endif
    14768 
    14769 #undef $ac_func
    14770 
    14771 /* Override any GCC internal prototype to avoid an error.
    14772    Use char because int might match the return type of a GCC
    14773    builtin and then its argument prototype would still apply.  */
    14774 #ifdef __cplusplus
    14775 extern "C"
    14776 #endif
    14777 char $ac_func ();
    14778 /* The GNU C library defines this for functions which it implements
    14779     to always fail with ENOSYS.  Some functions are actually named
    14780     something starting with __ and the normal name is an alias.  */
    14781 #if defined __stub_$ac_func || defined __stub___$ac_func
    14782 choke me
    14783 #endif
    14784 
    14785 int
    14786 main ()
    14787 {
    14788 return $ac_func ();
    14789   ;
    14790   return 0;
    14791 }
    14792 _ACEOF
    14793 rm -f conftest.$ac_objext conftest$ac_exeext
    14794 if { (ac_try="$ac_link"
    14795 case "(($ac_try" in
    14796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14797   *) ac_try_echo=$ac_try;;
    14798 esac
    14799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14800 $as_echo "$ac_try_echo") >&5
    14801   (eval "$ac_link") 2>conftest.er1
    14802   ac_status=$?
    14803   grep -v '^ *+' conftest.er1 >conftest.err
    14804   rm -f conftest.er1
    14805   cat conftest.err >&5
    14806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14807   (exit $ac_status); } && {
    14808          test -z "$ac_cxx_werror_flag" ||
    14809          test ! -s conftest.err
    14810        } && test -s conftest$ac_exeext && {
    14811          test "$cross_compiling" = yes ||
    14812          $as_test_x conftest$ac_exeext
    14813        }; then
    14814   eval "$as_ac_var=yes"
    14815 else
    14816   $as_echo "$as_me: failed program was:" >&5
    14817 sed 's/^/| /' conftest.$ac_ext >&5
    14818 
    14819         eval "$as_ac_var=no"
    14820 fi
    14821 
    14822 rm -rf conftest.dSYM
    14823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14824       conftest$ac_exeext conftest.$ac_ext
    14825 fi
    14826 ac_res=`eval 'as_val=${'$as_ac_var'}
    14827                  $as_echo "$as_val"'`
    14828                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14829 $as_echo "$ac_res" >&6; }
    14830 as_val=`eval 'as_val=${'$as_ac_var'}
    14831                  $as_echo "$as_val"'`
    14832    if test "x$as_val" = x""yes; then
    14833   cat >>confdefs.h <<_ACEOF
    14834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14835 _ACEOF
    14836 
    14837 fi
    14838 done
    14839 
    14840 
    14841 for ac_func in avformat_write_header
    14842 do
    14843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14844 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14845 $as_echo_n "checking for $ac_func... " >&6; }
    14846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14847   $as_echo_n "(cached) " >&6
    14848 else
    14849   cat >conftest.$ac_ext <<_ACEOF
    14850 /* confdefs.h.  */
    14851 _ACEOF
    14852 cat confdefs.h >>conftest.$ac_ext
    14853 cat >>conftest.$ac_ext <<_ACEOF
    14854 /* end confdefs.h.  */
    14855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14857 #define $ac_func innocuous_$ac_func
    14858 
    14859 /* System header to define __stub macros and hopefully few prototypes,
    14860     which can conflict with char $ac_func (); below.
    14861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14862     <limits.h> exists even on freestanding compilers.  */
    14863 
    14864 #ifdef __STDC__
    14865 # include <limits.h>
    14866 #else
    14867 # include <assert.h>
    14868 #endif
    14869 
    14870 #undef $ac_func
    14871 
    14872 /* Override any GCC internal prototype to avoid an error.
    14873    Use char because int might match the return type of a GCC
    14874    builtin and then its argument prototype would still apply.  */
    14875 #ifdef __cplusplus
    14876 extern "C"
    14877 #endif
    14878 char $ac_func ();
    14879 /* The GNU C library defines this for functions which it implements
    14880     to always fail with ENOSYS.  Some functions are actually named
    14881     something starting with __ and the normal name is an alias.  */
    14882 #if defined __stub_$ac_func || defined __stub___$ac_func
    14883 choke me
    14884 #endif
    14885 
    14886 int
    14887 main ()
    14888 {
    14889 return $ac_func ();
    14890   ;
    14891   return 0;
    14892 }
    14893 _ACEOF
    14894 rm -f conftest.$ac_objext conftest$ac_exeext
    14895 if { (ac_try="$ac_link"
    14896 case "(($ac_try" in
    14897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14898   *) ac_try_echo=$ac_try;;
    14899 esac
    14900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    14901 $as_echo "$ac_try_echo") >&5
    14902   (eval "$ac_link") 2>conftest.er1
    14903   ac_status=$?
    14904   grep -v '^ *+' conftest.er1 >conftest.err
    14905   rm -f conftest.er1
    14906   cat conftest.err >&5
    14907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14908   (exit $ac_status); } && {
    14909          test -z "$ac_cxx_werror_flag" ||
    14910          test ! -s conftest.err
    14911        } && test -s conftest$ac_exeext && {
    14912          test "$cross_compiling" = yes ||
    14913          $as_test_x conftest$ac_exeext
    14914        }; then
    14915   eval "$as_ac_var=yes"
    14916 else
    14917   $as_echo "$as_me: failed program was:" >&5
    14918 sed 's/^/| /' conftest.$ac_ext >&5
    14919 
    14920         eval "$as_ac_var=no"
    14921 fi
    14922 
    14923 rm -rf conftest.dSYM
    14924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    14925       conftest$ac_exeext conftest.$ac_ext
    14926 fi
    14927 ac_res=`eval 'as_val=${'$as_ac_var'}
    14928                  $as_echo "$as_val"'`
    14929                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    14930 $as_echo "$ac_res" >&6; }
    14931 as_val=`eval 'as_val=${'$as_ac_var'}
    14932                  $as_echo "$as_val"'`
    14933    if test "x$as_val" = x""yes; then
    14934   cat >>confdefs.h <<_ACEOF
    14935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    14936 _ACEOF
    14937 
    14938 fi
    14939 done
    14940 
    14941 
    14942 for ac_func in av_write_header
    14943 do
    14944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    14945 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    14946 $as_echo_n "checking for $ac_func... " >&6; }
    14947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    14948   $as_echo_n "(cached) " >&6
    14949 else
    14950   cat >conftest.$ac_ext <<_ACEOF
    14951 /* confdefs.h.  */
    14952 _ACEOF
    14953 cat confdefs.h >>conftest.$ac_ext
    14954 cat >>conftest.$ac_ext <<_ACEOF
    14955 /* end confdefs.h.  */
    14956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    14957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    14958 #define $ac_func innocuous_$ac_func
    14959 
    14960 /* System header to define __stub macros and hopefully few prototypes,
    14961     which can conflict with char $ac_func (); below.
    14962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    14963     <limits.h> exists even on freestanding compilers.  */
    14964 
    14965 #ifdef __STDC__
    14966 # include <limits.h>
    14967 #else
    14968 # include <assert.h>
    14969 #endif
    14970 
    14971 #undef $ac_func
    14972 
    14973 /* Override any GCC internal prototype to avoid an error.
    14974    Use char because int might match the return type of a GCC
    14975    builtin and then its argument prototype would still apply.  */
    14976 #ifdef __cplusplus
    14977 extern "C"
    14978 #endif
    14979 char $ac_func ();
    14980 /* The GNU C library defines this for functions which it implements
    14981     to always fail with ENOSYS.  Some functions are actually named
    14982     something starting with __ and the normal name is an alias.  */
    14983 #if defined __stub_$ac_func || defined __stub___$ac_func
    14984 choke me
    14985 #endif
    14986 
    14987 int
    14988 main ()
    14989 {
    14990 return $ac_func ();
    14991   ;
    14992   return 0;
    14993 }
    14994 _ACEOF
    14995 rm -f conftest.$ac_objext conftest$ac_exeext
    14996 if { (ac_try="$ac_link"
    14997 case "(($ac_try" in
    14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    14999   *) ac_try_echo=$ac_try;;
    15000 esac
    15001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15002 $as_echo "$ac_try_echo") >&5
    15003   (eval "$ac_link") 2>conftest.er1
    15004   ac_status=$?
    15005   grep -v '^ *+' conftest.er1 >conftest.err
    15006   rm -f conftest.er1
    15007   cat conftest.err >&5
    15008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15009   (exit $ac_status); } && {
    15010          test -z "$ac_cxx_werror_flag" ||
    15011          test ! -s conftest.err
    15012        } && test -s conftest$ac_exeext && {
    15013          test "$cross_compiling" = yes ||
    15014          $as_test_x conftest$ac_exeext
    15015        }; then
    15016   eval "$as_ac_var=yes"
    15017 else
    15018   $as_echo "$as_me: failed program was:" >&5
    15019 sed 's/^/| /' conftest.$ac_ext >&5
    15020 
    15021         eval "$as_ac_var=no"
    15022 fi
    15023 
    15024 rm -rf conftest.dSYM
    15025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15026       conftest$ac_exeext conftest.$ac_ext
    15027 fi
    15028 ac_res=`eval 'as_val=${'$as_ac_var'}
    15029                  $as_echo "$as_val"'`
    15030                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    15031 $as_echo "$ac_res" >&6; }
    15032 as_val=`eval 'as_val=${'$as_ac_var'}
    15033                  $as_echo "$as_val"'`
    15034    if test "x$as_val" = x""yes; then
    15035   cat >>confdefs.h <<_ACEOF
    15036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    15037 _ACEOF
    15038 
    15039 fi
    15040 done
    15041 
    15042 { $as_echo "$as_me:$LINENO: checking for av_write_trailer" >&5
    15043 $as_echo_n "checking for av_write_trailer... " >&6; }
    15044 if test "${ac_cv_func_av_write_trailer+set}" = set; then
    15045   $as_echo_n "(cached) " >&6
    15046 else
    15047   cat >conftest.$ac_ext <<_ACEOF
    15048 /* confdefs.h.  */
    15049 _ACEOF
    15050 cat confdefs.h >>conftest.$ac_ext
    15051 cat >>conftest.$ac_ext <<_ACEOF
    15052 /* end confdefs.h.  */
    15053 /* Define av_write_trailer to an innocuous variant, in case <limits.h> declares av_write_trailer.
    15054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15055 #define av_write_trailer innocuous_av_write_trailer
    15056 
    15057 /* System header to define __stub macros and hopefully few prototypes,
    15058     which can conflict with char av_write_trailer (); below.
    15059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15060     <limits.h> exists even on freestanding compilers.  */
    15061 
    15062 #ifdef __STDC__
    15063 # include <limits.h>
    15064 #else
    15065 # include <assert.h>
    15066 #endif
    15067 
    15068 #undef av_write_trailer
    15069 
    15070 /* Override any GCC internal prototype to avoid an error.
    15071    Use char because int might match the return type of a GCC
    15072    builtin and then its argument prototype would still apply.  */
    15073 #ifdef __cplusplus
    15074 extern "C"
    15075 #endif
    15076 char av_write_trailer ();
    15077 /* The GNU C library defines this for functions which it implements
    15078     to always fail with ENOSYS.  Some functions are actually named
    15079     something starting with __ and the normal name is an alias.  */
    15080 #if defined __stub_av_write_trailer || defined __stub___av_write_trailer
    15081 choke me
    15082 #endif
    15083 
    15084 int
    15085 main ()
    15086 {
    15087 return av_write_trailer ();
    15088   ;
    15089   return 0;
    15090 }
    15091 _ACEOF
    15092 rm -f conftest.$ac_objext conftest$ac_exeext
    15093 if { (ac_try="$ac_link"
    15094 case "(($ac_try" in
    15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15096   *) ac_try_echo=$ac_try;;
    15097 esac
    15098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15099 $as_echo "$ac_try_echo") >&5
    15100   (eval "$ac_link") 2>conftest.er1
    15101   ac_status=$?
    15102   grep -v '^ *+' conftest.er1 >conftest.err
    15103   rm -f conftest.er1
    15104   cat conftest.err >&5
    15105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15106   (exit $ac_status); } && {
    15107          test -z "$ac_cxx_werror_flag" ||
    15108          test ! -s conftest.err
    15109        } && test -s conftest$ac_exeext && {
    15110          test "$cross_compiling" = yes ||
    15111          $as_test_x conftest$ac_exeext
    15112        }; then
    15113   ac_cv_func_av_write_trailer=yes
    15114 else
    15115   $as_echo "$as_me: failed program was:" >&5
    15116 sed 's/^/| /' conftest.$ac_ext >&5
    15117 
    15118         ac_cv_func_av_write_trailer=no
    15119 fi
    15120 
    15121 rm -rf conftest.dSYM
    15122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15123       conftest$ac_exeext conftest.$ac_ext
    15124 fi
    15125 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_trailer" >&5
    15126 $as_echo "$ac_cv_func_av_write_trailer" >&6; }
    15127 if test "x$ac_cv_func_av_write_trailer" = x""yes; then
    15128   :
    15129 else
    15130   { { $as_echo "$as_me:$LINENO: error: oops! no av_write_trailer?!?" >&5
    15131 $as_echo "$as_me: error: oops! no av_write_trailer?!?" >&2;}
    15132    { (exit 1); exit 1; }; }
    15133 fi
    15134 
    15135 { $as_echo "$as_me:$LINENO: checking for av_freep" >&5
    15136 $as_echo_n "checking for av_freep... " >&6; }
    15137 if test "${ac_cv_func_av_freep+set}" = set; then
    15138   $as_echo_n "(cached) " >&6
    15139 else
    15140   cat >conftest.$ac_ext <<_ACEOF
    15141 /* confdefs.h.  */
    15142 _ACEOF
    15143 cat confdefs.h >>conftest.$ac_ext
    15144 cat >>conftest.$ac_ext <<_ACEOF
    15145 /* end confdefs.h.  */
    15146 /* Define av_freep to an innocuous variant, in case <limits.h> declares av_freep.
    15147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15148 #define av_freep innocuous_av_freep
    15149 
    15150 /* System header to define __stub macros and hopefully few prototypes,
    15151     which can conflict with char av_freep (); below.
    15152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15153     <limits.h> exists even on freestanding compilers.  */
    15154 
    15155 #ifdef __STDC__
    15156 # include <limits.h>
    15157 #else
    15158 # include <assert.h>
    15159 #endif
    15160 
    15161 #undef av_freep
    15162 
    15163 /* Override any GCC internal prototype to avoid an error.
    15164    Use char because int might match the return type of a GCC
    15165    builtin and then its argument prototype would still apply.  */
    15166 #ifdef __cplusplus
    15167 extern "C"
    15168 #endif
    15169 char av_freep ();
    15170 /* The GNU C library defines this for functions which it implements
    15171     to always fail with ENOSYS.  Some functions are actually named
    15172     something starting with __ and the normal name is an alias.  */
    15173 #if defined __stub_av_freep || defined __stub___av_freep
    15174 choke me
    15175 #endif
    15176 
    15177 int
    15178 main ()
    15179 {
    15180 return av_freep ();
    15181   ;
    15182   return 0;
    15183 }
    15184 _ACEOF
    15185 rm -f conftest.$ac_objext conftest$ac_exeext
    15186 if { (ac_try="$ac_link"
    15187 case "(($ac_try" in
    15188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15189   *) ac_try_echo=$ac_try;;
    15190 esac
    15191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15192 $as_echo "$ac_try_echo") >&5
    15193   (eval "$ac_link") 2>conftest.er1
    15194   ac_status=$?
    15195   grep -v '^ *+' conftest.er1 >conftest.err
    15196   rm -f conftest.er1
    15197   cat conftest.err >&5
    15198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15199   (exit $ac_status); } && {
    15200          test -z "$ac_cxx_werror_flag" ||
    15201          test ! -s conftest.err
    15202        } && test -s conftest$ac_exeext && {
    15203          test "$cross_compiling" = yes ||
    15204          $as_test_x conftest$ac_exeext
    15205        }; then
    15206   ac_cv_func_av_freep=yes
    15207 else
    15208   $as_echo "$as_me: failed program was:" >&5
    15209 sed 's/^/| /' conftest.$ac_ext >&5
    15210 
    15211         ac_cv_func_av_freep=no
    15212 fi
    15213 
    15214 rm -rf conftest.dSYM
    15215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15216       conftest$ac_exeext conftest.$ac_ext
    15217 fi
    15218 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_freep" >&5
    15219 $as_echo "$ac_cv_func_av_freep" >&6; }
    15220 if test "x$ac_cv_func_av_freep" = x""yes; then
    15221   :
    15222 else
    15223   { { $as_echo "$as_me:$LINENO: error: oops! no av_freep ?!?" >&5
    15224 $as_echo "$as_me: error: oops! no av_freep ?!?" >&2;}
    15225    { (exit 1); exit 1; }; }
    15226 fi
    15227 
    15228 { $as_echo "$as_me:$LINENO: checking for av_free" >&5
    15229 $as_echo_n "checking for av_free... " >&6; }
    15230 if test "${ac_cv_func_av_free+set}" = set; then
    15231   $as_echo_n "(cached) " >&6
    15232 else
    15233   cat >conftest.$ac_ext <<_ACEOF
    15234 /* confdefs.h.  */
    15235 _ACEOF
    15236 cat confdefs.h >>conftest.$ac_ext
    15237 cat >>conftest.$ac_ext <<_ACEOF
    15238 /* end confdefs.h.  */
    15239 /* Define av_free to an innocuous variant, in case <limits.h> declares av_free.
    15240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15241 #define av_free innocuous_av_free
    15242 
    15243 /* System header to define __stub macros and hopefully few prototypes,
    15244     which can conflict with char av_free (); below.
    15245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15246     <limits.h> exists even on freestanding compilers.  */
    15247 
    15248 #ifdef __STDC__
    15249 # include <limits.h>
    15250 #else
    15251 # include <assert.h>
    15252 #endif
    15253 
    15254 #undef av_free
    15255 
    15256 /* Override any GCC internal prototype to avoid an error.
    15257    Use char because int might match the return type of a GCC
    15258    builtin and then its argument prototype would still apply.  */
    15259 #ifdef __cplusplus
    15260 extern "C"
    15261 #endif
    15262 char av_free ();
    15263 /* The GNU C library defines this for functions which it implements
    15264     to always fail with ENOSYS.  Some functions are actually named
    15265     something starting with __ and the normal name is an alias.  */
    15266 #if defined __stub_av_free || defined __stub___av_free
    15267 choke me
    15268 #endif
    15269 
    15270 int
    15271 main ()
    15272 {
    15273 return av_free ();
    15274   ;
    15275   return 0;
    15276 }
    15277 _ACEOF
    15278 rm -f conftest.$ac_objext conftest$ac_exeext
    15279 if { (ac_try="$ac_link"
    15280 case "(($ac_try" in
    15281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15282   *) ac_try_echo=$ac_try;;
    15283 esac
    15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15285 $as_echo "$ac_try_echo") >&5
    15286   (eval "$ac_link") 2>conftest.er1
    15287   ac_status=$?
    15288   grep -v '^ *+' conftest.er1 >conftest.err
    15289   rm -f conftest.er1
    15290   cat conftest.err >&5
    15291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15292   (exit $ac_status); } && {
    15293          test -z "$ac_cxx_werror_flag" ||
    15294          test ! -s conftest.err
    15295        } && test -s conftest$ac_exeext && {
    15296          test "$cross_compiling" = yes ||
    15297          $as_test_x conftest$ac_exeext
    15298        }; then
    15299   ac_cv_func_av_free=yes
    15300 else
    15301   $as_echo "$as_me: failed program was:" >&5
    15302 sed 's/^/| /' conftest.$ac_ext >&5
    15303 
    15304         ac_cv_func_av_free=no
    15305 fi
    15306 
    15307 rm -rf conftest.dSYM
    15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15309       conftest$ac_exeext conftest.$ac_ext
    15310 fi
    15311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_free" >&5
    15312 $as_echo "$ac_cv_func_av_free" >&6; }
    15313 if test "x$ac_cv_func_av_free" = x""yes; then
    15314   :
    15315 else
    15316   { { $as_echo "$as_me:$LINENO: error: oops! no av_free ?!?" >&5
    15317 $as_echo "$as_me: error: oops! no av_free ?!?" >&2;}
    15318    { (exit 1); exit 1; }; }
    15319 fi
    15320 
    15321 { $as_echo "$as_me:$LINENO: checking for av_new_stream" >&5
    15322 $as_echo_n "checking for av_new_stream... " >&6; }
    15323 if test "${ac_cv_func_av_new_stream+set}" = set; then
    15324   $as_echo_n "(cached) " >&6
    15325 else
    15326   cat >conftest.$ac_ext <<_ACEOF
    15327 /* confdefs.h.  */
    15328 _ACEOF
    15329 cat confdefs.h >>conftest.$ac_ext
    15330 cat >>conftest.$ac_ext <<_ACEOF
    15331 /* end confdefs.h.  */
    15332 /* Define av_new_stream to an innocuous variant, in case <limits.h> declares av_new_stream.
    15333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15334 #define av_new_stream innocuous_av_new_stream
    15335 
    15336 /* System header to define __stub macros and hopefully few prototypes,
    15337     which can conflict with char av_new_stream (); below.
    15338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15339     <limits.h> exists even on freestanding compilers.  */
    15340 
    15341 #ifdef __STDC__
    15342 # include <limits.h>
    15343 #else
    15344 # include <assert.h>
    15345 #endif
    15346 
    15347 #undef av_new_stream
    15348 
    15349 /* Override any GCC internal prototype to avoid an error.
    15350    Use char because int might match the return type of a GCC
    15351    builtin and then its argument prototype would still apply.  */
    15352 #ifdef __cplusplus
    15353 extern "C"
    15354 #endif
    15355 char av_new_stream ();
    15356 /* The GNU C library defines this for functions which it implements
    15357     to always fail with ENOSYS.  Some functions are actually named
    15358     something starting with __ and the normal name is an alias.  */
    15359 #if defined __stub_av_new_stream || defined __stub___av_new_stream
    15360 choke me
    15361 #endif
    15362 
    15363 int
    15364 main ()
    15365 {
    15366 return av_new_stream ();
    15367   ;
    15368   return 0;
    15369 }
    15370 _ACEOF
    15371 rm -f conftest.$ac_objext conftest$ac_exeext
    15372 if { (ac_try="$ac_link"
    15373 case "(($ac_try" in
    15374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15375   *) ac_try_echo=$ac_try;;
    15376 esac
    15377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15378 $as_echo "$ac_try_echo") >&5
    15379   (eval "$ac_link") 2>conftest.er1
    15380   ac_status=$?
    15381   grep -v '^ *+' conftest.er1 >conftest.err
    15382   rm -f conftest.er1
    15383   cat conftest.err >&5
    15384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15385   (exit $ac_status); } && {
    15386          test -z "$ac_cxx_werror_flag" ||
    15387          test ! -s conftest.err
    15388        } && test -s conftest$ac_exeext && {
    15389          test "$cross_compiling" = yes ||
    15390          $as_test_x conftest$ac_exeext
    15391        }; then
    15392   ac_cv_func_av_new_stream=yes
    15393 else
    15394   $as_echo "$as_me: failed program was:" >&5
    15395 sed 's/^/| /' conftest.$ac_ext >&5
    15396 
    15397         ac_cv_func_av_new_stream=no
    15398 fi
    15399 
    15400 rm -rf conftest.dSYM
    15401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15402       conftest$ac_exeext conftest.$ac_ext
    15403 fi
    15404 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_new_stream" >&5
    15405 $as_echo "$ac_cv_func_av_new_stream" >&6; }
    15406 if test "x$ac_cv_func_av_new_stream" = x""yes; then
    15407   :
    15408 else
    15409   { { $as_echo "$as_me:$LINENO: error: oops! av_new_stream ?!?" >&5
    15410 $as_echo "$as_me: error: oops! av_new_stream ?!?" >&2;}
    15411    { (exit 1); exit 1; }; }
    15412 fi
    15413 
    15414 { $as_echo "$as_me:$LINENO: checking for av_malloc" >&5
    15415 $as_echo_n "checking for av_malloc... " >&6; }
    15416 if test "${ac_cv_func_av_malloc+set}" = set; then
    15417   $as_echo_n "(cached) " >&6
    15418 else
    15419   cat >conftest.$ac_ext <<_ACEOF
    15420 /* confdefs.h.  */
    15421 _ACEOF
    15422 cat confdefs.h >>conftest.$ac_ext
    15423 cat >>conftest.$ac_ext <<_ACEOF
    15424 /* end confdefs.h.  */
    15425 /* Define av_malloc to an innocuous variant, in case <limits.h> declares av_malloc.
    15426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15427 #define av_malloc innocuous_av_malloc
    15428 
    15429 /* System header to define __stub macros and hopefully few prototypes,
    15430     which can conflict with char av_malloc (); below.
    15431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15432     <limits.h> exists even on freestanding compilers.  */
    15433 
    15434 #ifdef __STDC__
    15435 # include <limits.h>
    15436 #else
    15437 # include <assert.h>
    15438 #endif
    15439 
    15440 #undef av_malloc
    15441 
    15442 /* Override any GCC internal prototype to avoid an error.
    15443    Use char because int might match the return type of a GCC
    15444    builtin and then its argument prototype would still apply.  */
    15445 #ifdef __cplusplus
    15446 extern "C"
    15447 #endif
    15448 char av_malloc ();
    15449 /* The GNU C library defines this for functions which it implements
    15450     to always fail with ENOSYS.  Some functions are actually named
    15451     something starting with __ and the normal name is an alias.  */
    15452 #if defined __stub_av_malloc || defined __stub___av_malloc
    15453 choke me
    15454 #endif
    15455 
    15456 int
    15457 main ()
    15458 {
    15459 return av_malloc ();
    15460   ;
    15461   return 0;
    15462 }
    15463 _ACEOF
    15464 rm -f conftest.$ac_objext conftest$ac_exeext
    15465 if { (ac_try="$ac_link"
    15466 case "(($ac_try" in
    15467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15468   *) ac_try_echo=$ac_try;;
    15469 esac
    15470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15471 $as_echo "$ac_try_echo") >&5
    15472   (eval "$ac_link") 2>conftest.er1
    15473   ac_status=$?
    15474   grep -v '^ *+' conftest.er1 >conftest.err
    15475   rm -f conftest.er1
    15476   cat conftest.err >&5
    15477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15478   (exit $ac_status); } && {
    15479          test -z "$ac_cxx_werror_flag" ||
    15480          test ! -s conftest.err
    15481        } && test -s conftest$ac_exeext && {
    15482          test "$cross_compiling" = yes ||
    15483          $as_test_x conftest$ac_exeext
    15484        }; then
    15485   ac_cv_func_av_malloc=yes
    15486 else
    15487   $as_echo "$as_me: failed program was:" >&5
    15488 sed 's/^/| /' conftest.$ac_ext >&5
    15489 
    15490         ac_cv_func_av_malloc=no
    15491 fi
    15492 
    15493 rm -rf conftest.dSYM
    15494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15495       conftest$ac_exeext conftest.$ac_ext
    15496 fi
    15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_malloc" >&5
    15498 $as_echo "$ac_cv_func_av_malloc" >&6; }
    15499 if test "x$ac_cv_func_av_malloc" = x""yes; then
    15500   :
    15501 else
    15502   { { $as_echo "$as_me:$LINENO: error: oops! no av_malloc ?!?" >&5
    15503 $as_echo "$as_me: error: oops! no av_malloc ?!?" >&2;}
    15504    { (exit 1); exit 1; }; }
    15505 fi
    15506 
    15507 { $as_echo "$as_me:$LINENO: checking for av_init_packet" >&5
    15508 $as_echo_n "checking for av_init_packet... " >&6; }
    15509 if test "${ac_cv_func_av_init_packet+set}" = set; then
    15510   $as_echo_n "(cached) " >&6
    15511 else
    15512   cat >conftest.$ac_ext <<_ACEOF
    15513 /* confdefs.h.  */
    15514 _ACEOF
    15515 cat confdefs.h >>conftest.$ac_ext
    15516 cat >>conftest.$ac_ext <<_ACEOF
    15517 /* end confdefs.h.  */
    15518 /* Define av_init_packet to an innocuous variant, in case <limits.h> declares av_init_packet.
    15519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15520 #define av_init_packet innocuous_av_init_packet
    15521 
    15522 /* System header to define __stub macros and hopefully few prototypes,
    15523     which can conflict with char av_init_packet (); below.
    15524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15525     <limits.h> exists even on freestanding compilers.  */
    15526 
    15527 #ifdef __STDC__
    15528 # include <limits.h>
    15529 #else
    15530 # include <assert.h>
    15531 #endif
    15532 
    15533 #undef av_init_packet
    15534 
    15535 /* Override any GCC internal prototype to avoid an error.
    15536    Use char because int might match the return type of a GCC
    15537    builtin and then its argument prototype would still apply.  */
    15538 #ifdef __cplusplus
    15539 extern "C"
    15540 #endif
    15541 char av_init_packet ();
    15542 /* The GNU C library defines this for functions which it implements
    15543     to always fail with ENOSYS.  Some functions are actually named
    15544     something starting with __ and the normal name is an alias.  */
    15545 #if defined __stub_av_init_packet || defined __stub___av_init_packet
    15546 choke me
    15547 #endif
    15548 
    15549 int
    15550 main ()
    15551 {
    15552 return av_init_packet ();
    15553   ;
    15554   return 0;
    15555 }
    15556 _ACEOF
    15557 rm -f conftest.$ac_objext conftest$ac_exeext
    15558 if { (ac_try="$ac_link"
    15559 case "(($ac_try" in
    15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15561   *) ac_try_echo=$ac_try;;
    15562 esac
    15563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15564 $as_echo "$ac_try_echo") >&5
    15565   (eval "$ac_link") 2>conftest.er1
    15566   ac_status=$?
    15567   grep -v '^ *+' conftest.er1 >conftest.err
    15568   rm -f conftest.er1
    15569   cat conftest.err >&5
    15570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15571   (exit $ac_status); } && {
    15572          test -z "$ac_cxx_werror_flag" ||
    15573          test ! -s conftest.err
    15574        } && test -s conftest$ac_exeext && {
    15575          test "$cross_compiling" = yes ||
    15576          $as_test_x conftest$ac_exeext
    15577        }; then
    15578   ac_cv_func_av_init_packet=yes
    15579 else
    15580   $as_echo "$as_me: failed program was:" >&5
    15581 sed 's/^/| /' conftest.$ac_ext >&5
    15582 
    15583         ac_cv_func_av_init_packet=no
    15584 fi
    15585 
    15586 rm -rf conftest.dSYM
    15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15588       conftest$ac_exeext conftest.$ac_ext
    15589 fi
    15590 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_init_packet" >&5
    15591 $as_echo "$ac_cv_func_av_init_packet" >&6; }
    15592 if test "x$ac_cv_func_av_init_packet" = x""yes; then
    15593   :
    15594 else
    15595   { { $as_echo "$as_me:$LINENO: error: oops! no av_init_packet ?!?" >&5
    15596 $as_echo "$as_me: error: oops! no av_init_packet ?!?" >&2;}
    15597    { (exit 1); exit 1; }; }
    15598 fi
    15599 
    15600 { $as_echo "$as_me:$LINENO: checking for av_rescale_q" >&5
    15601 $as_echo_n "checking for av_rescale_q... " >&6; }
    15602 if test "${ac_cv_func_av_rescale_q+set}" = set; then
    15603   $as_echo_n "(cached) " >&6
    15604 else
    15605   cat >conftest.$ac_ext <<_ACEOF
    15606 /* confdefs.h.  */
    15607 _ACEOF
    15608 cat confdefs.h >>conftest.$ac_ext
    15609 cat >>conftest.$ac_ext <<_ACEOF
    15610 /* end confdefs.h.  */
    15611 /* Define av_rescale_q to an innocuous variant, in case <limits.h> declares av_rescale_q.
    15612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15613 #define av_rescale_q innocuous_av_rescale_q
    15614 
    15615 /* System header to define __stub macros and hopefully few prototypes,
    15616     which can conflict with char av_rescale_q (); below.
    15617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15618     <limits.h> exists even on freestanding compilers.  */
    15619 
    15620 #ifdef __STDC__
    15621 # include <limits.h>
    15622 #else
    15623 # include <assert.h>
    15624 #endif
    15625 
    15626 #undef av_rescale_q
    15627 
    15628 /* Override any GCC internal prototype to avoid an error.
    15629    Use char because int might match the return type of a GCC
    15630    builtin and then its argument prototype would still apply.  */
    15631 #ifdef __cplusplus
    15632 extern "C"
    15633 #endif
    15634 char av_rescale_q ();
    15635 /* The GNU C library defines this for functions which it implements
    15636     to always fail with ENOSYS.  Some functions are actually named
    15637     something starting with __ and the normal name is an alias.  */
    15638 #if defined __stub_av_rescale_q || defined __stub___av_rescale_q
    15639 choke me
    15640 #endif
    15641 
    15642 int
    15643 main ()
    15644 {
    15645 return av_rescale_q ();
    15646   ;
    15647   return 0;
    15648 }
    15649 _ACEOF
    15650 rm -f conftest.$ac_objext conftest$ac_exeext
    15651 if { (ac_try="$ac_link"
    15652 case "(($ac_try" in
    15653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15654   *) ac_try_echo=$ac_try;;
    15655 esac
    15656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15657 $as_echo "$ac_try_echo") >&5
    15658   (eval "$ac_link") 2>conftest.er1
    15659   ac_status=$?
    15660   grep -v '^ *+' conftest.er1 >conftest.err
    15661   rm -f conftest.er1
    15662   cat conftest.err >&5
    15663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15664   (exit $ac_status); } && {
    15665          test -z "$ac_cxx_werror_flag" ||
    15666          test ! -s conftest.err
    15667        } && test -s conftest$ac_exeext && {
    15668          test "$cross_compiling" = yes ||
    15669          $as_test_x conftest$ac_exeext
    15670        }; then
    15671   ac_cv_func_av_rescale_q=yes
    15672 else
    15673   $as_echo "$as_me: failed program was:" >&5
    15674 sed 's/^/| /' conftest.$ac_ext >&5
    15675 
    15676         ac_cv_func_av_rescale_q=no
    15677 fi
    15678 
    15679 rm -rf conftest.dSYM
    15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15681       conftest$ac_exeext conftest.$ac_ext
    15682 fi
    15683 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_rescale_q" >&5
    15684 $as_echo "$ac_cv_func_av_rescale_q" >&6; }
    15685 if test "x$ac_cv_func_av_rescale_q" = x""yes; then
    15686   :
    15687 else
    15688   { { $as_echo "$as_me:$LINENO: error: oops! no av_rescale_q ?!?" >&5
    15689 $as_echo "$as_me: error: oops! no av_rescale_q ?!?" >&2;}
    15690    { (exit 1); exit 1; }; }
    15691 fi
    15692 
    15693 { $as_echo "$as_me:$LINENO: checking for av_write_frame" >&5
    15694 $as_echo_n "checking for av_write_frame... " >&6; }
    15695 if test "${ac_cv_func_av_write_frame+set}" = set; then
    15696   $as_echo_n "(cached) " >&6
    15697 else
    15698   cat >conftest.$ac_ext <<_ACEOF
    15699 /* confdefs.h.  */
    15700 _ACEOF
    15701 cat confdefs.h >>conftest.$ac_ext
    15702 cat >>conftest.$ac_ext <<_ACEOF
    15703 /* end confdefs.h.  */
    15704 /* Define av_write_frame to an innocuous variant, in case <limits.h> declares av_write_frame.
    15705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15706 #define av_write_frame innocuous_av_write_frame
    15707 
    15708 /* System header to define __stub macros and hopefully few prototypes,
    15709     which can conflict with char av_write_frame (); below.
    15710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15711     <limits.h> exists even on freestanding compilers.  */
    15712 
    15713 #ifdef __STDC__
    15714 # include <limits.h>
    15715 #else
    15716 # include <assert.h>
    15717 #endif
    15718 
    15719 #undef av_write_frame
    15720 
    15721 /* Override any GCC internal prototype to avoid an error.
    15722    Use char because int might match the return type of a GCC
    15723    builtin and then its argument prototype would still apply.  */
    15724 #ifdef __cplusplus
    15725 extern "C"
    15726 #endif
    15727 char av_write_frame ();
    15728 /* The GNU C library defines this for functions which it implements
    15729     to always fail with ENOSYS.  Some functions are actually named
    15730     something starting with __ and the normal name is an alias.  */
    15731 #if defined __stub_av_write_frame || defined __stub___av_write_frame
    15732 choke me
    15733 #endif
    15734 
    15735 int
    15736 main ()
    15737 {
    15738 return av_write_frame ();
    15739   ;
    15740   return 0;
    15741 }
    15742 _ACEOF
    15743 rm -f conftest.$ac_objext conftest$ac_exeext
    15744 if { (ac_try="$ac_link"
    15745 case "(($ac_try" in
    15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15747   *) ac_try_echo=$ac_try;;
    15748 esac
    15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15750 $as_echo "$ac_try_echo") >&5
    15751   (eval "$ac_link") 2>conftest.er1
    15752   ac_status=$?
    15753   grep -v '^ *+' conftest.er1 >conftest.err
    15754   rm -f conftest.er1
    15755   cat conftest.err >&5
    15756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15757   (exit $ac_status); } && {
    15758          test -z "$ac_cxx_werror_flag" ||
    15759          test ! -s conftest.err
    15760        } && test -s conftest$ac_exeext && {
    15761          test "$cross_compiling" = yes ||
    15762          $as_test_x conftest$ac_exeext
    15763        }; then
    15764   ac_cv_func_av_write_frame=yes
    15765 else
    15766   $as_echo "$as_me: failed program was:" >&5
    15767 sed 's/^/| /' conftest.$ac_ext >&5
    15768 
    15769         ac_cv_func_av_write_frame=no
    15770 fi
    15771 
    15772 rm -rf conftest.dSYM
    15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15774       conftest$ac_exeext conftest.$ac_ext
    15775 fi
    15776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_av_write_frame" >&5
    15777 $as_echo "$ac_cv_func_av_write_frame" >&6; }
    15778 if test "x$ac_cv_func_av_write_frame" = x""yes; then
    15779   :
    15780 else
    15781   { { $as_echo "$as_me:$LINENO: error: oops! av_write_frame ?!?" >&5
    15782 $as_echo "$as_me: error: oops! av_write_frame ?!?" >&2;}
    15783    { (exit 1); exit 1; }; }
    15784 fi
    15785 
    15786 
    15787 for ac_func in img_convert
    15788 do
    15789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    15790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    15791 $as_echo_n "checking for $ac_func... " >&6; }
    15792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    15793   $as_echo_n "(cached) " >&6
    15794 else
    15795   cat >conftest.$ac_ext <<_ACEOF
    15796 /* confdefs.h.  */
    15797 _ACEOF
    15798 cat confdefs.h >>conftest.$ac_ext
    15799 cat >>conftest.$ac_ext <<_ACEOF
    15800 /* end confdefs.h.  */
    15801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    15802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15803 #define $ac_func innocuous_$ac_func
    15804 
    15805 /* System header to define __stub macros and hopefully few prototypes,
    15806     which can conflict with char $ac_func (); below.
    15807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15808     <limits.h> exists even on freestanding compilers.  */
    15809 
    15810 #ifdef __STDC__
    15811 # include <limits.h>
    15812 #else
    15813 # include <assert.h>
    15814 #endif
    15815 
    15816 #undef $ac_func
    15817 
    15818 /* Override any GCC internal prototype to avoid an error.
    15819    Use char because int might match the return type of a GCC
    15820    builtin and then its argument prototype would still apply.  */
    15821 #ifdef __cplusplus
    15822 extern "C"
    15823 #endif
    15824 char $ac_func ();
    15825 /* The GNU C library defines this for functions which it implements
    15826     to always fail with ENOSYS.  Some functions are actually named
    15827     something starting with __ and the normal name is an alias.  */
    15828 #if defined __stub_$ac_func || defined __stub___$ac_func
    15829 choke me
    15830 #endif
    15831 
    15832 int
    15833 main ()
    15834 {
    15835 return $ac_func ();
    15836   ;
    15837   return 0;
    15838 }
    15839 _ACEOF
    15840 rm -f conftest.$ac_objext conftest$ac_exeext
    15841 if { (ac_try="$ac_link"
    15842 case "(($ac_try" in
    15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15844   *) ac_try_echo=$ac_try;;
    15845 esac
    15846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15847 $as_echo "$ac_try_echo") >&5
    15848   (eval "$ac_link") 2>conftest.er1
    15849   ac_status=$?
    15850   grep -v '^ *+' conftest.er1 >conftest.err
    15851   rm -f conftest.er1
    15852   cat conftest.err >&5
    15853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15854   (exit $ac_status); } && {
    15855          test -z "$ac_cxx_werror_flag" ||
    15856          test ! -s conftest.err
    15857        } && test -s conftest$ac_exeext && {
    15858          test "$cross_compiling" = yes ||
    15859          $as_test_x conftest$ac_exeext
    15860        }; then
    15861   eval "$as_ac_var=yes"
    15862 else
    15863   $as_echo "$as_me: failed program was:" >&5
    15864 sed 's/^/| /' conftest.$ac_ext >&5
    15865 
    15866         eval "$as_ac_var=no"
    15867 fi
    15868 
    15869 rm -rf conftest.dSYM
    15870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15871       conftest$ac_exeext conftest.$ac_ext
    15872 fi
    15873 ac_res=`eval 'as_val=${'$as_ac_var'}
    15874                  $as_echo "$as_val"'`
    15875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    15876 $as_echo "$ac_res" >&6; }
    15877 as_val=`eval 'as_val=${'$as_ac_var'}
    15878                  $as_echo "$as_val"'`
    15879    if test "x$as_val" = x""yes; then
    15880   cat >>confdefs.h <<_ACEOF
    15881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    15882 _ACEOF
    15883 
    15884 fi
    15885 done
    15886 
    15887 
    15888 for ac_func in sws_scale
    15889 do
    15890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    15891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
    15892 $as_echo_n "checking for $ac_func... " >&6; }
    15893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
    15894   $as_echo_n "(cached) " >&6
    15895 else
    15896   cat >conftest.$ac_ext <<_ACEOF
    15897 /* confdefs.h.  */
    15898 _ACEOF
    15899 cat confdefs.h >>conftest.$ac_ext
    15900 cat >>conftest.$ac_ext <<_ACEOF
    15901 /* end confdefs.h.  */
    15902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    15903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    15904 #define $ac_func innocuous_$ac_func
    15905 
    15906 /* System header to define __stub macros and hopefully few prototypes,
    15907     which can conflict with char $ac_func (); below.
    15908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15909     <limits.h> exists even on freestanding compilers.  */
    15910 
    15911 #ifdef __STDC__
    15912 # include <limits.h>
    15913 #else
    15914 # include <assert.h>
    15915 #endif
    15916 
    15917 #undef $ac_func
    15918 
    15919 /* Override any GCC internal prototype to avoid an error.
    15920    Use char because int might match the return type of a GCC
    15921    builtin and then its argument prototype would still apply.  */
    15922 #ifdef __cplusplus
    15923 extern "C"
    15924 #endif
    15925 char $ac_func ();
    15926 /* The GNU C library defines this for functions which it implements
    15927     to always fail with ENOSYS.  Some functions are actually named
    15928     something starting with __ and the normal name is an alias.  */
    15929 #if defined __stub_$ac_func || defined __stub___$ac_func
    15930 choke me
    15931 #endif
    15932 
    15933 int
    15934 main ()
    15935 {
    15936 return $ac_func ();
    15937   ;
    15938   return 0;
    15939 }
    15940 _ACEOF
    15941 rm -f conftest.$ac_objext conftest$ac_exeext
    15942 if { (ac_try="$ac_link"
    15943 case "(($ac_try" in
    15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    15945   *) ac_try_echo=$ac_try;;
    15946 esac
    15947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    15948 $as_echo "$ac_try_echo") >&5
    15949   (eval "$ac_link") 2>conftest.er1
    15950   ac_status=$?
    15951   grep -v '^ *+' conftest.er1 >conftest.err
    15952   rm -f conftest.er1
    15953   cat conftest.err >&5
    15954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15955   (exit $ac_status); } && {
    15956          test -z "$ac_cxx_werror_flag" ||
    15957          test ! -s conftest.err
    15958        } && test -s conftest$ac_exeext && {
    15959          test "$cross_compiling" = yes ||
    15960          $as_test_x conftest$ac_exeext
    15961        }; then
    15962   eval "$as_ac_var=yes"
    15963 else
    15964   $as_echo "$as_me: failed program was:" >&5
    15965 sed 's/^/| /' conftest.$ac_ext >&5
    15966 
    15967         eval "$as_ac_var=no"
    15968 fi
    15969 
    15970 rm -rf conftest.dSYM
    15971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    15972       conftest$ac_exeext conftest.$ac_ext
    15973 fi
    15974 ac_res=`eval 'as_val=${'$as_ac_var'}
    15975                  $as_echo "$as_val"'`
    15976                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    15977 $as_echo "$ac_res" >&6; }
    15978 as_val=`eval 'as_val=${'$as_ac_var'}
    15979                  $as_echo "$as_val"'`
    15980    if test "x$as_val" = x""yes; then
    15981   cat >>confdefs.h <<_ACEOF
    15982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    15983 _ACEOF
    15984 
    15985 fi
    15986 done
    15987 
    15988 cat >conftest.$ac_ext <<_ACEOF
    15989 /* confdefs.h.  */
    15990 _ACEOF
    15991 cat confdefs.h >>conftest.$ac_ext
    15992 cat >>conftest.$ac_ext <<_ACEOF
    15993 /* end confdefs.h.  */
    15994 
    15995 #define __STDC_CONSTANT_MACROS 1
    15996 #include <stdlib.h>
    15997 #ifdef HAVE_FFMPEG_AVCODEC_H
    15998 # include <ffmpeg/avcodec.h>
    15999 #endif
    16000 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
    16001 # include <libavcodec/avcodec.h>
    16002 #endif
    16003 int x = AVMEDIA_TYPE_VIDEO;
    16004 
    16005 int
    16006 main ()
    16007 {
    16008 
    16009   ;
    16010   return 0;
    16011 }
    16012 _ACEOF
    16013 rm -f conftest.$ac_objext
    16014 if { (ac_try="$ac_compile"
    16015 case "(($ac_try" in
    16016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16017   *) ac_try_echo=$ac_try;;
    16018 esac
    16019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16020 $as_echo "$ac_try_echo") >&5
    16021   (eval "$ac_compile") 2>conftest.er1
    16022   ac_status=$?
    16023   grep -v '^ *+' conftest.er1 >conftest.err
    16024   rm -f conftest.er1
    16025   cat conftest.err >&5
    16026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16027   (exit $ac_status); } && {
    16028          test -z "$ac_cxx_werror_flag" ||
    16029          test ! -s conftest.err
    16030        } && test -s conftest.$ac_objext; then
    16031   ac_avmedia_type_video="yes"
    16032 else
    16033   $as_echo "$as_me: failed program was:" >&5
    16034 sed 's/^/| /' conftest.$ac_ext >&5
    16035 
    16036         ac_avmedia_type_video="no"
    16037 fi
    16038 
    16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    16040 if test "$ac_avmedia_type_video" == "yes" ; then
    16041 
    16042 cat >>confdefs.h <<\_ACEOF
    16043 #define HAVE_AVMEDIA_TYPE_VIDEO 1
    16044 _ACEOF
    16045 
    16046 fi
    16047 
    16048 
    16049 { $as_echo "$as_me:$LINENO: checking for avcodec_alloc_frame in -lavcodec" >&5
    16050 $as_echo_n "checking for avcodec_alloc_frame in -lavcodec... " >&6; }
    16051 if test "${ac_cv_lib_avcodec_avcodec_alloc_frame+set}" = set; then
    16052   $as_echo_n "(cached) " >&6
    16053 else
    16054   ac_check_lib_save_LIBS=$LIBS
    16055 LIBS="-lavcodec  $LIBS"
    16056 cat >conftest.$ac_ext <<_ACEOF
    16057 /* confdefs.h.  */
    16058 _ACEOF
    16059 cat confdefs.h >>conftest.$ac_ext
    16060 cat >>conftest.$ac_ext <<_ACEOF
    16061 /* end confdefs.h.  */
    16062 
    16063 /* Override any GCC internal prototype to avoid an error.
    16064    Use char because int might match the return type of a GCC
    16065    builtin and then its argument prototype would still apply.  */
    16066 #ifdef __cplusplus
    16067 extern "C"
    16068 #endif
    16069 char avcodec_alloc_frame ();
    16070 int
    16071 main ()
    16072 {
    16073 return avcodec_alloc_frame ();
    16074   ;
    16075   return 0;
    16076 }
    16077 _ACEOF
    16078 rm -f conftest.$ac_objext conftest$ac_exeext
    16079 if { (ac_try="$ac_link"
    16080 case "(($ac_try" in
    16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16082   *) ac_try_echo=$ac_try;;
    16083 esac
    16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16085 $as_echo "$ac_try_echo") >&5
    16086   (eval "$ac_link") 2>conftest.er1
    16087   ac_status=$?
    16088   grep -v '^ *+' conftest.er1 >conftest.err
    16089   rm -f conftest.er1
    16090   cat conftest.err >&5
    16091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16092   (exit $ac_status); } && {
    16093          test -z "$ac_cxx_werror_flag" ||
    16094          test ! -s conftest.err
    16095        } && test -s conftest$ac_exeext && {
    16096          test "$cross_compiling" = yes ||
    16097          $as_test_x conftest$ac_exeext
    16098        }; then
    16099   ac_cv_lib_avcodec_avcodec_alloc_frame=yes
    16100 else
    16101   $as_echo "$as_me: failed program was:" >&5
    16102 sed 's/^/| /' conftest.$ac_ext >&5
    16103 
    16104         ac_cv_lib_avcodec_avcodec_alloc_frame=no
    16105 fi
    16106 
    16107 rm -rf conftest.dSYM
    16108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    16109       conftest$ac_exeext conftest.$ac_ext
    16110 LIBS=$ac_check_lib_save_LIBS
    16111 fi
    16112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_alloc_frame" >&5
    16113 $as_echo "$ac_cv_lib_avcodec_avcodec_alloc_frame" >&6; }
    16114 if test "x$ac_cv_lib_avcodec_avcodec_alloc_frame" = x""yes; then
    16115   cat >>confdefs.h <<_ACEOF
    16116 #define HAVE_LIBAVCODEC 1
    16117 _ACEOF
    16118 
    16119   LIBS="-lavcodec $LIBS"
    16120 
    16121 fi
    16122 
    16123 # Fallback to deprecated av_alloc_format_context if avformat_alloc_context isn't found
    16124 
    16125 { $as_echo "$as_me:$LINENO: checking for avformat_alloc_context in -lavformat" >&5
    16126 $as_echo_n "checking for avformat_alloc_context in -lavformat... " >&6; }
    16127 if test "${ac_cv_lib_avformat_avformat_alloc_context+set}" = set; then
    16128   $as_echo_n "(cached) " >&6
    16129 else
    16130   ac_check_lib_save_LIBS=$LIBS
    16131 LIBS="-lavformat  $LIBS"
    16132 cat >conftest.$ac_ext <<_ACEOF
    16133 /* confdefs.h.  */
    16134 _ACEOF
    16135 cat confdefs.h >>conftest.$ac_ext
    16136 cat >>conftest.$ac_ext <<_ACEOF
    16137 /* end confdefs.h.  */
    16138 
    16139 /* Override any GCC internal prototype to avoid an error.
    16140    Use char because int might match the return type of a GCC
    16141    builtin and then its argument prototype would still apply.  */
    16142 #ifdef __cplusplus
    16143 extern "C"
    16144 #endif
    16145 char avformat_alloc_context ();
    16146 int
    16147 main ()
    16148 {
    16149 return avformat_alloc_context ();
    16150   ;
    16151   return 0;
    16152 }
    16153 _ACEOF
    16154 rm -f conftest.$ac_objext conftest$ac_exeext
    16155 if { (ac_try="$ac_link"
    16156 case "(($ac_try" in
    16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16158   *) ac_try_echo=$ac_try;;
    16159 esac
    16160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16161 $as_echo "$ac_try_echo") >&5
    16162   (eval "$ac_link") 2>conftest.er1
    16163   ac_status=$?
    16164   grep -v '^ *+' conftest.er1 >conftest.err
    16165   rm -f conftest.er1
    16166   cat conftest.err >&5
    16167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16168   (exit $ac_status); } && {
    16169          test -z "$ac_cxx_werror_flag" ||
    16170          test ! -s conftest.err
    16171        } && test -s conftest$ac_exeext && {
    16172          test "$cross_compiling" = yes ||
    16173          $as_test_x conftest$ac_exeext
    16174        }; then
    16175   ac_cv_lib_avformat_avformat_alloc_context=yes
    16176 else
    16177   $as_echo "$as_me: failed program was:" >&5
    16178 sed 's/^/| /' conftest.$ac_ext >&5
    16179 
    16180         ac_cv_lib_avformat_avformat_alloc_context=no
    16181 fi
    16182 
    16183 rm -rf conftest.dSYM
    16184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    16185       conftest$ac_exeext conftest.$ac_ext
    16186 LIBS=$ac_check_lib_save_LIBS
    16187 fi
    16188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_avformat_alloc_context" >&5
    16189 $as_echo "$ac_cv_lib_avformat_avformat_alloc_context" >&6; }
    16190 if test "x$ac_cv_lib_avformat_avformat_alloc_context" = x""yes; then
    16191   cat >>confdefs.h <<_ACEOF
    16192 #define HAVE_LIBAVFORMAT 1
    16193 _ACEOF
    16194 
    16195   LIBS="-lavformat $LIBS"
    16196 
    16197 else
    16198 
    16199 { $as_echo "$as_me:$LINENO: checking for av_alloc_format_context in -lavformat" >&5
    16200 $as_echo_n "checking for av_alloc_format_context in -lavformat... " >&6; }
    16201 if test "${ac_cv_lib_avformat_av_alloc_format_context+set}" = set; then
    16202   $as_echo_n "(cached) " >&6
    16203 else
    16204   ac_check_lib_save_LIBS=$LIBS
    16205 LIBS="-lavformat  $LIBS"
    16206 cat >conftest.$ac_ext <<_ACEOF
    16207 /* confdefs.h.  */
    16208 _ACEOF
    16209 cat confdefs.h >>conftest.$ac_ext
    16210 cat >>conftest.$ac_ext <<_ACEOF
    16211 /* end confdefs.h.  */
    16212 
    16213 /* Override any GCC internal prototype to avoid an error.
    16214    Use char because int might match the return type of a GCC
    16215    builtin and then its argument prototype would still apply.  */
    16216 #ifdef __cplusplus
    16217 extern "C"
    16218 #endif
    16219 char av_alloc_format_context ();
    16220 int
    16221 main ()
    16222 {
    16223 return av_alloc_format_context ();
    16224   ;
    16225   return 0;
    16226 }
    16227 _ACEOF
    16228 rm -f conftest.$ac_objext conftest$ac_exeext
    16229 if { (ac_try="$ac_link"
    16230 case "(($ac_try" in
    16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16232   *) ac_try_echo=$ac_try;;
    16233 esac
    16234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16235 $as_echo "$ac_try_echo") >&5
    16236   (eval "$ac_link") 2>conftest.er1
    16237   ac_status=$?
    16238   grep -v '^ *+' conftest.er1 >conftest.err
    16239   rm -f conftest.er1
    16240   cat conftest.err >&5
    16241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16242   (exit $ac_status); } && {
    16243          test -z "$ac_cxx_werror_flag" ||
    16244          test ! -s conftest.err
    16245        } && test -s conftest$ac_exeext && {
    16246          test "$cross_compiling" = yes ||
    16247          $as_test_x conftest$ac_exeext
    16248        }; then
    16249   ac_cv_lib_avformat_av_alloc_format_context=yes
    16250 else
    16251   $as_echo "$as_me: failed program was:" >&5
    16252 sed 's/^/| /' conftest.$ac_ext >&5
    16253 
    16254         ac_cv_lib_avformat_av_alloc_format_context=no
    16255 fi
    16256 
    16257 rm -rf conftest.dSYM
    16258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    16259       conftest$ac_exeext conftest.$ac_ext
    16260 LIBS=$ac_check_lib_save_LIBS
    16261 fi
    16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_alloc_format_context" >&5
    16263 $as_echo "$ac_cv_lib_avformat_av_alloc_format_context" >&6; }
    16264 if test "x$ac_cv_lib_avformat_av_alloc_format_context" = x""yes; then
    16265   cat >>confdefs.h <<_ACEOF
    16266 #define HAVE_LIBAVFORMAT 1
    16267 _ACEOF
    16268 
    16269   LIBS="-lavformat $LIBS"
    16270 
    16271 else
    16272   { $as_echo "$as_me:$LINENO: WARNING: libavformat not usable" >&5
    16273 $as_echo "$as_me: WARNING: libavformat not usable" >&2;}
    16274 fi
    16275 
    16276 fi
    16277 
    16278 
    16279 
    16280 { $as_echo "$as_me:$LINENO: checking for nVidia Cg installation" >&5
    16281 $as_echo_n "checking for nVidia Cg installation... " >&6; }
    16282 CG_DIR=""
    16283 for dir in \
    16284  /opt/nvidia-cg-toolkit \
    16285  /usr/cg \
    16286  /usr
    16287 do
    16288   if test -r "$dir/include" ; then
    16289     CG_DIR=$dir
    16290     break
    16291   fi
    16292 done
    16293 { $as_echo "$as_me:$LINENO: result: ${CG_DIR}" >&5
    16294 $as_echo "${CG_DIR}" >&6; }
    16295 
    16296 CG_INC_SPEC="-I${CG_DIR}/include"
    16297 CG_LIB_DIR="${CG_DIR}/lib"
    16298 
    16299 save_CPPFLAGS=$CPPFLAGS
    16300 CPPFLAGS="${CG_INC_SPEC} $CPPFLAGS"
    16301 
    16302 for ac_header in Cg/cgGL.h
    16303 do
    16304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    16305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    16306   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    16307 $as_echo_n "checking for $ac_header... " >&6; }
    16308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    16309   $as_echo_n "(cached) " >&6
    16310 fi
    16311 ac_res=`eval 'as_val=${'$as_ac_Header'}
    16312                  $as_echo "$as_val"'`
    16313                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    16314 $as_echo "$ac_res" >&6; }
    16315 else
    16316   # Is the header compilable?
    16317 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
    16318 $as_echo_n "checking $ac_header usability... " >&6; }
    16319 cat >conftest.$ac_ext <<_ACEOF
    16320 /* confdefs.h.  */
    16321 _ACEOF
    16322 cat confdefs.h >>conftest.$ac_ext
    16323 cat >>conftest.$ac_ext <<_ACEOF
    16324 /* end confdefs.h.  */
    16325 $ac_includes_default
    16326 #include <$ac_header>
    16327 _ACEOF
    16328 rm -f conftest.$ac_objext
    16329 if { (ac_try="$ac_compile"
    16330 case "(($ac_try" in
    16331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16332   *) ac_try_echo=$ac_try;;
    16333 esac
    16334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16335 $as_echo "$ac_try_echo") >&5
    16336   (eval "$ac_compile") 2>conftest.er1
    16337   ac_status=$?
    16338   grep -v '^ *+' conftest.er1 >conftest.err
    16339   rm -f conftest.er1
    16340   cat conftest.err >&5
    16341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16342   (exit $ac_status); } && {
    16343          test -z "$ac_cxx_werror_flag" ||
    16344          test ! -s conftest.err
    16345        } && test -s conftest.$ac_objext; then
    16346   ac_header_compiler=yes
    16347 else
    16348   $as_echo "$as_me: failed program was:" >&5
    16349 sed 's/^/| /' conftest.$ac_ext >&5
    16350 
    16351         ac_header_compiler=no
    16352 fi
    16353 
    16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    16355 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    16356 $as_echo "$ac_header_compiler" >&6; }
    16357 
    16358 # Is the header present?
    16359 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
    16360 $as_echo_n "checking $ac_header presence... " >&6; }
    16361 cat >conftest.$ac_ext <<_ACEOF
    16362 /* confdefs.h.  */
    16363 _ACEOF
    16364 cat confdefs.h >>conftest.$ac_ext
    16365 cat >>conftest.$ac_ext <<_ACEOF
    16366 /* end confdefs.h.  */
    16367 #include <$ac_header>
    16368 _ACEOF
    16369 if { (ac_try="$ac_cpp conftest.$ac_ext"
    16370 case "(($ac_try" in
    16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    16372   *) ac_try_echo=$ac_try;;
    16373 esac
    16374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    16375 $as_echo "$ac_try_echo") >&5
    16376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
    16377   ac_status=$?
    16378   grep -v '^ *+' conftest.er1 >conftest.err
    16379   rm -f conftest.er1
    16380   cat conftest.err >&5
    16381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16382   (exit $ac_status); } >/dev/null && {
    16383          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    16384          test ! -s conftest.err
    16385        }; then
    16386   ac_header_preproc=yes
    16387 else
    16388   $as_echo "$as_me: failed program was:" >&5
    16389 sed 's/^/| /' conftest.$ac_ext >&5
    16390 
    16391   ac_header_preproc=no
    16392 fi
    16393 
    16394 rm -f conftest.err conftest.$ac_ext
    16395 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    16396 $as_echo "$ac_header_preproc" >&6; }
    16397 
    16398 # So?  What about this header?
    16399 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    16400   yes:no: )
    16401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    16402 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    16403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    16404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    16405     ac_header_preproc=yes
    16406     ;;
    16407   no:yes:* )
    16408     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    16409 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    16410     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    16411 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    16412     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    16413 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    16414     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    16415 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    16416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    16417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    16418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    16419 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    16420     ( cat <<\_ASBOX
    16421 ## ----------------------------------- ##
    16422 ## Report this to rappture@nanohub.org ##
    16423 ## ----------------------------------- ##
    16424 _ASBOX
    16425      ) | sed "s/^/$as_me: WARNING:     /" >&2
    16426     ;;
    16427 esac
    16428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    16429 $as_echo_n "checking for $ac_header... " >&6; }
    16430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    16431   $as_echo_n "(cached) " >&6
    16432 else
    16433   eval "$as_ac_Header=\$ac_header_preproc"
    16434 fi
    16435 ac_res=`eval 'as_val=${'$as_ac_Header'}
    16436                  $as_echo "$as_val"'`
    16437                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    16438 $as_echo "$ac_res" >&6; }
    16439 
    16440 fi
    16441 as_val=`eval 'as_val=${'$as_ac_Header'}
    16442                  $as_echo "$as_val"'`
    16443    if test "x$as_val" = x""yes; then
    16444   cat >>confdefs.h <<_ACEOF
    16445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    16446 _ACEOF
    16447 
    1644816220else
    1644916221  { $as_echo "$as_me:$LINENO: WARNING: cannot find nVidia Cg headers" >&5
     
    1649516267
    1649616268
    16497 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrutil/Makefile nanovis/vrmath/Makefile nanovis/vr3d/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"
     16269ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanoscale/renderservers.tcl nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/vrutil/Makefile nanovis/vrmath/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile vtkvis/Doxyfile vtkvis/Makefile start_viz.sh start_nanoscale.sh"
    1649816270
    1649916271cat >confcache <<\_ACEOF
     
    1710316875    "nanovis/vrutil/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrutil/Makefile" ;;
    1710416876    "nanovis/vrmath/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vrmath/Makefile" ;;
    17105     "nanovis/vr3d/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/vr3d/Makefile" ;;
    1710616877    "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;;
    1710716878    "nanovis/transfer-function/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/transfer-function/Makefile" ;;
  • trunk/packages/vizservers/configure.in

    r2829 r2857  
    263263fi
    264264AC_MSG_RESULT([$DX_LIB_SPEC])
    265 
    266 AC_CHECK_HEADERS([opencv/cv.h opencv/highgui.h])
    267 AC_CHECK_LIB([highgui], [cvLoadImage])
    268265
    269266save_CPPFLAGS=$CPPFLAGS
     
    404401   nanovis/vrutil/Makefile \
    405402   nanovis/vrmath/Makefile \
    406    nanovis/vr3d/Makefile \
    407403   nanovis/imgLoaders/Makefile \
    408404   nanovis/transfer-function/Makefile \
  • trunk/packages/vizservers/nanovis/Color.h

    r2844 r2857  
    3434    void getRGB(float *result);
    3535
     36    double r() const
     37    {
     38        return _r;
     39    }
     40
     41    double g() const
     42    {
     43        return _g;
     44    }
     45
     46    double b() const
     47    {
     48        return _b;
     49    }
     50
    3651    /// Limits the color to be in range of [0,1]
    3752    void clamp();
  • trunk/packages/vizservers/nanovis/Makefile.in

    r2846 r2857  
    4848VRUTIL_LIB      = $(VRUTIL_DIR)/vrutil.a
    4949VRUTIL_LIB_SPEC = $(VRUTIL_LIB)
    50 VR3D_DIR        = ./vr3d
    51 VR3D_INC_SPEC   = -I$(srcdir)/$(VR3D_DIR)/include
    52 VR3D_LIB        = $(VR3D_DIR)/vr3d.a
    53 VR3D_LIB_SPEC   = $(VR3D_LIB)
    5450R2_DIR          = ./R2
    5551R2_INC_SPEC     = -I$(srcdir)/$(R2_DIR)/include
     
    7470                $(VRMATH_LIB_SPEC) \
    7571                $(VRUTIL_LIB_SPEC) \
    76                 $(VR3D_LIB_SPEC) \
    7772                $(TCL_LIB_SPEC) \
    7873                $(CG_LIB_SPEC) \
     
    9085                $(VRMATH_INC_SPEC) \
    9186                $(VRUTIL_INC_SPEC) \
    92                 $(VR3D_INC_SPEC) \
    9387                $(TCL_INC_SPEC) \
    9488                $(FF_INC_SPEC) \
     
    217211                $(srcdir)/shaders/velocity.cg
    218212
    219 .PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath vrutil vr3d transfer-function
    220 
    221 all: newmat11 R2 imgloaders vrmath vrutil vr3d transfer-function nanovis
     213.PHONY: all install install-resources install-shaders install-nanovis clean distclean newmat11 R2 imgloaders vrmath vrutil transfer-function
     214
     215all: newmat11 R2 imgloaders vrmath vrutil nanovis
    222216
    223217install: install-nanovis install-resources install-shaders
     
    227221vrmath:                 $(VRMATH_LIB)
    228222vrutil:                 $(VRUTIL_LIB)
    229 vr3d:                   $(VR3D_LIB)
    230223imgloaders:             $(IMG_LIB)
    231224
     
    239232        $(MAKE) -C $(VRUTIL_DIR) all
    240233
    241 $(VR3D_LIB):
    242         $(MAKE) -C $(VR3D_DIR) all
    243 
    244234$(R2_LIB):
    245235        $(MAKE) -C $(R2_DIR)/src all
     
    248238        $(MAKE) -C $(IMG_DIR) all
    249239
    250 nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $(VRUTIL_LIB) $(VR3D_LIB) $(OBJS)
     240nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(VRMATH_LIB) $(VRUTIL_LIB) $(OBJS)
    251241        $(CXX) $(CXX_SWITCHES) -o $@ $^ $(LIBS)
    252242
     
    288278        $(MAKE) -C $(VRMATH_DIR) clean
    289279        $(MAKE) -C $(VRUTIL_DIR) clean
    290         $(MAKE) -C $(VR3D_DIR) clean
    291280        $(MAKE) -C $(R2_DIR)/src clean
    292281        $(MAKE) -C $(IMG_DIR) clean
     
    297286        $(MAKE) -C $(VRMATH_DIR) distclean
    298287        $(MAKE) -C $(VRUTIL_DIR) distclean
    299         $(MAKE) -C $(VR3D_DIR) distclean
    300288        $(MAKE) -C $(R2_DIR)/src distclean
    301289        $(MAKE) -C $(IMG_DIR) distclean
     
    307295CmdProc.o: CmdProc.cpp CmdProc.h
    308296Color.o: Color.cpp Color.h
    309 Command.o: Command.cpp dxReader.h
     297Command.o: Command.cpp nanovis.h $(AUXSRC) CmdProc.h Trace.h PlaneRenderer.h PointSet.h dxReader.h Grid.h HeightMap.h NvCamera.h NvZincBlendeReconstructor.h Unirect.h VolumeRenderer.h
    310298ContourLineFilter.o: ContourLineFilter.cpp ContourLineFilter.h
    311299ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h Vector4.h Mat4x4.h Plane.h
  • trunk/packages/vizservers/nanovis/NvColorTableShader.h

    r2836 r2857  
    3030inline void NvColorTableShader::bind(Texture2D *plane, TransferFunction *tf)
    3131{
    32     cgGLSetTextureParameter(_dataParam, plane->id);
     32    cgGLSetTextureParameter(_dataParam, plane->id());
    3333    cgGLSetTextureParameter(_tfParam, tf->id());
    3434    cgGLEnableTextureParameter(_dataParam);
  • trunk/packages/vizservers/nanovis/NvRegularVolumeShader.h

    r2837 r2857  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    2 #ifndef __NV_REGULAR_SHADER_H__
    3 #define __NV_REGULAR_SHADER_H__
     2#ifndef NV_REGULAR_SHADER_H
     3#define NV_REGULAR_SHADER_H
    44
    55#include "Volume.h"
     
    2727
    2828inline void
    29 NvRegularVolumeShader::bind(unsigned int tfID, Volume* volume, int sliceMode)
     29NvRegularVolumeShader::bind(unsigned int tfID, Volume *volume, int sliceMode)
    3030{
    3131    //regular cubic volume
     
    3838    cgGLEnableTextureParameter(_tf_one_volume_param);
    3939
    40     if(!sliceMode)
     40    if (!sliceMode) {
    4141        cgGLSetParameter4f(_render_param_one_volume_param,
    4242            volume->n_slices(),
     
    4444            volume->diffuse(),
    4545            volume->specular());
    46     else
     46    } else {
    4747        cgGLSetParameter4f(_render_param_one_volume_param,
    4848            0.,
     
    5050            volume->diffuse(),
    5151            volume->specular());
     52    }
    5253
    5354    cgGLSetParameter4f(_option_one_volume_param,
  • trunk/packages/vizservers/nanovis/NvZincBlendeVolumeShader.h

    r2844 r2857  
    3434    cgGLSetStateMatrixParameter(_mviParam, CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_INVERSE);
    3535    cgGLSetTextureParameter(_tfParam, tfID);
    36     cgGLSetParameter4f(_cellSizeParam, vol->cell_size.x, vol->cell_size.y, vol->cell_size.z, 0.);
     36    cgGLSetParameter4f(_cellSizeParam,
     37                       vol->cell_size.x,
     38                       vol->cell_size.y,
     39                       vol->cell_size.z, 0.);
    3740
    3841    if (!sliceMode) {
     
    5659                       0.0f);
    5760
    58     cgGLSetTextureParameter(_volumeAParam, vol->zincblende_tex[0]->id);
    59     cgGLSetTextureParameter(_volumeBParam, vol->zincblende_tex[1]->id);
     61    cgGLSetTextureParameter(_volumeAParam, vol->zincblende_tex[0]->id());
     62    cgGLSetTextureParameter(_volumeBParam, vol->zincblende_tex[1]->id());
    6063    cgGLEnableTextureParameter(_volumeAParam);
    6164    cgGLEnableTextureParameter(_volumeBParam);
  • trunk/packages/vizservers/nanovis/ParticleSystem.cpp

    r2831 r2857  
    55#include <stdlib.h>
    66#include <stdio.h>
     7#include <math.h>
    78#include <pthread.h>
    89
    9 #ifdef HAVE_OPENCV_H
    10 #include <opencv/cv.h>
    11 #endif
    12 #ifdef HAVE_OPENCV_HIGHGUI_H
    13 #include <opencv/highgui.h>
    14 #endif
    15 
    16 #include <vr3d/vr3d.h>
    17 #include <vr3d/vrTexture3D.h>
    18 
     10#include <GL/glew.h>
    1911#include <Cg/cgGL.h>
    2012
    2113#include <vrutil/vrFilePath.h>
     14#include <Image.h>
     15#include <ImageLoader.h>
     16#include <ImageLoaderFactory.h>
    2217
    2318#include <vrmath/vrMatrix4x4f.h>
     
    2722#include "ParticleSystem.h"
    2823#include "ParticleEmitter.h"
     24#include "Texture2D.h"
     25#include "Texture3D.h"
    2926#include "Trace.h"
    3027
     
    292289
    293290    if (!this->isTimeVaryingField()) {
    294         vrTexture3D* flow = new vrTexture3D();
    295         flow->setMinFilter(TF_LINEAR);
    296         flow->setMagFilter(TF_LINEAR);
    297         flow->setPixels(CF_RGBA, DT_FLOAT, _flowWidth, _flowHeight, _flowDepth, data);
    298         this->_curVectorFieldID = flow->getGraphicsObjectID();
     291        Texture3D *flow = new Texture3D(_flowWidth, _flowHeight, _flowDepth,
     292                                        GL_FLOAT, GL_LINEAR, 4, data);
     293        _curVectorFieldID = flow->id();
    299294        _vectorFieldIDs.push_back(_curVectorFieldID);
    300295    } else {
    301296        for (int i = 0; i < 3; ++i) {
    302             vrTexture3D* flow = new vrTexture3D();
    303             flow->setMinFilter(TF_LINEAR);
    304             flow->setMagFilter(TF_LINEAR);
    305             flow->setPixels(CF_RGBA, DT_FLOAT, _flowWidth, _flowHeight, _flowDepth, data);
     297            Texture3D *flow = new Texture3D(_flowWidth, _flowHeight, _flowDepth,
     298                                            GL_FLOAT, GL_LINEAR, 4, data);
    306299            _vectorFields.push_back(flow);
    307             _vectorFieldIDs.push_back(flow->getGraphicsObjectID());
     300            _vectorFieldIDs.push_back(flow->id());
    308301        }
    309         this->_curVectorFieldID = _vectorFieldIDs[0];
    310     }
    311 
    312     _arrows = new vrTexture2D();
    313     _arrows->setWrapS(TW_MIRROR);
    314     _arrows->setWrapT(TW_MIRROR);
    315 
    316 #ifndef USE_RGBA_ARROW
    317     IplImage* pTextureImage = cvLoadImage("arrows_flip2.png");
    318     _arrows->setPixels(CF_RGB, DT_UBYTE, pTextureImage->width, pTextureImage->height, pTextureImage->imageData);
     302        _curVectorFieldID = _vectorFieldIDs[0];
     303    }
     304
     305#ifdef USE_RGBA_ARROW
     306    std::string path = vrFilePath::getInstance()->getPath("arrow.bmp");
    319307#else
    320 #ifdef notdef
    321     // TBD..
    322308    std::string path = vrFilePath::getInstance()->getPath("arrows_red_bg.bmp");
    323     AUX_RGBImageRec *pTextureImage = auxDIBImageLoad(path.c_str());
    324     unsigned char* pixels = new unsigned char [pTextureImage->sizeX * pTextureImage->sizeY * sizeof(unsigned char) * 4];
    325     unsigned char* srcPixels = pTextureImage->data;
    326     unsigned char* dstPixels = pixels;
    327     for (int i = 0; i < pTextureImage->sizeX * pTextureImage->sizeY; ++i) {
    328         *dstPixels = *srcPixels; ++srcPixels;
    329         *(dstPixels + 1) = *srcPixels; ++srcPixels;
    330         *(dstPixels + 2) = *srcPixels; ++srcPixels;
    331 
    332         if ((*dstPixels > 127) && (*(dstPixels + 1) < 127) && (*(dstPixels + 2) < 127)) {
    333             *(dstPixels + 3) = 0;
     309#endif
     310    if (!path.empty()) {
     311        ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp");
     312        if (loader != NULL) {
     313#ifdef USE_RGBA_ARROW
     314            Image *image = loader->load(path.c_str(), Image::IMG_RGBA);
     315#else
     316            Image *image = loader->load(path.c_str(), Image::IMG_RGB);
     317#endif
     318            if (image != NULL) {
     319                unsigned char *bytes = (unsigned char *)image->getImageBuffer();
     320                if (bytes != NULL) {
     321#ifdef USE_RGBA_ARROW
     322                    for (unsigned int y = 0; y < image->getHeight(); ++y) {
     323                        for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) {
     324                            bytes[3] = (bytes[0] > 127 &&
     325                                        bytes[1] < 127 &&
     326                                        bytes[2] < 127) ? 0 : 255;
     327                        }
     328                    }
     329                    _arrows = new Texture2D(image->getWidth(), image->getHeight(),
     330                                            GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL);
     331#else
     332                    _arrows = new Texture2D(image->getWidth(), image->getHeight(),
     333                                            GL_UNSIGNED_BYTE, GL_LINEAR, 3, NULL);
     334#endif
     335                    _arrows->setWrapS(GL_MIRRORED_REPEAT);
     336                    _arrows->setWrapT(GL_MIRRORED_REPEAT);
     337                    _arrows->initialize(image->getImageBuffer());
     338                }
     339                delete image;
     340            } else {
     341                ERROR("Failed to load image: arrows.bmp\n");
     342            }
     343            delete loader;
    334344        } else {
    335             *(dstPixels + 3) = 255;
     345            ERROR("Couldn't find loader for arrows.bmp\n");
    336346        }
    337 
    338         dstPixels += 4;
    339     }
    340 
    341     _arrows->setPixels(CF_RGBA, DT_UBYTE, pTextureImage->sizeX, pTextureImage->sizeY, (void*) pixels);
    342 #endif
    343 
    344 #endif // USE_RGBA_ARROW
     347    } else {
     348        ERROR("Couldn't find path to arrows.bmp\n");
     349    }
    345350
    346351#ifdef TEST
     
    10341039    static bool firstLoad = true;
    10351040    if (this->isTimeVaryingField()) {
    1036         static float oldTime = vrGetTimeStamp();
     1041        static float oldTime = (float)clock()/(float)CLOCKS_PER_SEC;
    10371042#ifdef WANT_TRACE
    10381043        static int index = 0;
    10391044#endif
    1040         float time = vrGetTimeStamp();
     1045        float time = (float)clock()/(float)CLOCKS_PER_SEC;
    10411046        if ((time - oldTime) > 2.0) {
    10421047            if (!_queue.isEmpty()) {
    1043                 float* data = 0;
     1048                float *data = NULL;
    10441049                if (_queue.top(data)) {
    10451050#ifdef WANT_TRACE
    10461051                    float t = clock() /(float) CLOCKS_PER_SEC;
    10471052#endif
    1048                     _vectorFields[0]->updatePixels(data);
     1053                    _vectorFields[0]->update(data);
    10491054#ifdef WANT_TRACE
    10501055                    float ti = clock() / (float) CLOCKS_PER_SEC;
     
    16611666
    16621667#ifndef TEST
    1663             _arrows->bind(0);
     1668            _arrows->activate(); //_arrows->bind(0);
    16641669            glEnable(GL_TEXTURE_2D);
    16651670            //glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 60.0f );
     
    16771682            cgSetParameter1f(_mvCurrentTimeParam, _currentTime);
    16781683            //TRACE("%f %f, %f %d\n", _fov, tan(_fov), tan(_fov / 2.0), _screenHeight);
    1679             //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * PI / 180 * 0.5) * _screenHeight * 0.5);
    1680             //float v = tan(_fov * PI / 180 * 0.5) * _screenHeight * 0.5;
    1681             cgSetParameter1f(_mvTanHalfFOVParam, tan(_fov * PI / 180 * 0.5) * _screenHeight * 0.5);
    1682             //cgSetParameter1f(_mvTanHalfFOVParam,  _screenHeight * 0.5 / tan(_fov * PI / 180 * 0.5));
     1684            //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * M_PI / 180 * 0.5) * _screenHeight * 0.5);
     1685            //float v = tan(_fov * M_PI / 180 * 0.5) * _screenHeight * 0.5;
     1686            cgSetParameter1f(_mvTanHalfFOVParam, tan(_fov * M_PI / 180 * 0.5) * _screenHeight * 0.5);
     1687            //cgSetParameter1f(_mvTanHalfFOVParam,  _screenHeight * 0.5 / tan(_fov * M_PI / 180 * 0.5));
    16831688
    16841689            cgGLSetStateMatrixParameter(_mvpParticleParam,
  • trunk/packages/vizservers/nanovis/ParticleSystem.h

    r2818 r2857  
    1111#include <Cg/cg.h>
    1212
    13 #include <vr3d/vrTexture2D.h>
    14 #include <vr3d/vrTexture3D.h>
    1513#include <vrmath/vrVector3f.h>
    1614
    1715#include "ParticleEmitter.h"
    1816#include "RenderVertexArray.h"
     17#include "Texture2D.h"
     18#include "Texture3D.h"
    1919
    2020#include "CircularQueue.h"
     
    137137    // TIME SERIES
    138138    std::vector<unsigned int> _vectorFieldIDs;
    139     std::vector<vrTexture3D *> _vectorFields;
     139    std::vector<Texture3D *> _vectorFields;
    140140    unsigned int _curVectorFieldID;
    141141    float _time_series_vel_mag_min;
     
    156156    unsigned _colorBufferID;
    157157    //////////////////////////////////////////
    158     vrTexture2D *_arrows;
     158    Texture2D *_arrows;
    159159
    160160    float _camx;
  • trunk/packages/vizservers/nanovis/PlaneRenderer.cpp

    r2835 r2857  
    109109PlaneRenderer::activate_shader(int index)
    110110{
    111     cgGLSetTextureParameter(_data_param, _plane[index]->id);
     111    cgGLSetTextureParameter(_data_param, _plane[index]->id());
    112112    cgGLSetTextureParameter(_tf_param, _tf[index]->id());
    113113    cgGLEnableTextureParameter(_data_param);
  • trunk/packages/vizservers/nanovis/PointSetRenderer.cpp

    r2831 r2857  
    3030        for (unsigned int y = 0; y < image->getHeight(); ++y) {
    3131            for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) {
    32                 bytes[3] =  (bytes[0] == 0) ? 0 : 255;
     32                bytes[3] = (bytes[0] == 0) ? 0 : 255;
    3333            }
    3434        }
     
    4444
    4545    delete loader;
     46    delete image;
    4647    _bucketSort = new PCA::BucketSort(1024);
    4748}
  • trunk/packages/vizservers/nanovis/PointShader.cpp

    r2833 r2857  
    1313    _normal(0)
    1414{
    15     this->loadVertexProgram("pointsvp.cg", "main");
     15    loadVertexProgram("pointsvp.cg", "main");
    1616    _modelviewVP  = getNamedParameterFromVP("modelview");
    1717    _projectionVP = getNamedParameterFromVP("projection");
  • trunk/packages/vizservers/nanovis/R2/include/R2/R2FilePath.h

    r2841 r2857  
    2828
    2929    /// get R2FilePath instance
    30     static R2FilePath* getInstance();
     30    static R2FilePath *getInstance();
    3131
    3232private:
  • trunk/packages/vizservers/nanovis/R2/src/R2FilePath.cpp

    r2841 r2857  
    112112    _curDirectory = buff;
    113113}
    114 
  • trunk/packages/vizservers/nanovis/Sphere.cpp

    r2822 r2857  
    1919Sphere::Sphere(float x, float y, float z,
    2020               float r, float g, float b,
    21                float _radius,
    22                int _stack,
    23                int _slice) :
     21               float radius,
     22               int stack,
     23               int slice) :
    2424    Renderable(Vector3(x, y, z)),
    25     radius(_radius),
    26     color(Color(r,g,b)),
    27     stack(_stack),
    28     slice(_slice)
     25    _radius(radius),
     26    _color(Color(r, g, b)),
     27    _stack(stack),
     28    _slice(slice)
    2929{
    30     boundary = BoundBox(x-r, y-r, z-r, x+r, y+r, z+r);
    3130}
    3231
     
    3534}
    3635
    37 void 
    38 Sphere::render()
     36void
     37Sphere::draw(GLUquadric *quad)
    3938{
    40 }
     39    glColor3f(_color.r(), _color.g(), _color.b());
    4140
    42 void
    43 Sphere::draw(GLUquadric* quad)
    44 {
    45     glColor3f(color.R, color.G, color.B);
    46    
    4741    glMatrixMode(GL_MODELVIEW);
    4842    glPushMatrix();
    49     glTranslatef(location.x, location.y, location.z);
    50    
     43    glTranslatef(_location.x, _location.y, _location.z);
     44
    5145    //draw it
    52     gluSphere(quad, radius, stack, slice);
    53    
     46    gluSphere(quad, _radius, _stack, _slice);
     47
    5448    glPopMatrix();
    5549}
    5650
    57 void
    58 Sphere::set_horizontal_res(int _slice) {
    59     slice=_slice;
     51void
     52Sphere::set_horizontal_res(int slice)
     53{
     54    _slice = slice;
    6055}
    6156
    62 void
    63 Sphere::set_vertical_res(int _stack) {
    64     stack=_stack;
     57void
     58Sphere::set_vertical_res(int stack)
     59{
     60    _stack = stack;
    6561}
    66 
  • trunk/packages/vizservers/nanovis/Sphere.h

    r2837 r2857  
    1414 * ======================================================================
    1515 */
    16 
    17 #ifndef _SPHERE_H_
    18 #define _SPHERE_H_
     16#ifndef SPHERE_H
     17#define SPHERE_H
    1918
    2019#include <GL/glew.h>
     
    2928{
    3029public:
    31     Sphere(float x, float y, float z, float r, float g, float b, float _radius,
    32            int _stack, int _slice);
     30    Sphere(float x, float y, float z,
     31           float r, float g, float b,
     32           float radius,
     33           int stack, int slice);
    3334
    3435    virtual ~Sphere();
    3536
    36     void set_vertical_res(int _stack);
    37     void set_horizontal_res(int _slice);
    38        
     37    void set_vertical_res(int stack);
     38    void set_horizontal_res(int slice);
     39
    3940    //display the sphere
    40     void draw(GLUquadric* q);
    41     void render();
     41    void draw(GLUquadric *q);
     42    void render()
     43    {}
    4244
    43     float radius;
    44     Color color;
    45     int stack;
    46     int slice;
     45private:
     46    float _radius;
     47    Color _color;
     48    int _stack;
     49    int _slice;
    4750};
    4851
  • trunk/packages/vizservers/nanovis/Texture1D.cpp

    r2831 r2857  
    2323
    2424Texture1D::Texture1D() :
    25     gl_resource_allocated(false),
    26     id(0)
     25    _width(0),
     26    _numComponents(3),
     27    _glResourceAllocated(false),
     28    _id(0),
     29    _type(GL_FLOAT),
     30    _interpType(GL_LINEAR),
     31    _wrapS(GL_CLAMP_TO_EDGE)
    2732{
    2833}
     
    3136                     GLuint type, GLuint interp,
    3237                     int numComponents, void *data) :
    33     gl_resource_allocated(false),
    34     id(0)
     38    _width(width),
     39    _numComponents(numComponents),
     40    _glResourceAllocated(false),
     41    _id(0),
     42    _type(type),
     43    _interpType(interp),
     44    _wrapS(GL_CLAMP_TO_EDGE)
    3545{
    36     this->width = width;
    37     this->type = type;
    38     this->interp_type = interp;
    39     this->n_components = numComponents;
    40 
    4146    if (data != NULL)
    4247        initialize(data);
     
    4550Texture1D::~Texture1D()
    4651{
    47     glDeleteTextures(1, &id);
     52    glDeleteTextures(1, &_id);
    4853}
    4954
    5055GLuint Texture1D::initialize(void *data)
    5156{
    52     if (gl_resource_allocated)
    53         glDeleteTextures(1, &id);
     57    if (_glResourceAllocated)
     58        glDeleteTextures(1, &_id);
    5459
    55     glGenTextures(1, &id);
     60    glGenTextures(1, &_id);
    5661
    5762    update(data);
    5863       
    59     gl_resource_allocated = true;
    60     return id;
     64    _glResourceAllocated = true;
     65    return _id;
    6166}
    6267
     
    6570    glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
    6671
    67     glBindTexture(GL_TEXTURE_1D, id);
     72    glBindTexture(GL_TEXTURE_1D, _id);
    6873       
    69     glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
    70     glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, interp_type);
    71     glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, interp_type);
     74    glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, _wrapS);
     75    glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, _interpType);
     76    glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, _interpType);
    7277
    7378    GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA };
    7479
    75     glTexImage1D(GL_TEXTURE_1D, 0, format[n_components], width, 0,
    76                  format[n_components], type, data);
     80    glTexImage1D(GL_TEXTURE_1D, 0, format[_numComponents], _width, 0,
     81                 format[_numComponents], _type, data);
    7782
    7883    assert(glGetError()==0);   
     
    8186void Texture1D::activate()
    8287{
    83     glBindTexture(GL_TEXTURE_1D, id);
     88    glBindTexture(GL_TEXTURE_1D, _id);
    8489    glEnable(GL_TEXTURE_1D);
    8590}
     
    8893{
    8994    glDisable(GL_TEXTURE_1D);           
     95}
     96
     97void Texture1D::setWrapS(GLuint wrapMode)
     98{
     99    _wrapS = wrapMode;
    90100}
    91101
  • trunk/packages/vizservers/nanovis/Texture1D.h

    r2831 r2857  
    4040    void deactivate();
    4141
     42    int width() const
     43    {
     44        return _width;
     45    }
     46
     47    GLuint id() const
     48    {
     49        return _id;
     50    }
     51
     52    void setWrapS(GLuint wrapMode);
     53
    4254    static void check_max_size();
    4355
    4456    static void check_max_unit();
    4557
    46     int width;
     58private:
     59    int _width;
    4760
    48     int n_components;
     61    int _numComponents;
    4962
    50     bool gl_resource_allocated;
    51     GLuint id;
    52     GLuint type;
    53     GLuint interp_type;
    54 
    55     //GLuint tex_unit;
     63    bool _glResourceAllocated;
     64    GLuint _id;
     65    GLuint _type;
     66    GLuint _interpType;
     67    GLuint _wrapS;
    5668};
    5769
  • trunk/packages/vizservers/nanovis/Texture2D.cpp

    r2831 r2857  
    2424
    2525Texture2D::Texture2D() :
    26     gl_resource_allocated(false),
    27     id(0)
     26    _width(0),
     27    _height(0),
     28    _numComponents(3),
     29    _glResourceAllocated(false),
     30    _id(0),
     31    _type(GL_FLOAT),
     32    _interpType(GL_LINEAR),
     33    _wrapS(GL_CLAMP_TO_EDGE),
     34    _wrapT(GL_CLAMP_TO_EDGE)
    2835{}
    2936
     
    3138                     GLuint type, GLuint interp,
    3239                     int numComponents, void *data) :
    33     gl_resource_allocated(false),
    34     id(0)
     40    _width(width),
     41    _height(height),
     42    _numComponents(numComponents),
     43    _glResourceAllocated(false),
     44    _id(0),
     45    _type(type),
     46    _interpType(interp),
     47    _wrapS(GL_CLAMP_TO_EDGE),
     48    _wrapT(GL_CLAMP_TO_EDGE)
    3549{
    36     this->width = width;
    37     this->height = height;
    38     this->type = type;
    39     this->interp_type = interp;
    40     this->n_components = numComponents;
    41 
    4250    if (data != NULL)
    4351        initialize(data);
     
    4654Texture2D::~Texture2D()
    4755{
    48     glDeleteTextures(1, &id);
     56    glDeleteTextures(1, &_id);
    4957}
    5058
    5159GLuint Texture2D::initialize(void *data)
    5260{
    53     if (gl_resource_allocated)
    54         glDeleteTextures(1, &id);
     61    if (_glResourceAllocated)
     62        glDeleteTextures(1, &_id);
    5563
    56     glGenTextures(1, &id);
     64    glGenTextures(1, &_id);
    5765
    5866    update(data);
    5967
    60     gl_resource_allocated = true;
    61     return id;
     68    _glResourceAllocated = true;
     69    return _id;
    6270}
    6371
    6472void Texture2D::update(void *data)
    6573{
    66     glBindTexture(GL_TEXTURE_2D, id);
     74    glBindTexture(GL_TEXTURE_2D, _id);
    6775
    6876    glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
    6977
    70     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
    71     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
     78    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, _wrapS);
     79    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, _wrapT);
    7280
    73     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, interp_type);
    74     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, interp_type);
     81    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, _interpType);
     82    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, _interpType);
    7583
    7684    //to do: add handling to more formats
    7785#ifdef NV40
    78     if (type == GL_FLOAT) {
     86    if (_type == GL_FLOAT) {
    7987        GLuint targetFormat[5] = { -1, GL_LUMINANCE16F_ARB, GL_LUMINANCE_ALPHA16F_ARB, GL_RGB16F_ARB, GL_RGBA16F_ARB };
    8088        GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA };
    81         glTexImage2D(GL_TEXTURE_2D, 0, targetFormat[n_components], width, height, 0,
    82                      format[n_components], type, data);
     89        glTexImage2D(GL_TEXTURE_2D, 0, targetFormat[_numComponents], _width, _height, 0,
     90                     format[_numComponents], _type, data);
    8391    } else {
    8492#endif
    8593        GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA };
    86         glTexImage2D(GL_TEXTURE_2D, 0, format[n_components], width, height, 0,
    87                      format[n_components], type, data);
     94        glTexImage2D(GL_TEXTURE_2D, 0, format[_numComponents], _width, _height, 0,
     95                     format[_numComponents], _type, data);
    8896#ifdef NV40
    8997    }
    9098#endif
    9199    assert(glGetError() == 0);
    92 
    93     gl_resource_allocated = true;
    94100}
    95101
    96 void
    97 Texture2D::activate()
     102void Texture2D::activate()
    98103{
    99     glBindTexture(GL_TEXTURE_2D, id);
     104    glBindTexture(GL_TEXTURE_2D, _id);
    100105    glEnable(GL_TEXTURE_2D);
    101106}
    102107
    103 void
    104 Texture2D::deactivate()
     108void Texture2D::deactivate()
    105109{
    106110    glDisable(GL_TEXTURE_2D);           
    107111}
    108112
    109 void
    110 Texture2D::check_max_size()
     113void Texture2D::setWrapS(GLuint wrapMode)
     114{
     115    _wrapS = wrapMode;
     116}
     117
     118void Texture2D::setWrapT(GLuint wrapMode)
     119{
     120    _wrapT = wrapMode;
     121}
     122
     123void Texture2D::check_max_size()
    111124{
    112125    GLint max = 0;
     
    116129}
    117130
    118 void
    119 Texture2D::check_max_unit()
     131void Texture2D::check_max_unit()
    120132{
    121133    int max = 0;
  • trunk/packages/vizservers/nanovis/Texture2D.h

    r2831 r2857  
    4040    void deactivate();
    4141
     42    int width() const
     43    {
     44        return _width;
     45    }
     46
     47    int height() const
     48    {
     49        return _width;
     50    }
     51
     52    GLuint id() const
     53    {
     54        return _id;
     55    }
     56
     57    void setWrapS(GLuint wrapMode);
     58
     59    void setWrapT(GLuint wrapMode);
     60
    4261    static void check_max_size();
    4362
    4463    static void check_max_unit();
    4564
    46     int width;
    47     int height;
     65private:
     66    int _width;
     67    int _height;
    4868
    49     int n_components;
     69    int _numComponents;
    5070
    51     bool gl_resource_allocated;
    52     GLuint id;
    53     GLuint type;
    54     GLuint interp_type;
     71    bool _glResourceAllocated;
     72    GLuint _id;
     73    GLuint _type;
     74    GLuint _interpType;
     75    GLuint _wrapS;
     76    GLuint _wrapT;
    5577};
    5678
  • trunk/packages/vizservers/nanovis/Texture3D.cpp

    r2831 r2857  
    2424
    2525Texture3D::Texture3D() :
    26     gl_resource_allocated(false),
    27     id(0)
     26    _width(0),
     27    _height(0),
     28    _depth(0),
     29    _numComponents(3),
     30    _glResourceAllocated(false),
     31    _id(0),
     32    _type(GL_FLOAT),
     33    _interpType(GL_LINEAR),
     34    _wrapS(GL_CLAMP_TO_EDGE),
     35    _wrapT(GL_CLAMP_TO_EDGE),
     36    _wrapR(GL_CLAMP_TO_EDGE)
    2837{}
    2938
     
    3140                     GLuint type, GLuint interp,
    3241                     int numComponents, void *data) :
    33     gl_resource_allocated(false),
    34     id(0)
     42    _width(width),
     43    _height(height),
     44    _depth(depth),
     45    _numComponents(numComponents),
     46    _glResourceAllocated(false),
     47    _id(0),
     48    _type(type),
     49    _interpType(interp),
     50    _wrapS(GL_CLAMP_TO_EDGE),
     51    _wrapT(GL_CLAMP_TO_EDGE),
     52    _wrapR(GL_CLAMP_TO_EDGE)
    3553{
    36     this->width = width;
    37     this->height = height;
    38     this->depth = depth;
     54    //int m = (_width > _height) ? _width : _height;
     55    //m = (m > _depth) ? m : _depth;
    3956
    40     //int m = (width > height) ? width : height;
    41     //m = (m > depth) ? m : depth;
     57    //int m = max(max(_width, _height), _depth);
     58    _aspectRatioWidth = 1.;
     59    _aspectRatioHeight = (double)_height/(double)_width;
     60    _aspectRatioDepth = (double)_depth/(double)_width;
    4261
    43     //int m = max(max(width, height), depth);
    44     this->aspect_ratio_width = 1.;
    45     this->aspect_ratio_height = (double)height/(double)width;
    46     this->aspect_ratio_depth = (double)depth/(double)width;
    47 
    48     //this->aspect_ratio_width = (double)width/(double)m;
    49     //this->aspect_ratio_height = (double)height/(double)m;
    50     //this->aspect_ratio_depth = (double)depth/(double)m;
    51 
    52     this->type = type;
    53     this->interp_type = interp;
    54     this->n_components = numComponents;
     62    //_aspectRatioWidth = (double)_width/(double)m;
     63    //_aspectRatioHeight = (double)_height/(double)m;
     64    //_aspectRatioDepth = (double)_depth/(double)m;
    5565
    5666    if (data != NULL)
     
    6070Texture3D::~Texture3D()
    6171{
    62     glDeleteTextures(1, &id);
     72    glDeleteTextures(1, &_id);
    6373}
    6474
    6575GLuint Texture3D::initialize(void *data)
    6676{
    67     if (id != 0)
    68         glDeleteTextures(1, &id);
     77    if (_glResourceAllocated)
     78        glDeleteTextures(1, &_id);
    6979
    70     glGenTextures(1, &id);
     80    glGenTextures(1, &_id);
    7181
    7282    update(data);
    73  
    74     return id;
     83
     84    _glResourceAllocated = true;
     85    return _id;
    7586}
    7687
    7788void Texture3D::update(void *data)
    7889{
    79     assert(id > 0 && id != (GLuint)-1);
    80     glBindTexture(GL_TEXTURE_3D, id);
     90    glBindTexture(GL_TEXTURE_3D, _id);
    8191
    8292    //load texture with 16 bit half floating point precision if card is 6 series NV40
     
    8595    glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
    8696
    87     glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
    88     glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
    89     glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
     97    glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, _wrapS);
     98    glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, _wrapT);
     99    glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, _wrapR);
    90100
    91     glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, interp_type);
    92     glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, interp_type);
     101    glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, _interpType);
     102    glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, _interpType);
    93103
    94104    //to do: add handling to more formats
    95105#ifdef NV40
    96     if (type == GL_FLOAT) {
     106    if (_type == GL_FLOAT) {
    97107        GLuint targetFormat[5] = { -1, GL_LUMINANCE16F_ARB, GL_LUMINANCE_ALPHA16F_ARB, GL_RGB16F_ARB, GL_RGBA16F_ARB };
    98108        GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA };
    99         glTexImage3D(GL_TEXTURE_3D, 0, targetFormat[n_components],
    100                      width, height, depth, 0,
    101                      format[n_components], type, data);
     109        glTexImage3D(GL_TEXTURE_3D, 0, targetFormat[_numComponents],
     110                     _width, _height, _depth, 0,
     111                     format[_numComponents], _type, data);
    102112    } else {
    103113#endif
    104114        GLuint format[5] = { -1, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA };
    105         glTexImage3D(GL_TEXTURE_3D, 0, format[n_components],
    106                      width, height, depth, 0,
    107                      format[n_components], type, data);
     115        glTexImage3D(GL_TEXTURE_3D, 0, format[_numComponents],
     116                     _width, _height, _depth, 0,
     117                     format[_numComponents], _type, data);
    108118#ifdef NV40
    109119    }
     
    111121
    112122    assert(glGetError()==0);
    113 
    114     gl_resource_allocated = true;
    115123}
    116124
     
    118126{
    119127    glEnable(GL_TEXTURE_3D);
    120     glBindTexture(GL_TEXTURE_3D, id);
     128    glBindTexture(GL_TEXTURE_3D, _id);
    121129}
    122130
     
    124132{
    125133    glDisable(GL_TEXTURE_3D);           
     134}
     135
     136void Texture3D::setWrapS(GLuint wrapMode)
     137{
     138    _wrapS = wrapMode;
     139}
     140
     141void Texture3D::setWrapT(GLuint wrapMode)
     142{
     143    _wrapT = wrapMode;
     144}
     145
     146void Texture3D::setWrapR(GLuint wrapMode)
     147{
     148    _wrapR = wrapMode;
    126149}
    127150
  • trunk/packages/vizservers/nanovis/Texture3D.h

    r2831 r2857  
    4040    void deactivate();
    4141
     42    int width() const
     43    {
     44        return _width;
     45    }
     46
     47    int height() const
     48    {
     49        return _width;
     50    }
     51
     52    int depth() const
     53    {
     54        return _width;
     55    }
     56
     57    double aspectRatioWidth() const
     58    {
     59        return _aspectRatioWidth;
     60    }
     61
     62    double aspectRatioHeight() const
     63    {
     64        return _aspectRatioHeight;
     65    }
     66
     67    double aspectRatioDepth() const
     68    {
     69        return _aspectRatioDepth;
     70    }
     71
     72    GLuint id() const
     73    {
     74        return _id;
     75    }
     76
     77    void setWrapS(GLuint wrapMode);
     78
     79    void setWrapT(GLuint wrapMode);
     80
     81    void setWrapR(GLuint wrapMode);
     82
    4283    static void check_max_size();
    4384
    4485    static void check_max_unit();
    4586
    46     int width;
    47     int height;
    48     int depth;
     87private:
     88    int _width;
     89    int _height;
     90    int _depth;
    4991
    50     double aspect_ratio_width;
    51     double aspect_ratio_height;
    52     double aspect_ratio_depth;
     92    double _aspectRatioWidth;
     93    double _aspectRatioHeight;
     94    double _aspectRatioDepth;
    5395
    54     int n_components;
     96    int _numComponents;
    5597
    56     bool gl_resource_allocated;
    57     GLuint id;
    58     GLuint type;
    59     GLuint interp_type;
    60     //GLuint tex_unit;
     98    bool _glResourceAllocated;
     99    GLuint _id;
     100    GLuint _type;
     101    GLuint _interpType;
     102    GLuint _wrapS;
     103    GLuint _wrapT;
     104    GLuint _wrapR;
    61105};
    62106
  • trunk/packages/vizservers/nanovis/TransferFunction.cpp

    r2831 r2857  
    2727
    2828    _tex = new Texture1D(size, GL_FLOAT, GL_LINEAR, 4, data);
    29     _id = _tex->id;
     29    _id = _tex->id();
    3030}
    3131
  • trunk/packages/vizservers/nanovis/VelocityArrowsSlice.cpp

    r2831 r2857  
    44#include <GL/glew.h>
    55#include <GL/gl.h>
    6 #ifdef HAVE_OPENCV_H
    7 #include <opencv/cv.h>
    8 #endif
    9 #ifdef HAVE_OPENCV_HIGHGUI_H
    10 #include <opencv/highgui.h>
    11 #endif
    126
    137#include <R2/R2FilePath.h>
     8#include <Image.h>
     9#include <ImageLoaderFactory.h>
     10#include <ImageLoader.h>
    1411
    1512#include "VelocityArrowsSlice.h"
     
    5249    _pointCount = 0;
    5350
    54     /*
    55       _particleVP =
    56           LoadCgSourceProgram(_context, "velocityslicevp.cg", CG_PROFILE_VP40, "vpmain");
    57 
    58       _mvpParticleParam = cgGetNamedParameter(_particleVP, "mvp");
    59       _mvParticleParam = cgGetNamedParameter(_particleVP, "modelview");
    60       _mvTanHalfFOVParam = cgGetNamedParameter(_particleVP, "tanHalfFOV");
    61 
    62       // TBD..
    63       _particleFP =
    64           LoadCgSourceProgram(_context, "velocityslicefp.cg", CG_PROFILE_FP40, "fpmain");
    65 
    66       _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield");
    67     */
    68 
    69     /*
    70       TRACE("test1\n");
    71       const char *path = R2FilePath::getInstance()->getPath("arrows_flip2.png");
    72       if (path) {
    73           TRACE("test2 %s\n", path);
    74       } else {
    75           TRACE("tt\n");
    76       }
    77       IplImage* pTextureImage = cvLoadImage(path);
    78       TRACE("test3\n");
    79       if (pTextureImage) {
    80           TRACE("file(%s) has been loaded\n", path);
    81           _arrowsTex = new Texture2D(pTextureImage->width, pTextureImage->height, GL_FLOAT, GL_LINEAR, 3, pTextureImage->imageData);
    82           //_arrowsTex->setWrapS(TW_MIRROR);
    83           //_arrowsTex->setWrapT(TW_MIRROR);
    84           TRACE("file(%s) has been loaded\n", path);
    85           //cvReleaseImage(&pTextureImage);
    86       } else {
    87           TRACE("not found\n");
    88       }
    89       if (path) delete [] path;
    90     */
     51    _particleVP =
     52        LoadCgSourceProgram(_context, "velocityslicevp.cg", CG_PROFILE_VP40, "vpmain");
     53
     54    _mvpParticleParam = cgGetNamedParameter(_particleVP, "mvp");
     55    _mvParticleParam = cgGetNamedParameter(_particleVP, "modelview");
     56    _mvTanHalfFOVParam = cgGetNamedParameter(_particleVP, "tanHalfFOV");
     57
     58    // TBD..
     59    _particleFP =
     60        LoadCgSourceProgram(_context, "velocityslicefp.cg", CG_PROFILE_FP40, "fpmain");
     61
     62    _vectorParticleParam = cgGetNamedParameter(_particleVP, "vfield");
     63
     64    const char *path = R2FilePath::getInstance()->getPath("arrows.bmp");
     65    if (path != NULL) {
     66        ImageLoader *loader = ImageLoaderFactory::getInstance()->createLoader("bmp");
     67        if (loader != NULL) {
     68            Image *image = loader->load(path, Image::IMG_RGBA);
     69            delete [] path;
     70            if (image != NULL) {
     71                unsigned char *bytes = (unsigned char *)image->getImageBuffer();
     72                if (bytes != NULL) {
     73                    for (unsigned int y = 0; y < image->getHeight(); ++y) {
     74                        for (unsigned int x = 0; x < image->getWidth(); ++x, bytes += 4) {
     75                            bytes[3] = (bytes[0] == 0 &&
     76                                        bytes[1] == 0 &&
     77                                        bytes[2] == 0) ? 0 : 255;
     78                        }
     79                    }
     80
     81                    _arrowsTex = new Texture2D(image->getWidth(), image->getHeight(),
     82                                               GL_UNSIGNED_BYTE, GL_LINEAR, 4, NULL);
     83                    _arrowsTex->setWrapS(GL_MIRRORED_REPEAT);
     84                    _arrowsTex->setWrapT(GL_MIRRORED_REPEAT);
     85                    _arrowsTex->initialize(image->getImageBuffer());
     86                }
     87                delete image;
     88            } else {
     89                ERROR("Failed to load image: arrows.bmp\n");
     90            }
     91            delete loader;
     92        } else {
     93            delete [] path;
     94            ERROR("Couldn't find loader for arrows.bmp\n");
     95        }
     96    } else {
     97        ERROR("Couldn't find path to arrows.bmp\n");
     98    }
    9199
    92100    _arrowColor.set(1, 1, 0);
    93101
    94     TRACE("test1\n");
     102    TRACE("Leaving VelocityArrowsSlice constructor\n");
    95103}
    96104
     
    190198
    191199    for (unsigned int index = 0; index < _samplingPositions.size(); ++index) {
    192         glMultiTexCoord3f(0, _samplingPositions[index].x,_samplingPositions[index].y,_samplingPositions[index].z);
     200        glMultiTexCoord3f(0,
     201                          _samplingPositions[index].x,
     202                          _samplingPositions[index].y,
     203                          _samplingPositions[index].z);
    193204        glVertex2f(index % _renderTargetWidth,
    194205                   index / _renderTargetHeight);
     
    214225void VelocityArrowsSlice::render()
    215226{
    216     //if (!_enabled || (_vectorFieldGraphicsID == 0)) return;   
    217     if (!_enabled) return;
     227    if (!_enabled)
     228        return;
    218229
    219230    if (_dirty) {
    220         computeSamplingTicks();
    221         queryVelocity();
    222         _dirty = false;
     231        computeSamplingTicks();
     232        queryVelocity();
     233        _dirty = false;
    223234    }
    224235
     
    228239    glTranslatef(-0.5f, -0.5f, -0.5f);
    229240    if (_renderMode == LINES) {
    230         glDisable(GL_TEXTURE_2D);
    231         glLineWidth(2.0);
    232         glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z);
    233         glBegin(GL_LINES);
    234         Vector3 pos;
    235         Vector3 pos2;
    236         Vector3 vel(1, 0, 0);
    237         Vector3 v, v2;
    238         if (_axis == 2) {
    239             int index = 0;
    240             for (int y = 1; y <= _tickCountY; ++y) {
    241                 for (int x = 1; x <= _tickCountX; ++x, ++index) {
    242                     pos = this->_samplingPositions[index];
    243                     pos2 = this->_velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
    244                     glVertex3f(pos.x, pos.y, pos.z);
    245                     glVertex3f(pos2.x, pos2.y, pos2.z);
    246                     /*v = pos - pos2;
     241        glDisable(GL_TEXTURE_2D);
     242        glLineWidth(2.0);
     243        glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z);
     244        glBegin(GL_LINES);
     245        Vector3 pos;
     246        Vector3 pos2;
     247        Vector3 vel(1, 0, 0);
     248        Vector3 v, v2;
     249        if (_axis == 2) {
     250            int index = 0;
     251            for (int y = 1; y <= _tickCountY; ++y) {
     252                for (int x = 1; x <= _tickCountX; ++x, ++index) {
     253                    pos = _samplingPositions[index];
     254                    pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
     255                    glVertex3f(pos.x, pos.y, pos.z);
     256                    glVertex3f(pos2.x, pos2.y, pos2.z);
     257                    /*v = pos - pos2;
    247258                      v2.x = 1;
    248259                      v2.y = 1;
     
    252263                      y3 *= adj
    253264                      z3 *= adj
    254                     */
    255                 }
    256             }
    257         } else if (_axis == 1) {
    258             int index = 0;
    259             for (int z = 1; z <= _tickCountZ; ++z) {
    260                 for (int x = 1; x <= _tickCountX; ++x, ++index) {
    261                     pos = _samplingPositions[index];
    262                     pos2 = this->_velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
    263 
    264                     glVertex3f(pos.x, pos.y, pos.z);
    265                     glVertex3f(pos2.x, pos2.y, pos2.z);
    266                 }
    267             }
    268         } else if (_axis == 0) {
    269             int index = 0;
    270             for (int z = 1; z <= _tickCountZ; ++z) {
    271                 for (int y = 1; y <= _tickCountY; ++y, ++index) {
    272                     pos = _samplingPositions[index];
    273                     pos2 = this->_velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
    274 
    275                     glVertex3f(pos.x, pos.y, pos.z);
    276                     glVertex3f(pos2.x, pos2.y, pos2.z);
    277                 }
    278             }
    279         }
    280 
    281         glEnd();
    282         glLineWidth(1.0);
     265                    */
     266                }
     267            }
     268        } else if (_axis == 1) {
     269            int index = 0;
     270            for (int z = 1; z <= _tickCountZ; ++z) {
     271                for (int x = 1; x <= _tickCountX; ++x, ++index) {
     272                    pos = _samplingPositions[index];
     273                    pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
     274
     275                    glVertex3f(pos.x, pos.y, pos.z);
     276                    glVertex3f(pos2.x, pos2.y, pos2.z);
     277                }
     278            }
     279        } else if (_axis == 0) {
     280            int index = 0;
     281            for (int z = 1; z <= _tickCountZ; ++z) {
     282                for (int y = 1; y <= _tickCountY; ++y, ++index) {
     283                    pos = _samplingPositions[index];
     284                    pos2 = _velocities[index].scale(_projectionVector).scale(_maxVelocityScale) + pos;
     285
     286                    glVertex3f(pos.x, pos.y, pos.z);
     287                    glVertex3f(pos2.x, pos2.y, pos2.z);
     288                }
     289            }
     290        }
     291
     292        glEnd();
     293        glLineWidth(1.0);
    283294    } else {
    284         glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z);
    285         glEnable(GL_BLEND);
    286         glBlendFunc(GL_SRC_ALPHA, GL_ONE);
    287         glEnable(GL_POINT_SPRITE_NV);
    288         glPointSize(20);                               
    289         glEnable(GL_VERTEX_PROGRAM_POINT_SIZE_NV);
    290 
    291         _arrowsTex->activate();
    292         glEnable(GL_TEXTURE_2D);
    293 
    294         glPointParameterfARB( GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f );
    295 
    296         glPointParameterfARB( GL_POINT_SIZE_MIN_ARB, 1.0f);
    297         glPointParameterfARB( GL_POINT_SIZE_MAX_ARB, 100.0f);
    298         glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE );
    299 
    300         cgGLBindProgram(_particleVP);
    301         cgGLBindProgram(_particleFP);
    302         cgGLEnableProfile(CG_PROFILE_VP40);
    303         cgGLEnableProfile(CG_PROFILE_FP40);
    304 
    305         cgGLSetTextureParameter(_vectorParticleParam, _vectorFieldGraphicsID);
    306         cgGLEnableTextureParameter(_vectorParticleParam);
    307 
    308         //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * 0.5) * _screenHeight * 0.5);
    309 
    310         cgGLSetStateMatrixParameter(_mvpParticleParam,
    311                                     CG_GL_MODELVIEW_PROJECTION_MATRIX,
    312                                     CG_GL_MATRIX_IDENTITY);
    313         cgGLSetStateMatrixParameter(_mvParticleParam,
    314                                     CG_GL_MODELVIEW_MATRIX,
    315                                     CG_GL_MATRIX_IDENTITY);
    316 
    317         glEnableClientState(GL_VERTEX_ARRAY);
    318         glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID);
    319         glVertexPointer(3, GL_FLOAT, 0, 0);
    320         //glEnableClientState(GL_COLOR_ARRAY);
    321 
    322         // TBD..
    323         glDrawArrays(GL_POINTS, 0, _pointCount);
    324         glPointSize(1);
    325         glDrawArrays(GL_POINTS, 0, _pointCount);
    326 
    327         glDisableClientState(GL_VERTEX_ARRAY);
    328 
    329         cgGLDisableProfile(CG_PROFILE_VP40);
    330         cgGLDisableProfile(CG_PROFILE_FP40);
    331 
    332         glDepthMask(GL_TRUE);
    333 
    334         glDisable(GL_POINT_SPRITE_NV);
    335         glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_NV);
    336 
    337         glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    338         glDisable(GL_BLEND);
    339         _arrowsTex->deactivate();
     295        glColor3f(_arrowColor.x, _arrowColor.y, _arrowColor.z);
     296        glEnable(GL_BLEND);
     297        glBlendFunc(GL_SRC_ALPHA, GL_ONE);
     298        glEnable(GL_POINT_SPRITE_NV);
     299        glPointSize(20);
     300        glEnable(GL_VERTEX_PROGRAM_POINT_SIZE_NV);
     301
     302        _arrowsTex->activate();
     303        glEnable(GL_TEXTURE_2D);
     304
     305        glPointParameterfARB(GL_POINT_FADE_THRESHOLD_SIZE_ARB, 0.0f);
     306        glPointParameterfARB(GL_POINT_SIZE_MIN_ARB, 1.0f);
     307        glPointParameterfARB(GL_POINT_SIZE_MAX_ARB, 100.0f);
     308        glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
     309
     310        cgGLBindProgram(_particleVP);
     311        cgGLBindProgram(_particleFP);
     312        cgGLEnableProfile(CG_PROFILE_VP40);
     313        cgGLEnableProfile(CG_PROFILE_FP40);
     314
     315        cgGLSetTextureParameter(_vectorParticleParam, _vectorFieldGraphicsID);
     316        cgGLEnableTextureParameter(_vectorParticleParam);
     317
     318        //cgSetParameter1f(_mvTanHalfFOVParam, -tan(_fov * 0.5) * _screenHeight * 0.5);
     319
     320        cgGLSetStateMatrixParameter(_mvpParticleParam,
     321                                    CG_GL_MODELVIEW_PROJECTION_MATRIX,
     322                                    CG_GL_MATRIX_IDENTITY);
     323        cgGLSetStateMatrixParameter(_mvParticleParam,
     324                                    CG_GL_MODELVIEW_MATRIX,
     325                                    CG_GL_MATRIX_IDENTITY);
     326
     327        glEnableClientState(GL_VERTEX_ARRAY);
     328        glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID);
     329        glVertexPointer(3, GL_FLOAT, 0, 0);
     330        //glEnableClientState(GL_COLOR_ARRAY);
     331
     332        // TBD..
     333        glDrawArrays(GL_POINTS, 0, _pointCount);
     334        glPointSize(1);
     335
     336        glDisableClientState(GL_VERTEX_ARRAY);
     337
     338        cgGLDisableProfile(CG_PROFILE_VP40);
     339        cgGLDisableProfile(CG_PROFILE_FP40);
     340
     341        glDepthMask(GL_TRUE);
     342
     343        glDisable(GL_POINT_SPRITE_NV);
     344        glDisable(GL_VERTEX_PROGRAM_POINT_SIZE_NV);
     345
     346        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     347        glDisable(GL_BLEND);
     348        _arrowsTex->deactivate();
    340349    }
    341350    glPopMatrix();
     
    344353void
    345354VelocityArrowsSlice::vectorField(unsigned int vfGraphicsID,
    346                                 float xScale, float yScale, float zScale)
     355                                float xScale, float yScale, float zScale)
    347356{
    348357    _vectorFieldGraphicsID = vfGraphicsID;
     
    360369            // vfXscale
    361370            _tickCountX = _tickCountForMinSizeAxis;
    362                        
     371
    363372            float step = _vfXscale / (_tickCountX + 1);
    364                        
     373
    365374            _tickCountY = (int)(_vfYscale/step);
    366375            _tickCountZ = (int)(_vfZscale/step);
     
    394403            // vfZscale
    395404            _tickCountZ = _tickCountForMinSizeAxis;
    396                        
     405
    397406            float step = _vfZscale / (_tickCountZ + 1);
    398407            _tickCountX = (int)(_vfXscale/step);
     
    448457    } else {
    449458        glBindBufferARB(GL_ARRAY_BUFFER_ARB, _vertexBufferGraphicsID);
    450         Vector3* pinfo = (Vector3*) glMapBufferARB(GL_ARRAY_BUFFER, GL_WRITE_ONLY_ARB);
     459        Vector3 *pinfo = (Vector3 *)glMapBufferARB(GL_ARRAY_BUFFER, GL_WRITE_ONLY_ARB);
    451460
    452461        Vector3 pos;
  • trunk/packages/vizservers/nanovis/VelocityArrowsSlice.h

    r2835 r2857  
    9090    float _slicePos;
    9191    int _axis;
    92        
    93     unsigned int _fbo; 
     92
     93    unsigned int _fbo;
    9494    unsigned int _tex;
    95        
     95
    9696    CGcontext _context;
    9797    CGprogram _queryVelocityFP;
     
    108108    int _tickCountY;
    109109    int _tickCountZ;
    110        
     110
    111111    int _pointCount;
    112112
     
    114114    Vector3 _arrowColor;
    115115
    116     bool _enabled;     
     116    bool _enabled;
    117117    bool _dirty;
    118118    bool _dirtySamplingPosition;
     
    126126    CGparameter _mvTanHalfFOVParam;
    127127    CGparameter _mvCurrentTimeParam;
    128        
     128
    129129    CGprogram _particleFP;
    130130    CGparameter _vectorParticleParam;
  • trunk/packages/vizservers/nanovis/Volume.cpp

    r2844 r2857  
    6969    }
    7070
    71     id = _tex->id;
     71    id = _tex->id();
    7272
    7373    wAxis.SetRange(v0, v1);
    7474
    7575    // VOLUME
    76     aspect_ratio_width  = s * _tex->aspect_ratio_width;
    77     aspect_ratio_height = s * _tex->aspect_ratio_height;
    78     aspect_ratio_depth =  s * _tex->aspect_ratio_depth;
     76    aspect_ratio_width  = s * _tex->aspectRatioWidth();
     77    aspect_ratio_height = s * _tex->aspectRatioHeight();
     78    aspect_ratio_depth =  s * _tex->aspectRatioDepth();
    7979
    8080    //Add cut planes. We create 3 default cut planes facing x, y, z directions.
  • trunk/packages/vizservers/nanovis/Volume.h

    r2844 r2857  
    363363{
    364364    size = s;
    365     aspect_ratio_width  = s * _tex->aspect_ratio_width;
    366     aspect_ratio_height = s * _tex->aspect_ratio_height;
    367     aspect_ratio_depth  = s * _tex->aspect_ratio_depth;
     365    aspect_ratio_width  = s * _tex->aspectRatioWidth();
     366    aspect_ratio_height = s * _tex->aspectRatioHeight();
     367    aspect_ratio_depth  = s * _tex->aspectRatioDepth();
    368368}
    369369
  • trunk/packages/vizservers/nanovis/imgLoaders/Image.cpp

    r2831 r2857  
    3636    free(_dataBuffer);
    3737}   
    38 
  • trunk/packages/vizservers/nanovis/imgLoaders/ImageLoaderImpl.h

    r2831 r2857  
    88{
    99public:
    10     friend class ImageLoader;
    11 
    1210    ImageLoaderImpl();
    1311
    1412    virtual ~ImageLoaderImpl();
    1513
     14    virtual Image *load(const char *fileName) = 0;
     15
     16    friend class ImageLoader;
     17
    1618protected:
    1719    Image::ImageFormat _targetImageFormat;
    18 
    19 public:
    20     virtual Image *load(const char *fileName) = 0;
    2120};
    2221
  • trunk/packages/vizservers/nanovis/nvconf.h.in

    r2724 r2857  
    9797#undef HAVE_LIBAVUTIL_AVUTIL_H
    9898
    99 /* Define to 1 if you have the `highgui' library (-lhighgui). */
    100 #undef HAVE_LIBHIGHGUI
    101 
    10299/* Define to 1 if you have the `swscale' library (-lswscale). */
    103100#undef HAVE_LIBSWSCALE
     
    111108/* Define to 1 if you have the <netinet/in.h> header file. */
    112109#undef HAVE_NETINET_IN_H
    113 
    114 /* Define to 1 if you have the <opencv/cv.h> header file. */
    115 #undef HAVE_OPENCV_CV_H
    116 
    117 /* Define to 1 if you have the <opencv/highgui.h> header file. */
    118 #undef HAVE_OPENCV_HIGHGUI_H
    119110
    120111/* Define to 1 if you have the <Python.h> header file. */
     
    175166#undef PACKAGE_TARNAME
    176167
    177 /* Define to the home page for this package. */
    178 #undef PACKAGE_URL
    179 
    180168/* Define to the version of this package. */
    181169#undef PACKAGE_VERSION
  • trunk/packages/vizservers/nanovis/shaders/pointsvp.cg

    r2852 r2857  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
     2
    23void main(in float4 posin : POSITION,
    34          in float4 colin : COLOR0,
  • trunk/packages/vizservers/nanovis/shaders/queryvelocity.cg

    r2852 r2857  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    2 float4 main (float3 pos : TEXCOORD0,
    3              uniform sampler3D vfield
    4              ) : COLOR
     2
     3float4 main(float3 pos : TEXCOORD0,
     4            uniform sampler3D vfield) : COLOR
    55{
    66    float3 velocity = tex3D(vfield, pos).yzw * 2 - float3(1, 1, 1);
  • trunk/packages/vizservers/nanovis/shaders/velocityslicefp.cg

    r2852 r2857  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
     2
    23#include "particle_common.cg"
    34
  • trunk/packages/vizservers/nanovis/shaders/velocityslicevp.cg

    r2852 r2857  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
     2
    23#include "particle_common.cg"
     4
    35void vpmain(in float4 posin : POSITION,
    46            in float4 colin : COLOR0,
  • trunk/packages/vizservers/nanovis/vrutil/include/vrutil/vrFilePath.h

    r2841 r2857  
    33#define VRFILEPATH_H
    44
    5 #include <vrutil/vrUtil.h>
    65#include <string>
    76#include <list>
     7
     8#include <vrutil/vrUtil.h>
    89
    910class vrFilePath
  • trunk/packages/vizservers/nanovis/vrutil/vrFilePath.cpp

    r2841 r2857  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    2 #include <vrutil/vrFilePath.h>
    3 
    4 #ifdef _WIN32
    5 #pragma warning (disable : 4996)
    6 #endif
    7 
    82#include <string.h>
    93#include <stdio.h>
    104#include <stdlib.h>
    11 
    125#ifdef _WIN32
    136#include <direct.h>
    147#endif
     8
     9#include <vrutil/vrFilePath.h>
     10
     11#include "Trace.h"
    1512
    1613std::string vrFilePath::_curDirectory;
     
    1815
    1916static char seps[]  = ";";
     17
    2018vrFilePath::vrFilePath()
    2119{
     
    2321#ifdef _WIN32
    2422    if (_getcwd(buff, 255) == 0) {
    25         printf("failed to get the current directory in vrFilePath::vrFilePath\n");
     23        ERROR("failed to get the current working directory\n");
    2624    }
    2725#else
    2826    if (getcwd(buff, 255) == 0) {
    29         printf("failed to get the current directory in vrFilePath::vrFilePath\n");
     27        ERROR("failed to get the current working directory\n");
    3028    }
    3129#endif
     
    113111#ifdef _WIN32
    114112        if (_chdir(iter->c_str()) == -1) {
    115             printf("error : change dir (%s)", iter->c_str());
     113            ERROR("error: change dir (%s)", iter->c_str());
    116114        }
    117115#else
    118116        if (chdir(iter->c_str()) == -1) {
    119             printf("error : change dir (%s)", iter->c_str());
     117            ERROR("error: change dir (%s)", iter->c_str());
    120118        }
    121119#endif
     
    125123            path = (*iter) + fileName;
    126124
    127             printf("returned [%s]\n", path.c_str());
     125            ERROR("error: returned [%s]\n", path.c_str());
    128126            break;
    129127        }
     
    132130#ifdef _WIN32
    133131    if (_chdir(_curDirectory.c_str()) != -1) {
    134         printf("error : change dir (%s)", _curDirectory.c_str());
     132        ERROR("error: change dir (%s)", _curDirectory.c_str());
    135133    }
    136134#else
    137135    if (chdir(_curDirectory.c_str()) != -1) {
    138         printf("error : change dir (%s)", _curDirectory.c_str());
     136        ERROR("error: change dir (%s)", _curDirectory.c_str());
    139137    }
    140138#endif
Note: See TracChangeset for help on using the changeset viewer.