[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] meson.build: Allow to disable OSS again
From: |
Thomas Huth |
Subject: |
[PATCH] meson.build: Allow to disable OSS again |
Date: |
Fri, 29 Oct 2021 09:13:18 +0200 |
If sys/soundcard.h is available, it is currently not possible to
disable OSS with the --disable-oss or --without-default-features
configure switches. Improve the check in meson.build to fix this.
Fixes: 87430d5b13 ("configure, meson: move audio driver detection to Meson")
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index ed92454cab..0d7917db6a 100644
--- a/meson.build
+++ b/meson.build
@@ -915,7 +915,7 @@ if liblzfse.found() and not cc.links('''
endif
oss = not_found
-if not get_option('oss').auto() or have_system
+if get_option('oss').enabled() or (get_option('oss').auto() and have_system)
if not cc.has_header('sys/soundcard.h')
# not found
elif targetos == 'netbsd'
--
2.27.0
- [PATCH] meson.build: Allow to disable OSS again,
Thomas Huth <=