From 072f5cb6a3711fea5362f8024637c63748a0c5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 16 Mar 2007 02:02:50 +0000 Subject: Simplify Jack checks, replace --enable/--disable with --with/--without as it's an external library, list it in the list of available audio outputs if found. CVS patchset: 8671 CVS date: 2007/03/16 02:02:50 --- configure.ac | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/configure.ac b/configure.ac index 056f230aa..878776ab3 100644 --- a/configure.ac +++ b/configure.ac @@ -1565,34 +1565,18 @@ dnl --------------------------------------------- dnl JACK support dnl --------------------------------------------- -AC_ARG_ENABLE([jack], - AC_HELP_STRING([--disable-jack], [Disable optional JACK support]), - [ - case "${enableval}" in - yes) jack=yes ;; - no) jack=no ;; - *) AC_MSG_ERROR([bad value ${enableval} for --disable-jack]) ;; - esac - ], - [jack=auto]) - -if test "x${jack}" != xno ; then - PKG_CHECK_MODULES(JACK, [ jack >= 0.100 ], - HAVE_JACK=1, - [ - HAVE_JACK=0 - if test "x$jack" = xyes ; then - AC_MSG_ERROR([*** JACK support not found]) - fi - ]) -else - HAVE_JACK=0 +AC_ARG_WITH([jack], + AS_HELP_STRING([--without-jack], [Build without Jack support])) + +if test "x$with_jack" != "xno"; then + PKG_CHECK_MODULES([JACK], [jack >= 0.100], [have_jack=yes], [have_jack=no]) + + if test "x$with_jack" = "xyes" && test "x$have_jack" = "xno"; then + AC_MSG_ERROR([Jack support requested, but Jack not found]) + fi fi -AC_SUBST(JACK_CFLAGS) -AC_SUBST(JACK_LIBS) -AC_SUBST(HAVE_JACK) -AM_CONDITIONAL([HAVE_JACK], [test "x$HAVE_JACK" = x1]) +AM_CONDITIONAL([HAVE_JACK], [test "x$have_jack" = "xyes"]) dnl --------------------------------------------- @@ -3103,6 +3087,9 @@ fi if test "x$have_pulseaudio" = "xyes"; then echo " - pulseaudio sound server" fi +if test "x$have_jack" = "xyes"; then + echo " - Jack" +fi echo "---" -- cgit v1.2.3