[vlc-devel] Re: [Patch] vlc's configure detecs ffmpeg's swscale only based on swscale.h presence

Jean-Baptiste Kempf jb at videolan.org
Mon Jun 4 23:43:16 CEST 2007


On Sat, Jun 02, 2007, Alexis Ballier wrote :
> Please find enclosed a patch entirely borrowed from ILEoo on #videolan,
> modified a little bit to get it work with and without swscale.

> Index: vlc-trunk/configure.ac
> ===================================================================
> --- vlc-trunk.orig/configure.ac
> +++ vlc-trunk/configure.ac
> @@ -3086,7 +3086,7 @@ 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
>      ],[

Can a auto* guru tell us if that is good/wrong/bad/ugly/other ?


Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list