[PATCH 1/4] drm: Add config for detecting libdrm
Patrik Jakobsson
pjakobsson at suse.de
Tue Mar 12 07:49:16 UTC 2019
Use pkg-config to try to find libdrm headers. If that fails look for
the kernel headers. If no headers are found, drm support will not be
compiled.
* configure.ac: Use pkg-config to find libdrm
Signed-off-by: Patrik Jakobsson <pjakobsson at suse.de>
---
configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 9bf64c33..fefd3104 100644
--- a/configure.ac
+++ b/configure.ac
@@ -887,6 +887,11 @@ AC_CHECK_TOOL([READELF], [readelf])
st_STACKTRACE
+PKG_CHECK_MODULES([LIBDRM], [libdrm],
+ [CPPFLAGS="$CPPFLAGS $LIBDRM_CFLAGS"
+ AC_CHECK_HEADERS([drm.h i915_drm.h])],
+ [AC_CHECK_HEADERS([drm/drm.h drm/i915_drm.h])])
+
if test "$arch" = mips && test "$no_create" != yes; then
mkdir -p linux/mips
if $srcdir/linux/mips/genstub.sh linux/mips; then
--
2.21.0
More information about the Strace-devel
mailing list