summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tsoy <alexander@tsoy.me>2019-09-23 18:23:40 +0300
committerMatt Turner <mattst88@gmail.com>2019-10-29 15:01:20 -0700
commitdf1f8f691d7550a18d2076a44c109b1cb6da05ae (patch)
treee0fa57ea4077dd7530d6bebb6454ac3e45120bd6
parentfada61e89dd1f20fe8e2e0fb9e4baefb45b4b848 (diff)
configure: Set libdrm flags correctly if only XORG is enabled
This fixes modesetting driver build failure which can be triggered with the following configure options: $ ./configure --disable-dri --disable-dri2 --disable-dri3 --disable-config-udev --enable-xorg Bugzilla: https://bugs.gentoo.org/689768 Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 334f1107146a2e6ebf6f7743b77aec2ad5c46f75)
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 97a2aa0fc..cb9765a70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1238,7 +1238,7 @@ esac
AM_CONDITIONAL(DRI3, test "x$DRI3" = xyes)
-if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes; then
+if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then
if test "x$DRM" = xyes; then
AC_DEFINE(WITH_LIBDRM, 1, [Building with libdrm support])
PKG_CHECK_MODULES([LIBDRM], $LIBDRM)