Must pass an action-if-not-found argument to
PKG_CHECK_MODULES or it will error out when
it can't find the module requested. Also fix
AC_CHECK_LIB usage, extra libs argument was
in the wrong place.
translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
AG_GST_CHECK_FEATURE(X, [X libraries and plugins],
[ximagesrc], [
translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
AG_GST_CHECK_FEATURE(X, [X libraries and plugins],
[ximagesrc], [
- PKG_CHECK_MODULES(X, x11, [
+ PKG_CHECK_MODULES([X], [x11], [
- PKG_CHECK_MODULES(XFIXES, xfixes, [
+ PKG_CHECK_MODULES([XFIXES], [ xfixes ], [
AC_DEFINE(HAVE_XFIXES, 1, [Defined if Xfixes is available])
AC_DEFINE(HAVE_XFIXES, 1, [Defined if Xfixes is available])
+ ], [ HAVE_XFIXES="no" ])
- PKG_CHECK_MODULES(XDAMAGE, xdamage, [
+ PKG_CHECK_MODULES([XDAMAGE], [ xdamage ], [
AC_DEFINE(HAVE_XDAMAGE, 1, [Defined if Xdamage is available])
AC_DEFINE(HAVE_XDAMAGE, 1, [Defined if Xdamage is available])
+ ], [ HAVE_XDAMAGE="no" ])
- PKG_CHECK_MODULES(XEXT, xext, [
- AC_CHECK_LIB(Xext, XShmAttach, [
+ PKG_CHECK_MODULES([XEXT], [ xext ], [
+ AC_CHECK_LIB([Xext], [ XShmAttach ], [
AC_DEFINE(HAVE_XSHM, 1, [Defined if XShm is available])
XSHM_LIBS="$XEXT_LIBS"
XSHM_CFLAGS="$XEXT_CFLAGS"
AC_DEFINE(HAVE_XSHM, 1, [Defined if XShm is available])
XSHM_LIBS="$XEXT_LIBS"
XSHM_CFLAGS="$XEXT_CFLAGS"
+ ], [ HAVE_XEXT="no" ] , [ $X_LIBS ])
])
AC_SUBST(XSHM_LIBS)
AC_SUBST(XSHM_CFLAGS)
])
AC_SUBST(XSHM_LIBS)
AC_SUBST(XSHM_CFLAGS)
])
dnl *** ext plug-ins ***
])
dnl *** ext plug-ins ***