diff mbox

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

Message ID k1nc-aqb2-wny@FreeBSD.org
State New
Headers show

Commit Message

Jan Beich Sept. 23, 2018, 8:53 p.m. UTC
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@FreeBSD.org>
---
 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

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