diff --git a/configure.ac b/configure.ac index 6295584f3b..3637f6357f 100644 --- a/configure.ac +++ b/configure.ac @@ -371,24 +371,7 @@ AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [ dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) *** translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true) AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [ - AG_GST_CHECK_LIBHEADER(X264, x264, x264_encoder_encode, -lm, x264.h, - AC_MSG_CHECKING([for uptodate x264 API version]) - dnl _stdint not yet generated, so no compiling - AC_TRY_CPP([ - #include - #if X264_BUILD < 55 - #error "x264 build too old" - #endif - ], [ - AC_MSG_RESULT(yes) - X264_LIBS="$LDFLAGS -lx264 -lm" - X264_CFLAGS="$CFLAGS" - AC_SUBST(X264_LIBS) - AC_SUBST(X264_CFLAGS) - ], [ - AC_MSG_RESULT(no) - HAVE_X264=no - ])) + AG_GST_PKG_CHECK_MODULES(X264, x264 >= 0.55.0) ]) else