From a69e749d0562887af6bd236c38802472e54640c4 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 16 Apr 2010 13:58:54 +1000 Subject: kms: add uevent support. When we get a hotplug event from the kernel we should notify the client side to reconfigure displays. based on work by ajax in intel driver. Signed-off-by: Dave Airlie --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b9274d66..cf0a855f 100644 --- a/configure.ac +++ b/configure.ac @@ -152,6 +152,10 @@ if test "$DRI" = yes; then else DRM_MODE=no fi + PKG_CHECK_MODULES(LIBUDEV, [libudev], [LIBUDEV=yes], [LIBUDEV=no]) + if test "x$LIBUDEV" = xyes; then + AC_DEFINE(HAVE_LIBUDEV, 1,[libudev support]) + fi fi fi CFLAGS="$save_CFLAGS" @@ -159,6 +163,7 @@ else DRM_MODE=no fi AM_CONDITIONAL(DRM_MODE, test x$DRM_MODE = xyes) +AM_CONDITIONAL(LIBUDEV, test x$LIBUDEV = xyes) save_CFLAGS="$CFLAGS" CFLAGS="$XORG_CFLAGS" @@ -358,6 +363,8 @@ AC_SUBST([XORG_CFLAGS]) AC_SUBST([DRI_CFLAGS]) AC_SUBST([LIBDRM_RADEON_CFLAGS]) AC_SUBST([LIBDRM_RADEON_LIBS]) +AC_SUBST([LIBUDEV_CFLAGS]) +AC_SUBST([LIBUDEV_LIBS]) AC_SUBST([moduledir]) DRIVER_NAME=ati -- cgit v1.2.3