aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorGeoffrey McRae <gnif@xbmc.org>2012-04-25 16:50:12 +1200
committerJonathan Marshall <jmarshall@never.you.mind>2012-05-10 09:40:36 +1200
commite407d10acf0cee47bbd9d91119a7c82cb5f6915e (patch)
treecd36951be96f1fd38b3db6b3518b6cf5c1c4a776 /configure.in
parentaf922127eb333c8a87eddac7d2a0bdaf3e9f6a0e (diff)
[AE] build system support for HAS/HAVE_ALSA
Diffstat (limited to 'configure.in')
-rwxr-xr-xconfigure.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 394a7188f1..fae7e4d6bb 100755
--- a/configure.in
+++ b/configure.in
@@ -77,6 +77,7 @@ xrandr_not_found="== Could not find libXRandR. SDL will be used for resolution s
xrandr_disabled="== XRandR support disabled. SDL will be used for resolution support. =="
goom_enabled="== GOOM enabled. =="
goom_disabled="== GOOM disabled. =="
+alsa_disabled="== ALSA support disabled. =="
rsxs_enabled="== RSXS enabled. =="
rsxs_disabled="== RSXS disabled. =="
projectm_enabled="== ProjectM enabled. =="
@@ -277,6 +278,12 @@ AC_ARG_ENABLE([ccache],
[use_ccache=$enableval],
[use_ccache=auto])
+AC_ARG_ENABLE([alsa],
+ [AS_HELP_STRING([--disable-alsa],
+ [disable ALSA support (only for linux/freebsd)])],
+ [use_alsa=$enableval],
+ [use_alsa=yes])
+
AC_ARG_ENABLE([pulse],
[AS_HELP_STRING([--enable-pulse],
[enable PulseAudio support (default is auto)])],
@@ -866,6 +873,17 @@ if test "$use_optical_drive" = "yes"; then
AC_DEFINE([HAS_DVD_DRIVE], [1], [Define to 1 to have optical drive support])
fi
+# Alsa
+if test "$use_alsa" = "yes" && test "$host_vendor" != "apple"; then
+ PKG_CHECK_MODULES([ALSA], [alsa],
+ [INCLUDES="$INCLUDES $ALSA_CFLAGS"; LIBS="$LIBS $ALSA_LIBS"],
+ AC_MSG_ERROR($missing_library))
+ AC_DEFINE([HAS_ALSA], [1], [Define to 0 to disable ALSA support])
+else
+ use_alsa="no"
+ AC_MSG_RESULT($alsa_disabled)
+fi
+
# PulseAudio
if test "x$use_pulse" != "xno"; then
if test "$host_vendor" = "apple" ; then
@@ -1706,6 +1724,12 @@ else
final_message="$final_message\n ccache:\tNo"
fi
+if test "$use_alsa" = "yes"; then
+ final_message="$final_message\n ALSA Support:\tYes"
+else
+ final_message="$final_message\n ALSA Support:\tNo"
+fi
+
if test "x$use_pulse" != "xno"; then
XBMC_STANDALONE_SH_PULSE=tools/Linux/xbmc-standalone.sh.pulse
final_message="$final_message\n PulseAudio:\tYes"