summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-08-18 11:34:49 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2010-08-18 12:07:01 +0200
commitf51ca2cb756dcd541a27f0326496f0aadab3f214 (patch)
treedc47151addc3c189162b04b6eeb8f74023f7da26 /configure.ac
parent2e6eca3e7bb19ea69db2cc367c9704c7d657db79 (diff)
Make the driver build and run without libdrm.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f88d376..52335e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,7 +65,10 @@ XORG_DRIVER_CHECK_EXT(XV, videoproto)
# Obtain compiler/linker options for the driver dependencies
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES])
-PKG_CHECK_MODULES(DRM, [libdrm])
+PKG_CHECK_MODULES(LIBDRM,
+ [libdrm],
+ [AC_DEFINE([HAVE_LIBDRM], 1, [Has libdrm])],
+ [echo "Will not try support for 3D or kernel modesetting."])
PKG_CHECK_EXISTS([xorg-server >= 1.1.0],
[AC_DEFINE([HAVE_XORG_SERVER_1_1_0], 1,