Changeset 456:bd5be34d0598 in mediastreamer2


Ignore:
Timestamp:
May 4, 2009 1:28:35 PM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

cleanup swscale/ffmpeg detection.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@459 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/mediastreamer2/acinclude.m4

    r437 r456  
    6767                 
    6868                dnl test for ffmpeg presence 
    69                 PKG_CHECK_MODULES(FFMPEG, [libavcodec >= 50.0.0 ],ffmpeg_found=yes , ffmpeg_found=no) 
    70                 dnl workaround for debian... 
    71                 PKG_CHECK_MODULES(FFMPEG, [libavcodec >= 0d.50.0.0 ], ffmpeg_found=yes, ffmpeg_found=no) 
     69                PKG_CHECK_MODULES(FFMPEG, [libavcodec >= 51.0.0 ],ffmpeg_found=yes , ffmpeg_found=no) 
    7270                if test x$ffmpeg_found = xno ; then 
    73                         AC_MSG_ERROR([Could not find ffmpeg headers and library. This is mandatory for video support]) 
     71                        AC_MSG_ERROR([Could not find libavcodec (from ffmpeg) headers and library. This is mandatory for video support]) 
     72                fi 
     73                PKG_CHECK_MODULES(SWSCALE, [libswscale >= 0.7.0 ],swscale_found=yes , swscale_found=no) 
     74                if test x$swscale_found = xno ; then 
     75                        AC_MSG_ERROR([Could not find libswscale (from ffmpeg) headers and library. This is mandatory for video support]) 
    7476                fi 
    7577 
     
    9597                dnl #endif 
    9698                CPPFLAGS_save=$CPPFLAGS 
    97                 CPPFLAGS="$FFMPEG_CFLAGS $CPPFLAGS" 
     99                CPPFLAGS="SWSCALE_CFLAGS $CPPFLAGS" 
    98100                AC_CHECK_HEADERS(libswscale/swscale.h) 
    99101                CPPFLAGS=$CPPFLAGS_save 
    100  
    101                 PKG_CHECK_MODULES(SWSCALE, [libswscale >= 0.5.0 ], [echo "We have libswscale"],  
    102                         [echo "We don't have libswscale, let's hope its symbols are in libavcodec"] ) 
    103102 
    104103                if test "$libsdldir" != "none" ; then 
Note: See TracChangeset for help on using the changeset viewer.