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 5ac937f..053075c 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],
    [