]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
configure: allow building drm renderer without driver dependent backends
authorRay Strode <rstrode@redhat.com>
Wed, 6 Jun 2012 20:11:47 +0000 (16:11 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 6 Jun 2012 20:21:53 +0000 (16:21 -0400)
Since we support the dumb ioctl now, it's useful to build the drm
renderer without support for the individual drivers.

This commit allows for that.

configure.ac

index d2c60816d11a35467800daa5857d20f4bd80888b..fd2388873a1bf5315bb4a602c89299db0f1a69a7 100644 (file)
@@ -199,17 +199,18 @@ if test x$enable_libkms = xyes; then
   AC_DEFINE(PLY_ENABLE_LIBKMS, 1, [Enable support for libkms abstraction over drm drivers])
 fi
 
-DRM_CFLAGS="$DRM_INTEL_CFLAGS $DRM_RADEON_CFLAGS $DRM_NOUVEAU_CFLAGS $LIBKMS_CFLAG"
-DRM_LIBS="$DRM_INTEL_LIBS $DRM_RADEON_LIBS $DRM_NOUVEAU_LIBS $LIBKMS_LIBS"
+AC_ARG_ENABLE(drm, AS_HELP_STRING([--enable-drm-renderer],[enable building drm kms support]),enable_drm_renderer=$enableval,enable_drm_renderer=yes)
+AM_CONDITIONAL(ENABLE_DRM_RENDERER,  [test "$enable_drm_renderer" = yes])
+
+if test x$enable_drm_renderer = xyes; then
+  PKG_CHECK_MODULES(DRM, [libdrm])
+fi
+
+DRM_CFLAGS="$DRM_CFLAGS $DRM_INTEL_CFLAGS $DRM_RADEON_CFLAGS $DRM_NOUVEAU_CFLAGS $LIBKMS_CFLAG"
+DRM_LIBS="$DRM_LIBS $DRM_INTEL_LIBS $DRM_RADEON_LIBS $DRM_NOUVEAU_LIBS $LIBKMS_LIBS"
 AC_SUBST(DRM_CFLAGS)
 AC_SUBST(DRM_LIBS)
 
-AM_CONDITIONAL(ENABLE_DRM_RENDERER,
-               [test x$enable_libdrm_intel = xyes   \
-                  -o x$enable_libdrm_radeon = xyes  \
-                  -o x$enable_libdrm_nouveau = xyes \
-                  -o x$enable_libkms = xyes])
-
 AC_ARG_ENABLE(tracing, AS_HELP_STRING([--enable-tracing],[enable verbose tracing code]),enable_tracing=$enableval,enable_tracing=yes)
 
 if test x$enable_tracing = xyes; then