]> git.sesse.net Git - vlc/commitdiff
Option to link ffmpeg plugin with libdca when using a static ffmpeg
authorRafaël Carré <funman@videolan.org>
Sun, 25 May 2008 14:02:10 +0000 (16:02 +0200)
committerRafaël Carré <funman@videolan.org>
Sun, 25 May 2008 14:02:19 +0000 (16:02 +0200)
configure.ac

index 5ac937f60b596a90a3aee71e879c95489b8f0465..053075c821dece138ba5640201ba527adb8f8ed7 100644 (file)
@@ -3064,6 +3064,15 @@ dnl Those options have to be here because the .pc can be bogus for ffmpeg previo
              LDFLAGS="${LDFLAGS_save}"
      fi])
 
+ AC_ARG_WITH(ffmpeg-dca,
+   [    --with-ffmpeg-dca     specify if ffmpeg has been compiled with dca support],
+   [
+     if test "$with_ffmpeg_dca" = "yes"; then
+             LDFLAGS="${LDFLAGS_save} ${LDFLAGS_ffmpeg} ${LIBS_ffmpeg}"
+             AC_CHECK_LIB(dca, dca_free, [ VLC_ADD_LIBS([ffmpeg],[-ldca]) ])
+             LDFLAGS="${LDFLAGS_save}"
+     fi])
+
  AC_ARG_WITH(ffmpeg-vorbis,
    [    --with-ffmpeg-vorbis    specify if ffmpeg has been compiled with vorbis support],
    [