diff options
| author | Glenn Morris | 2014-10-04 00:22:51 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-10-04 00:22:51 -0700 |
| commit | d311e8d04bb8f9e41a89a07c194e7931c0426ee4 (patch) | |
| tree | a6f352f9ede1cdd7476e7c6628c0ade12f2faaeb | |
| parent | 10501882f7c23525c14f3f4712ce34f7fe335864 (diff) | |
| download | emacs-d311e8d04bb8f9e41a89a07c194e7931c0426ee4.tar.gz emacs-d311e8d04bb8f9e41a89a07c194e7931c0426ee4.zip | |
* configure.ac: Silence warning with some old Xrandr.h.
Fixes: debbugs:18465
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 6 |
2 files changed, 9 insertions, 1 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-10-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac: Silence warning with some old Xrandr.h. (Bug#18465) | ||
| 4 | |||
| 1 | 2014-10-03 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2014-10-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | * configure.ac: Port to strict POSIX shells on non-MinGW (Bug#18612). | 7 | * 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 | |||
| 3377 | EMACS_CHECK_MODULES([XRANDR], [$XRANDR_MODULES]) | 3377 | EMACS_CHECK_MODULES([XRANDR], [$XRANDR_MODULES]) |
| 3378 | if test $HAVE_XRANDR = no; then | 3378 | if test $HAVE_XRANDR = no; then |
| 3379 | # Test old way in case pkg-config doesn't have it (older machines). | 3379 | # Test old way in case pkg-config doesn't have it (older machines). |
| 3380 | # Include Xrender.h by hand to work around bug in older Xrandr.h | ||
| 3381 | # (e.g. RHEL5) and silence (harmless) configure warning (bug#18465). | ||
| 3380 | AC_CHECK_HEADER(X11/extensions/Xrandr.h, | 3382 | AC_CHECK_HEADER(X11/extensions/Xrandr.h, |
| 3381 | [AC_CHECK_LIB(Xrandr, XRRGetScreenResources, HAVE_XRANDR=yes)]) | 3383 | [AC_CHECK_LIB(Xrandr, XRRGetScreenResources, HAVE_XRANDR=yes)], |
| 3384 | [], [AC_INCLUDES_DEFAULT | ||
| 3385 | #include <X11/extensions/Xrender.h>]) | ||
| 3382 | if test $HAVE_XRANDR = yes; then | 3386 | if test $HAVE_XRANDR = yes; then |
| 3383 | XRANDR_LIBS=-lXrandr | 3387 | XRANDR_LIBS=-lXrandr |
| 3384 | fi | 3388 | fi |