[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] meson.build: Allow to disable OSS again
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH] meson.build: Allow to disable OSS again |
Date: |
Fri, 29 Oct 2021 11:32:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
On 10/29/21 09:13, Thomas Huth wrote:
> 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(-)
> 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)
Shouldn't this be 'if have_system and (enabled or auto)' ?
> if not cc.has_header('sys/soundcard.h')
> # not found
> elif targetos == 'netbsd'
>