Commit bc756e06 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fail if XvMC is requested but absent. Fix link-time dependencies.

parent 41bcd8c6
...@@ -4115,8 +4115,10 @@ AC_ARG_ENABLE(xvmc, ...@@ -4115,8 +4115,10 @@ AC_ARG_ENABLE(xvmc,
AS_IF([test "${enable_xvmc}" != "no"], [ AS_IF([test "${enable_xvmc}" != "no"], [
AC_CHECK_HEADERS(X11/extensions/vldXvMC.h, [ AC_CHECK_HEADERS(X11/extensions/vldXvMC.h, [
VLC_ADD_PLUGIN([xvmc]) VLC_ADD_PLUGIN([xvmc])
VLC_ADD_LIBS([xvmc],[${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext -lXvMCW -lXv -lXinerama]) VLC_ADD_LIBS([xvmc],[${X_LIBS} ${X_PRE_LIBS} -lX11 -lXext -lXvMCW -lXv ${LIBMPEG2_LIBS}])
VLC_ADD_CPPFLAGS([xvmc],[${X_CFLAGS}]) VLC_ADD_CPPFLAGS([xvmc],[${X_CFLAGS} ${LIBMPEG2_CFLAGS}])
], [
AC_MSG_ERROR([XVideo-MotionCompensation extension not found!])
]) ])
]) ])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment