mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
Make XRandr detection work better.
2002-10-27 Anders Carlsson <andersca@gnu.org> * configure.in: Make XRandr detection work better.
This commit is contained in:
parent
81089c2d8c
commit
c9c67387ce
@ -1,3 +1,7 @@
|
||||
2002-10-27 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Make XRandr detection work better.
|
||||
|
||||
2002-10-27 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c (meta_window_free): move
|
||||
|
10
configure.in
10
configure.in
@ -168,23 +168,23 @@ CPPFLAGS="$metacity_save_cppflags"
|
||||
SHAPE_LIBS=
|
||||
found_shape=no
|
||||
AC_CHECK_LIB(Xext, XShapeQueryExtension,
|
||||
[AC_CHECK_HEADERS(X11/extensions/shape.h,
|
||||
[AC_CHECK_HEADER(X11/extensions/shape.h,
|
||||
SHAPE_LIBS=-lXext found_shape=yes)],
|
||||
, $ALL_X_LIBS)
|
||||
|
||||
if test "$found_shape" = "no"; then
|
||||
if test "x$found_shape" = "xyes"; then
|
||||
AC_DEFINE(HAVE_SHAPE)
|
||||
fi
|
||||
|
||||
RANDR_LIBS=
|
||||
found_randr=no
|
||||
AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
|
||||
[AC_CHECK_HEADERS(X11/extensions/Xrandr.h,
|
||||
RANDR_LIBS=-lXrandr, found_randr=yes,
|
||||
[AC_CHECK_HEADER(X11/extensions/Xrandr.h,
|
||||
RANDR_LIBS=-lXrandr found_randr=yes,,
|
||||
[#include <X11/Xlib.h>])],
|
||||
, -lXrender $ALL_X_LIBS)
|
||||
|
||||
if test "$found_randr" = "yes"; then
|
||||
if test "x$found_randr" = "xyes"; then
|
||||
AC_DEFINE(HAVE_RANDR)
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user