[FFmpeg-devel] [PATCH] configure: fix --disable-alsa after 247281e805

Jan Beich jbeich at FreeBSD.org
Sun Sep 23 23:53:37 EEST 2018


1 && 2 || 3 is implicitly grouped as { 1 && 2; } || 3 as both && and ||
have equal precedence and are evaluated with left associativity.

Signed-off-by: Jan Beich <jbeich at FreeBSD.org>
---
 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 1946bcb69c..ea6fa2c6dc 100755
--- a/configure
+++ b/configure
@@ -6331,8 +6331,10 @@ else
 EOF
 fi
 
-enabled alsa && check_pkg_config alsa alsa "alsa/asoundlib.h" snd_pcm_htimestamp ||
+if enabled alsa; then
+    check_pkg_config alsa alsa "alsa/asoundlib.h" snd_pcm_htimestamp ||
     check_lib alsa alsa/asoundlib.h snd_pcm_htimestamp -lasound
+fi
 
 enabled libjack &&
     require_pkg_config libjack jack jack/jack.h jack_port_get_latency_range


More information about the ffmpeg-devel mailing list