[FFmpeg-devel] [PATCH] Use pkg-config for x264

Vitor Sessak vitor1001
Sat Nov 21 18:39:56 CET 2009


Felipe Contreras wrote:
> Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
> ---
>  configure |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/configure b/configure
> index 844133b..31e289a 100755
> --- a/configure
> +++ b/configure
> @@ -2377,7 +2377,8 @@ enabled libschroedinger && add_cflags $(pkg-config --cflags schroedinger-1.0) &&
>  enabled libspeex   && require  libspeex speex/speex.h speex_decoder_init -lspeex
>  enabled libtheora  && require  libtheora theora/theora.h theora_info_init -ltheora -logg
>  enabled libvorbis  && require  libvorbis vorbis/vorbisenc.h vorbis_info_init -lvorbisenc -lvorbis -logg
> -enabled libx264    && require  libx264 x264.h x264_encoder_encode -lx264 -lm &&
> +enabled libx264    && add_cflags $(pkg-config --cflags x264) &&
> +                      require  libx264 x264.h x264_encoder_encode $(pkg-config --libs x264) &&
>                        { check_cpp_condition x264.h "X264_BUILD >= 78" ||
>                          die "ERROR: libx264 version must be >= 0.78."; }
>  enabled libxvid    && require  libxvid xvid.h xvid_global -lxvidcore

If I remember well, the build system maintainers prefer to avoid 
pkg-config when possible. Does it fix any bugs?

-Vitor



More information about the ffmpeg-devel mailing list