]> git.sesse.net Git - vlc/commitdiff
Bail out if ffmpeg/avformat.h and ffmpeg/avutil.h doesn't exist.
authorJean-Paul Saman <jpsaman@videolan.org>
Thu, 18 Oct 2007 22:09:22 +0000 (22:09 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Thu, 18 Oct 2007 22:09:22 +0000 (22:09 +0000)
configure.ac

index e40a25f3c912cf1d7a6b87427436f144e707053e..1992e467ec650d9769e34d2153fb1e06712a35c3 100644 (file)
@@ -3062,8 +3062,8 @@ dnl Trying with pkg-config
      CPPFLAGS="${CPPFLAGS} ${FFMPEG_CFLAGS}"
      CFLAGS="${CFLAGS} ${FFMPEG_CFLAGS}"
      AC_CHECK_HEADERS(ffmpeg/avcodec.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avcodec.h.])] )
-     AC_CHECK_HEADERS(ffmpeg/avformat.h)
-     AC_CHECK_HEADERS(ffmpeg/avutil.h)
+     AC_CHECK_HEADERS(ffmpeg/avformat.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avformat.h.])] )
+     AC_CHECK_HEADERS(ffmpeg/avutil.h, [], [AC_MSG_ERROR([Missing header file ffmpeg/avutil.h.])] )
      dnl newer ffmpeg have a separate libpostproc
      PKG_CHECK_MODULES(POSTPROC, libpostproc,[
        VLC_ADD_CFLAGS([ffmpeg],[${POSTPROC_CFLAGS}])