summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-09-01 12:09:24 -0700
committerSimon Ser <contact@emersion.fr>2023-10-20 05:21:01 +0000
commita6a2ccb4486306c3caa5ccd337d972b61b97f75a (patch)
tree49ad52352a8ac3e252da99414063fddf4bf93fcb
parent8d8357dc6482c771d2f9501257c29abe8b06ba9c (diff)
downloadlibdrm-a6a2ccb4486306c3caa5ccd337d972b61b97f75a.tar.gz
libdrm-a6a2ccb4486306c3caa5ccd337d972b61b97f75a.tar.bz2
libdrm-a6a2ccb4486306c3caa5ccd337d972b61b97f75a.zip
meson: fix intel requirements
Intel requires libpciaccess and an x86/x86_64 host, so if those aren't found and it's enabled we need to error Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Reviewed-by: Simon Ser <contact@emersion.fr>
-rw-r--r--meson.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 05f05fd9..ba62da6e 100644
--- a/meson.build
+++ b/meson.build
@@ -87,8 +87,12 @@ dep_pciaccess = dependency('pciaccess', version : '>= 0.10', required : get_opti
with_intel = false
_intel = get_option('intel')
if not _intel.disabled()
- if _intel.enabled() and not with_atomics
- error('libdrm_intel requires atomics.')
+ if _intel.enabled()
+ if not with_atomics
+ error('libdrm_intel requires atomics.')
+ elif not dep_pciaccess.found()
+ error('libdrm_intel requires libpciaccess')
+ endif
else
with_intel = (_intel.enabled() or host_machine.cpu_family().startswith('x86')) and with_atomics and dep_pciaccess.found()
endif