diff --git a/configure.ac b/configure.ac index 6cc9f26e..39c05318 100644 --- a/configure.ac +++ b/configure.ac @@ -177,8 +177,7 @@ if test x$enable_xwayland = xyes; then fi fi -PKG_CHECK_MODULES(LIBDRM, [libdrm], - [AC_DEFINE(HAVE_LIBDRM, 1, [Define if libdrm is available]) have_libdrm=yes], have_libdrm=no) +PKG_CHECK_MODULES(LIBDRM, [libdrm], have_libdrm=yes, have_libdrm=no) AC_ARG_ENABLE(x11-compositor, [ --enable-x11-compositor],, enable_x11_compositor=yes) diff --git a/libweston/launcher-direct.c b/libweston/launcher-direct.c index 3d8f5f67..a5d3ee53 100644 --- a/libweston/launcher-direct.c +++ b/libweston/launcher-direct.c @@ -47,7 +47,7 @@ #define KDSKBMUTE 0x4B51 #endif -#ifdef HAVE_LIBDRM +#ifdef BUILD_DRM_COMPOSITOR #include diff --git a/libweston/launcher-weston-launch.c b/libweston/launcher-weston-launch.c index a7535ce7..97da18c5 100644 --- a/libweston/launcher-weston-launch.c +++ b/libweston/launcher-weston-launch.c @@ -55,7 +55,7 @@ #define KDSKBMUTE 0x4B51 #endif -#ifdef HAVE_LIBDRM +#ifdef BUILD_DRM_COMPOSITOR #include diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c index eecb911a..aa7e0711 100644 --- a/libweston/weston-launch.c +++ b/libweston/weston-launch.c @@ -73,7 +73,7 @@ #define MAX_ARGV_SIZE 256 -#ifdef HAVE_LIBDRM +#ifdef BUILD_DRM_COMPOSITOR #include