From d3ff1abbe969c0a2f1bfcbf6a5dfaf7b11aaf08e Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 5 Sep 2013 15:49:12 +0100 Subject: [PATCH] configure.ac: Update the configure script to detect portaudio version (18 or 19). --- configure.ac | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 3e81da50..2d081b33 100644 --- a/configure.ac +++ b/configure.ac @@ -58,7 +58,17 @@ if test "$with_portaudio" = "no"; then else AC_CHECK_HEADERS([portaudio.h], [ - have_portaudio=yes + AC_CHECK_LIB([portaudio], [Pa_IsStreamActive], + [ + have_portaudio=19 + ],[ + AC_CHECK_LIB([portaudio], [Pa_StreamActive], + [ + have_portaudio=18 + ],[ + have_portaudio=no + ]) + ]) ],[ have_portaudio=no ]) @@ -68,7 +78,7 @@ dnl ================================================================ dnl Audio checks. dnl ================================================================ -if test "$have_portaudio" = yes ; then +if test "$have_portaudio" = 18 -o "$have_portaudio" = 19 ; then if test "$have_pulseaudio" = yes ; then PKG_CHECK_MODULES(PULSEAUDIO_SIMPLE, [libpulse-simple >= 0.9], [