From d5d6772dfb29a73a8da4c21576b4d23da5da2565 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 4 Sep 2019 11:07:14 -0700 Subject: [PATCH] Port to platforms with Xrender lib but not header MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * configure.ac (HAVE_XRENDER): Also require ‘#include ’ to work. Problem found on gcc119 in GCC compile farm. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e39a4380523..e822b0b7b0f 100644 --- a/configure.ac +++ b/configure.ac @@ -3288,7 +3288,8 @@ fi # Check for XRender HAVE_XRENDER=no if test "${HAVE_X11}" = "yes"; then - AC_CHECK_LIB(Xrender, XRenderQueryExtension, HAVE_XRENDER=yes) + AC_CHECK_HEADER([X11/extensions/Xrender.h], + [AC_CHECK_LIB([Xrender], [XRenderQueryExtension], [HAVE_XRENDER=yes])]) if test $HAVE_XRENDER = yes; then XRENDER_LIBS="-lXrender" AC_SUBST(XRENDER_LIBS) -- 2.39.5