aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2017-10-16 22:28:00 +0300
committerJan Ekström <jeebjp@gmail.com>2017-10-18 17:37:28 +0300
commit247281e8051102e09f46f5434a2ce1c8e54781f2 (patch)
tree9cbee836d15ccfca68a4f10dd540141430ba5a9b /configure
parent60aa56fdf0b112874a2c5bf9987c7937c3b2e72a (diff)
downloadffmpeg-247281e8051102e09f46f5434a2ce1c8e54781f2.tar.gz
configure: add pkg-config check for alsa
Helps with use cases such as static linking, as the .pc file does actually contain the necessary Libs.private entries for all required dependencies.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 8f4b339b5e..e4c4567138 100755
--- 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