diff mbox

[libdrm,11/23] meson: split libkms=auto logic to make it easier to read

Message ID 20180320174659.1510-12-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom March 20, 2018, 5:46 p.m. UTC
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index c84e8cdde19d56912ac3..748a413862dcbe7252c3 100644
--- a/meson.build
+++ b/meson.build
@@ -183,8 +183,10 @@  endif
 # gnu/kfreebsd), not openbsd and netbsd
 with_libkms = false
 _libkms = get_option('libkms')
-if _libkms != 'false'
-  with_libkms = _libkms == 'true' or ['linux', 'freebsd', 'dragonfly'].contains(host_machine.system())
+if _libkms == 'auto'
+  with_libkms = ['linux', 'freebsd', 'dragonfly'].contains(host_machine.system())
+else
+  with_libkms = _libkms == 'true'
 endif
 
 # Among others FreeBSD does not have a separate dl library.