diff --git a/configure b/configure index 12afe40af10..fad82778a0b 100755 --- a/configure +++ b/configure @@ -7311,7 +7311,7 @@ if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" +LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -7365,7 +7365,7 @@ cat >>confdefs.h <<\_ACEOF #define HAVE_LIBXRANDR 1 _ACEOF - X_PRE_LIBS="$X_PRE_LIBS -lXrandr" + X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender" fi diff --git a/configure.ac b/configure.ac index 15c84fd36e7..289b3f7509c 100644 --- a/configure.ac +++ b/configure.ac @@ -257,9 +257,9 @@ then then AC_CHECK_LIB(Xrandr, XRRSetScreenConfigAndRate, [ AC_DEFINE(HAVE_LIBXRANDR, 1, [Define if you have the Xrandr library]) - X_PRE_LIBS="$X_PRE_LIBS -lXrandr" + X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender" ],, - $X_LIBS -lXext -lX11 $X_EXTRA_LIBS) + $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS) fi dnl *** Check for XVideo extension supporting XvImages