mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-03-21 06:20:40 +01:00
configure.ac: fix checking for libdrm version after 9232835bd
No matter what libdrm version was installed, it always set
the GLAMOR_HAS_DRM_NAME_FROM_FD_2 conditional to 1.
This obviously leads to compilation problems.
Fixes: 9232835bd1 ("glamor: use drmGetDeviceNameFromFD2 when available")
Signed-off-by: Mariusz Bialonczyk <manio@skyboo.net>
Reviewed-and-Tested-by: Qiang Yu <Qiang.Yu@amd.com>
This commit is contained in:
parent
eb2cf11724
commit
ad6689b7db
1 changed files with 3 additions and 2 deletions
|
|
@ -2167,8 +2167,9 @@ if test "x$GLAMOR" = xyes; then
|
|||
fi
|
||||
fi
|
||||
|
||||
PKG_CHECK_MODULES(LIBDRM, "libdrm >= 2.4.74",
|
||||
[AC_DEFINE(GLAMOR_HAS_DRM_NAME_FROM_FD_2, 1, [Have GLAMOR_HAS_DRM_NAME_FROM_FD_2])], [])
|
||||
PKG_CHECK_EXISTS(libdrm >= 2.4.74,
|
||||
[AC_DEFINE(GLAMOR_HAS_DRM_NAME_FROM_FD_2, 1, [Have GLAMOR_HAS_DRM_NAME_FROM_FD_2])],
|
||||
[])
|
||||
fi
|
||||
AM_CONDITIONAL([GLAMOR_EGL], [test "x$GBM" = xyes])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue