Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7695 in orxonox.OLD for branches/script_engine/configure.ac


Ignore:
Timestamp:
May 18, 2006, 4:02:46 PM (18 years ago)
Author:
bensch
Message:

ffmpeg-stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/configure.ac

    r7648 r7695  
    514514#--------#
    515515# checking for FFmpeg-headers
    516   AC_CHECK_HEADERS([avformat.h] ,,
    517       [AC_CHECK_HEADERS([ffmpeg/avformat.h] ,,AC_MSG_ERROR([cannot find FFmpeg header.])]))
    518 # checking for ffmpeg-lib
    519   AC_CHECK_LIB([avformat], [main], [FOUND_avformat=yes; LIBS="$LIBS -lavformat"])
    520      if test x$FOUND_avformat != xyes ; then
    521         echo "------------------"
    522         echo "avformat library not found."
    523         echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
    524         echo "------------------"
    525         exit -1
    526      fi
    527   AC_CHECK_HEADERS([avcodec.h] ,,
    528       [AC_CHECK_HEADERS([ffmpeg/avcodec.h] ,,AC_MSG_ERROR([cannot find FFmpeg header.])]))
    529   AC_CHECK_LIB([avcodec], [main], [FOUND_avcodec=yes; LIBS="$LIBS -lavcodec"])
    530      if test x$FOUND_avcodec != xyes ; then
    531         echo "------------------"
    532         echo "avcodec library not found."
    533         echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
    534         echo "------------------"
    535         exit -1
    536      fi
     516  AX_CHECK_REQUIRED_HEADER_LIB([avformat.h ffmpeg/avformat.h] ,[avformat], [main],,, [http://ffmpeg.sourceforge.net])
     517  AX_CHECK_REQUIRED_HEADER_LIB([avcodec.h ffmpeg/avcodec.h], [avcodec], [main],,, [http://ffmpeg.sourceforge.net])
     518
    537519  AC_CHECK_LIB([avutil], [main], [FOUND_avutil=yes; LIBS="$LIBS -lavutil"])
    538520  AC_CHECK_LIB([xvid], [main], [FOUND_xvid=yes; LIBS="$LIBS -lxvid"])
Note: See TracChangeset for help on using the changeset viewer.