--- /dev/null
+--- libgdiplus-5.6.1/configure.ac~ 2019-03-14 21:08:54.000000000 +0100
++++ libgdiplus-5.6.1/configure.ac 2019-04-03 09:17:17.886210084 +0200
+@@ -413,7 +413,7 @@
+ AM_CONDITIONAL([HAS_X11], [test x$x11_available = xyes])
+
+ # Add xrender here so that we don't fail to find glib if we won't have xrender.pc
+-if test "x$no_x" != "xyes" && "x$x11_available" = "xyes"; then
++if test "x$no_x" != "xyes" && test "x$x11_available" = "xyes"; then
+ GDIPLUS_LIBS="$GDIPLUS_LIBS `$PKG_CONFIG --libs xrender `"
+ GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS `$PKG_CONFIG --cflags xrender `"
+ fi