From 6af116eb09411c44ae193e57a2b8c0a3ba3e1f30 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 6 Mar 2010 19:26:07 +0000 Subject: Add an autoconf flag to allow disabling of the Sun audio sound backend. --- configure.ac | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index b098aaa5f..c84dde126 100644 --- a/configure.ac +++ b/configure.ac @@ -1690,10 +1690,13 @@ AM_CONDITIONAL(HAVE_LIBSMBCLIENT, test "x$have_libsmbclient" = "xyes") dnl --------------------------------------------- dnl SUN style audio interface dnl --------------------------------------------- +AC_ARG_ENABLE([sunaudio], + AS_HELP_STRING([--disable-sunaudio], [Do not build Sun audio output support])) -AC_MSG_CHECKING(for Sun audio support) -have_sunaudio=no -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +if test "x$enable_sunaudio" != "xno"; then + AC_MSG_CHECKING(for Sun audio support) + have_sunaudio=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], [[ @@ -1702,15 +1705,18 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])],[ have_sunaudio=yes ],[]) -AC_MSG_RESULT($have_sunaudio) -AM_CONDITIONAL(HAVE_SUNAUDIO, test "x$have_sunaudio" = "xyes") + AC_MSG_RESULT($have_sunaudio) + AM_CONDITIONAL(HAVE_SUNAUDIO, test "x$have_sunaudio" = "xyes") -if test "x$have_sunaudio" = "xyes"; then - dnl NetBSD and OpenBSD don't have this, but check for it - dnl rather than assuming that it doesn't happen elsewhere. - AC_CHECK_MEMBERS([audio_info_t.output_muted]) + if test "x$have_sunaudio" = "xyes"; then + dnl NetBSD and OpenBSD don't have this, but check for it + dnl rather than assuming that it doesn't happen elsewhere. + AC_CHECK_MEMBERS([audio_info_t.output_muted]) + fi fi +AM_CONDITIONAL(HAVE_SUNAUDIO, test "x$have_sunaudio" = "xyes") + dnl --------------------------------------------- dnl IRIX style audio interface -- cgit v1.2.3