diff -r 14ea939ddd75 configure.ac --- a/configure.ac Fri Mar 15 19:22:26 2013 +0000 +++ b/configure.ac Thu Mar 21 10:54:52 2013 +0100 @@ -212,14 +212,11 @@ AC_SUBST(XINERAMA_CFLAGS) AC_SUBST(XINERAMA_LIBS) -if test "x${ENABLE_XRENDER}" = "xyes" +PKG_CHECK_MODULES(XRENDER, xrender, [XRENDER_FOUND=yes], [XRENDER_FOUND=no]) +if test "x${XRENDER_FOUND}" = xno then - PKG_CHECK_MODULES(XRENDER, xrender, [XRENDER_FOUND=yes], [XRENDER_FOUND=no]) - if test "x${XRENDER_FOUND}" = xno - then - AC_MSG_ERROR([Could not find Xrender extension - \ -Try installing libXrender-devel or configure --disable-xrender.]) - fi + AC_MSG_ERROR([Could not find Xrender extension - \ +Try installing libXrender-devel.]) fi if test "x${ENABLE_SYSTEMTAP}" = xyes; then