build-sys: Fix use-case.h detection under alsa-lib 1.2
use-case.h
can no longer be included on its own so detection fails. Including asoundlib.h
first fixes this.
ALSA usage otherwise fails at runtime and this warning is seen at configure time.
checking for alsa >= 1.0.19 ... yes
checking alsa/use-case.h usability... no
checking alsa/use-case.h presence... yes
configure: WARNING: alsa/use-case.h: present but cannot be compiled
configure: WARNING: alsa/use-case.h: check for missing prerequisite headers?
configure: WARNING: alsa/use-case.h: see the Autoconf documentation
configure: WARNING: alsa/use-case.h: section "Present But Cannot Be Compiled"
configure: WARNING: alsa/use-case.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------ ##
configure: WARNING: ## Report this to pulseaudio-discuss (at) lists (dot) freedesktop (dot) org ##
configure: WARNING: ## ------------------------------------------------------------------------ ##
checking for alsa/use-case.h... no
You may consider this to be an upstream ALSA problem so I'll leave you to decide whether to merge this or take some other action.
Edited by James Le Cuirot