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

Felipe Contreras felipe.contreras
Sat Nov 21 18:28:53 CET 2009


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
-- 
1.6.5.3




More information about the ffmpeg-devel mailing list