1 AC_DEFUN(RFX_CHECK_AVI2SWF,
3 AC_MSG_CHECKING([whether we can compile the avifile test program])
5 cat > conftest.cpp << EOF
6 #include <avifile/version.h>
7 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
12 #include <StreamInfo.h>
27 IAviReadStream* astream;
28 IAviReadStream* vstream;
29 player = CreateIAviReadFile(0);
30 astream = player->GetStream(0, AviStream::Audio);
31 vstream = player->GetStream(0, AviStream::Video);
32 vstream -> StartStreaming();
33 astream -> StartStreaming();
36 player->GetFileHeader(&head);
37 head.dwMicroSecPerFrame;
42 head.dwMicroSecPerFrame;
44 astream->GetEndTime());
45 player->StreamCount();
49 audioinfo = astream->GetStreamInfo();
50 videoinfo = vstream->GetStreamInfo();
51 videoinfo->GetVideoWidth();
52 videoinfo->GetVideoHeight();
53 audioinfo->GetAudioSamplesPerSec();
56 CImage*img = vstream->GetFrame();
63 astream->GetAudioFormatInfo(&wave,0);
65 astream->ReadFrames(0,0,0,a,b);
67 int main (int argc, char*argv[])
73 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.cpp -o conftest${ac_exeext}'
74 ##if {(eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
75 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
79 AC_DEFINE_UNQUOTED(AVIFILE, true)
81 echo "configure: failed program was:" >&5
82 cat conftest.$ac_ext >&5