mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-03 14:59:52 +00:00
configure.ac: Update the configure script to detect portaudio version (18 or 19).
This commit is contained in:
+12
-2
@@ -58,7 +58,17 @@ if test "$with_portaudio" = "no"; then
|
|||||||
else
|
else
|
||||||
AC_CHECK_HEADERS([portaudio.h],
|
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
|
have_portaudio=no
|
||||||
])
|
])
|
||||||
@@ -68,7 +78,7 @@ dnl ================================================================
|
|||||||
dnl Audio checks.
|
dnl Audio checks.
|
||||||
dnl ================================================================
|
dnl ================================================================
|
||||||
|
|
||||||
if test "$have_portaudio" = yes ; then
|
if test "$have_portaudio" = 18 -o "$have_portaudio" = 19 ; then
|
||||||
if test "$have_pulseaudio" = yes ; then
|
if test "$have_pulseaudio" = yes ; then
|
||||||
PKG_CHECK_MODULES(PULSEAUDIO_SIMPLE, [libpulse-simple >= 0.9],
|
PKG_CHECK_MODULES(PULSEAUDIO_SIMPLE, [libpulse-simple >= 0.9],
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user