aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2012-07-17 21:16:32 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2012-08-08 19:14:51 -0400
commitbc770195566e30227abb0bf8e537c022bf0193d0 (patch)
tree05c78db053e0b504a0aada7acf485908acbc5b2b /configure.in
parent73143298ba2c42dda89849ea070ba3dc65e709b9 (diff)
[droid] add additional player selection support
Diffstat (limited to 'configure.in')
-rw-r--r--[-rwxr-xr-x]configure.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f669c60870..17ba34b4e5 100755..100644
--- a/configure.in
+++ b/configure.in
@@ -15,6 +15,21 @@ tolower(){
echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
}
+# check for enabling additional players
+AC_DEFUN([XB_ADD_PLAYER],
+[
+ AC_MSG_CHECKING([for $2])
+ case $add_players in
+ *$2*)
+ AC_SUBST([USE_$1], 1)
+ AC_DEFINE([HAS_$1], 1, [using $2])
+ AC_MSG_RESULT([enabling $2])
+ ;;
+ *)
+ AC_MSG_RESULT([$2 is not enabled])
+ esac
+])
+
# check for library basenames
AC_DEFUN([XB_FIND_SONAME],
[
@@ -458,6 +473,12 @@ AC_ARG_ENABLE([libcap],
[use_libcap=$enableval],
[use_libcap=auto])
+AC_ARG_ENABLE([player],
+ [AS_HELP_STRING([--enable-player],
+ [enable additional players from a list of comma separated names, (default is none)])],
+ [add_players=$enableval],
+ [add_players=no])
+
### External libraries options
AC_ARG_ENABLE([external-libraries],
[AS_HELP_STRING([--enable-external-libraries],
@@ -2046,6 +2067,12 @@ else
final_message="$final_message\n libcap support:\tNo"
fi
+if test "x$add_players" != "xno"; then
+ final_message="$final_message\n additional players:\tYes"
+else
+ final_message="$final_message\n additional players:\tNo"
+fi
+
### External libraries messages
if test "$use_external_ffmpeg" = "yes"; then