From: Paul Eggert Date: Wed, 4 Sep 2019 18:07:14 +0000 (-0700) Subject: Port to platforms with Xrender lib but not header X-Git-Tag: emacs-27.0.90~1553^2~35 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5d6772dfb29a73a8da4c21576b4d23da5da2565;p=emacs.git Port to platforms with Xrender lib but not header * configure.ac (HAVE_XRENDER): Also require ‘#include ’ to work. Problem found on gcc119 in GCC compile farm. --- 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)