More strict detection for swscale. Patch by ILEoo and ALexis Ballier
authorChristophe Mutricy <xtophe@videolan.org>
Thu, 7 Jun 2007 22:57:53 +0000 (22:57 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Thu, 7 Jun 2007 22:57:53 +0000 (22:57 +0000)
configure.ac

index 023833d..8ae3a4f 100644 (file)
@@ -3080,7 +3080,8 @@ dnl Trying with pkg-config
      PKG_CHECK_MODULES(SWSCALE, libswscale,[
        VLC_ADD_CFLAGS([ffmpeg],[${SWSCALE_CFLAGS}]) 
        VLC_ADD_LDFLAGS([ffmpeg],[${SWSCALE_LIBS}]) 
-       AC_CHECK_HEADERS(ffmpeg/swscale.h)
+       AC_CHECK_LIB(swscale, sws_getContext,
+         [AC_CHECK_HEADERS(ffmpeg/swscale.h)],[])
        ],[ true ])
      VLC_RESTORE_FLAGS
     ],[