summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2018-02-22 20:42:42 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-02-27 23:02:26 -0800
commitb18fc1ca50570b0674095ee87711e19ee95ae8df (patch)
treec563a98d84799e03289fb7f95ac095a177acd10c /configure.ac
parentf6991fdd218ab15ed4a6d9501181f55053499a05 (diff)
build: make drm optional
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index de7ee3e..578e420 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,12 @@ AM_PROG_AR
AC_PROG_RANLIB
AM_SILENT_RULES([yes])
-PKG_CHECK_MODULES(DRM, libdrm)
+PKG_CHECK_MODULES(DRM, libdrm,
+ AM_CONDITIONAL(ENABLE_DRM, true)
+ AC_DEFINE(HAVE_DRM, [1], [Define to 1 with drm present]),
+ AM_CONDITIONAL(ENABLE_DRM, false)
+)
+
LIBS="$DRM_LIBS $LIBS"
CFLAGS="$DRM_CFLAGS $CFLAGS"
© All Rights Reserved