diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/_xine.m4 | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/m4/_xine.m4 b/m4/_xine.m4 index 411347e0f..8257a59f9 100644 --- a/m4/_xine.m4 +++ b/m4/_xine.m4 @@ -95,13 +95,27 @@ AC_DEFUN([AC_CHECK_DXR3], [have_dxr3=no AC_MSG_RESULT([*** DXR3 support disabled due to missing em8300.h ***])]) if test "$have_dxr3" = "yes"; then - have_fame=yes + AC_MSG_RESULT([*** checking for a supported mpeg encoder]) + have_encoder=no + have_libfame=yes AC_CHECK_LIB(fame, fame_open, - [AC_CHECK_HEADER(fame.h, true, have_fame=no)], have_fame=no) - if test "$have_fame" = "yes"; then - AC_MSG_RESULT([found libfame, will compile dxr3enc video out driver]); + [AC_CHECK_HEADER(fame.h, true, have_libfame=no)], have_libfame=no) + if test "$have_libfame" = "yes"; then + AC_DEFINE(HAVE_LIBFAME) + have_encoder=yes + fi + have_librte=yes + AC_CHECK_LIB(rte, rte_init, + [AC_CHECK_HEADER(rte.h, true, have_librte=no)], have_librte=no) + if test "$have_librte" = "yes"; then + AC_DEFINE(HAVE_LIBRTE) + AC_MSG_WARN([this will probably only work with rte version 0.4!]) + have_encoder=yes + fi + if test "$have_encoder" = "yes"; then + AC_MSG_RESULT([*** found one or more mpeg encoders, will compile dxr3enc video out driver]); else - AC_MSG_RESULT([*** dxr3enc support disabled due to missing libfame ***]); + AC_MSG_RESULT([*** no mpeg encoder found, will skip dxr3enc video out driver]); fi fi else |