[vlc-devel] [PATCH] jack: check for jack >= 0.120.1 or jack >= 1.9.7
Tristan Matthews
le.businessman at gmail.com
Tue Apr 30 01:07:54 CEST 2013
These are the versions of JACK and JACK2 which introduced the
latency API.
---
configure.ac | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 9d3fb68..a73f07e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3569,7 +3569,22 @@ fi
dnl
dnl JACK modules
dnl
-PKG_ENABLE_MODULES_VLC([JACK], [jack access_jack], [jack], [JACK audio I/O modules],[auto])
+PKG_CHECK_MODULES(JACK, jack >= 0.120.1 jack < 1.0,
+ [ have_jack=yes ],
+ [
+ AC_MSG_WARN([${JACK_PKG_ERRORS}, trying jack2 instead])
+
+ PKG_CHECK_MODULES(JACK, jack >= 1.9.7,
+ [ have_jack=yes ],
+ [
+ AC_MSG_WARN([${JACK_PKG_ERRORS}])
+ ])
+])
+if test "x${have_jack}" = "xyes" ; then
+ VLC_ADD_PLUGIN([jack access_jack])
+ VLC_ADD_LIBS([jack access_jack],[$JACK_LIBS])
+ VLC_ADD_CFLAGS([jack access_jack],[$JACK_CFLAGS])
+fi
dnl
dnl OpenSLES Android
--
1.8.1.2
More information about the vlc-devel
mailing list