use pkg-config to check for xcursor

2005-07-17  Sven Herzberg  <herzi@gnome-de.org>

        * configure.in: use pkg-config to check for xcursor
This commit is contained in:
Sven Herzberg 2005-07-17 19:12:30 +00:00 committed by Sven Herzberg
parent 5bf42ad35b
commit c2b7a167f1
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2005-07-17 Sven Herzberg <herzi@gnome-de.org>
* configure.in: use pkg-config to check for xcursor
2005-07-13 Sebastien Bacher <seb128@debian.org>
* configure.in: update to 2.11.7.

View file

@ -151,11 +151,15 @@ dnl Check for XCursor support. If it exists, then we compile the
dnl mouse capplet with support for it turned on
dnl
have_xcursor=no
AC_CHECK_HEADER(X11/Xcursor/Xcursor.h, have_xcursor=yes
AC_DEFINE(HAVE_XCURSOR, 1, Have the Xcursor extension),
:, [#include <X11/Xlib.h>])
PKG_CHECK_MODULES(XCURSOR, [
xcursor
],
have_xcursor=yes
AC_DEFINE(HAVE_XCURSOR, 1, Have the Xcursor extension))
AM_CONDITIONAL(HAVE_XCURSOR, [test $have_xcursor=yes])
CAPPLET_LIBS="$CAPPLET_LIBS $XCURSOR_LIBS"
dnl
dnl Check for gtk+ with multihead support
dnl