]> git.sesse.net Git - ffmpeg/commitdiff
configure: add pkg-config check for alsa
authorJan Ekström <jeebjp@gmail.com>
Mon, 16 Oct 2017 19:28:00 +0000 (22:28 +0300)
committerJan Ekström <jeebjp@gmail.com>
Wed, 18 Oct 2017 14:37:28 +0000 (17:37 +0300)
Helps with use cases such as static linking, as the .pc file
does actually contain the necessary Libs.private entries for all
required dependencies.

configure

index 8f4b339b5e1cc997d887b13dc9a3709bcf429caa..e4c4567138eb5bbc0e8409bbf6753c457fc877f0 100755 (executable)
--- a/configure
+++ b/configure
@@ -6268,7 +6268,8 @@ EOF
 fi
 check_header soundcard.h
 
-enabled alsa && check_lib alsa alsa/asoundlib.h snd_pcm_htimestamp -lasound
+enabled alsa && use_pkg_config alsa alsa "alsa/asoundlib.h" snd_pcm_htimestamp ||
+    check_lib alsa alsa/asoundlib.h snd_pcm_htimestamp -lasound
 
 enabled jack && check_lib jack jack/jack.h jack_client_open -ljack &&
     check_func jack_port_get_latency_range -ljack