From: Glenn Morris Date: Sat, 4 Oct 2014 07:22:51 +0000 (-0700) Subject: * configure.ac: Silence warning with some old Xrandr.h. X-Git-Tag: emacs-25.0.90~2635^2~679^2~137 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d311e8d04bb8f9e41a89a07c194e7931c0426ee4;p=emacs.git * configure.ac: Silence warning with some old Xrandr.h. Fixes: debbugs:18465 --- diff --git a/ChangeLog b/ChangeLog index 218e61a2427..3b751b721ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-10-04 Glenn Morris + + * configure.ac: Silence warning with some old Xrandr.h. (Bug#18465) + 2014-10-03 Paul Eggert * configure.ac: Port to strict POSIX shells on non-MinGW (Bug#18612). diff --git a/configure.ac b/configure.ac index b706b814787..dcfbaca706e 100644 --- a/configure.ac +++ b/configure.ac @@ -3377,8 +3377,12 @@ if test "${HAVE_X11}" = "yes"; then EMACS_CHECK_MODULES([XRANDR], [$XRANDR_MODULES]) if test $HAVE_XRANDR = no; then # Test old way in case pkg-config doesn't have it (older machines). + # Include Xrender.h by hand to work around bug in older Xrandr.h + # (e.g. RHEL5) and silence (harmless) configure warning (bug#18465). AC_CHECK_HEADER(X11/extensions/Xrandr.h, - [AC_CHECK_LIB(Xrandr, XRRGetScreenResources, HAVE_XRANDR=yes)]) + [AC_CHECK_LIB(Xrandr, XRRGetScreenResources, HAVE_XRANDR=yes)], + [], [AC_INCLUDES_DEFAULT +#include ]) if test $HAVE_XRANDR = yes; then XRANDR_LIBS=-lXrandr fi