Fix pkg-config based libswscale detection tests.
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 26 May 2008 12:13:20 +0000 (14:13 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 26 May 2008 12:13:38 +0000 (14:13 +0200)
configure.ac

index 1e78013..1b52e36 100644 (file)
@@ -3239,7 +3239,7 @@ dnl Trying with pkg-config
        VLC_ADD_CFLAGS([ffmpeg],[${SWSCALE_CFLAGS}])
        VLC_ADD_LIBS([ffmpeg],[${SWSCALE_LIBS}])
        AC_CHECK_LIB(swscale, sws_getContext,
-         [AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])],[],[-lavutil -lm])
+         [AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])],[],[${SWSCALE_LIBS}])
        ],[ true ])
      VLC_RESTORE_FLAGS
     ],[