diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
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" |