summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-04-16 13:58:54 +1000
committerDave Airlie <airlied@redhat.com>2010-04-16 13:58:54 +1000
commita69e749d0562887af6bd236c38802472e54640c4 (patch)
tree2b2ddc0be5e2c10bc64d96ceff997caf06c5a705 /configure.ac
parent22a46dddd375b2b9399e12fdf168fa5292ff17a4 (diff)
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 <airlied@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
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