aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authortheuni <theuni-nospam-@xbmc.org>2011-08-29 23:48:15 -0400
committertheuni <theuni-nospam-@xbmc.org>2011-08-29 23:48:19 -0400
commit62e026052dbcfe6d7fbcb3a0e47ad135eb943511 (patch)
tree044f645ed9b7330e522c241f14993981a83f308f /configure.in
parentdcfa67edcd4ad55c646be4d02871c370dbccf7fb (diff)
parenteb3b6c1d256929fefefe208c61cd59416e92fe53 (diff)
Merge remote-tracking branch 'theuni/configure-cleanup'
* theuni/configure-cleanup: build: allow build without dbus build: don't check for enca. we haven't needed it for ages. build: configure option for enable/disable x11. build: make rsxs configurable
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in90
1 files changed, 71 insertions, 19 deletions
diff --git a/configure.in b/configure.in
index 437b4251c2..871a432b0d 100644
--- a/configure.in
+++ b/configure.in
@@ -66,6 +66,10 @@ 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. =="
+rsxs_enabled="== RSXS enabled. =="
+rsxs_disabled="== RSXS disabled. =="
+x11_enabled="== X11 enabled. =="
+x11_disabled="== X11 disabled. =="
pulse_not_found="== Could not find libpulse. PulseAudio support disabled. =="
pulse_disabled="== PulseAudio support manually disabled. =="
dvdcss_enabled="== DVDCSS support enabled. =="
@@ -93,6 +97,7 @@ librtmp_disabled="== RTMP support disabled. =="
libnfs_not_found="== Could not find libnfs. NFS support disabled. =="
libnfs_disabled="== NFS support disabled. =="
alsa_not_found="== Could not find ALSA. ALSA support disabled. =="
+dbus_not_found="== Could not find DBUS. DBUS support disabled. =="
# External library message strings
@@ -208,6 +213,18 @@ AC_ARG_ENABLE([goom],
[use_goom=$enableval],
[use_goom=no])
+AC_ARG_ENABLE([rsxs],
+ [AS_HELP_STRING([--enable-rsxs],
+ [enable really slick X screensavers (default is yes)])],
+ [use_rsxs=$enableval],
+ [use_rsxs=yes])
+
+AC_ARG_ENABLE([x11],
+ [AS_HELP_STRING([--enable-x11],
+ [enable x11 (default is yes) 'Linux Only'])],
+ [use_x11=$enableval],
+ [use_x11=yes])
+
AC_ARG_ENABLE([ccache],
[AS_HELP_STRING([--enable-ccache],
[enable building with ccache feature (default is auto)])],
@@ -671,21 +688,10 @@ else
PKG_CHECK_MODULES([ALSA], [alsa],
[INCLUDES="$INCLUDES $ALSA_CFLAGS"; LIBS="$LIBS $ALSA_LIBS"; use_alsa=yes],
AC_MSG_NOTICE($alsa_not_found); use_alsa=no)
- PKG_CHECK_MODULES([ENCA], [enca],
- [INCLUDES="$INCLUDES $ENCA_CFLAGS"; LIBS="$LIBS $ENCA_LIBS"],
- AC_MSG_ERROR($missing_library))
- PKG_CHECK_MODULES([XT], [xt],
- [INCLUDES="$INCLUDES $XT_CFLAGS"; LIBS="$LIBS $XT_LIBS"],
- AC_MSG_ERROR($missing_library))
- PKG_CHECK_MODULES([XEXT], [xext],
- [INCLUDES="$INCLUDES $XEXT_CFLAGS"; LIBS="$LIBS $XEXT_LIBS"],
- AC_MSG_ERROR($missing_library))
- PKG_CHECK_MODULES([XMU], [xmu],
- [INCLUDES="$INCLUDES $XMU_CFLAGS"; LIBS="$LIBS $XMU_LIBS"],
- AC_MSG_ERROR($missing_library))
- PKG_CHECK_MODULES([DBUS], [dbus-1],
- [INCLUDES="$INCLUDES $DBUS_CFLAGS"; LIBS="$LIBS $DBUS_LIBS"],
- AC_MSG_ERROR($missing_library))
+ PKG_CHECK_MODULES([DBUS], [dbus-1],
+ [INCLUDES="$INCLUDES $DBUS_CFLAGS"; LIBS="$LIBS $DBUS_LIBS"; use_dbus=yes]; \
+ AC_DEFINE([HAVE_DBUS],[1],["Define to 1 if dbus is installed"]),
+ AC_MSG_NOTICE($missing_library); use_dbus=no)
PKG_CHECK_MODULES([SDL], [sdl],
[INCLUDES="$INCLUDES $SDL_CFLAGS"; LIBS="$LIBS $SDL_LIBS"],
AC_MSG_ERROR($missing_library))
@@ -777,8 +783,22 @@ else
fi
fi
+# X11
+if test "$use_x11" = "yes" && test "$host_vendor" != "apple"; then
+ AC_MSG_NOTICE($x11_enabled)
+ PKG_CHECK_MODULES([X11], [x11],
+ [INCLUDES="$INCLUDES $X11_CFLAGS"; LIBS="$LIBS $X11_LIBS"],
+ AC_MSG_ERROR($missing_library))
+ PKG_CHECK_MODULES([XEXT], [xext],
+ [INCLUDES="$INCLUDES $XEXT_CFLAGS"; LIBS="$LIBS $XEXT_LIBS"],
+ AC_MSG_ERROR($missing_library))
+ AC_DEFINE([HAVE_X11], [1], [Define to 1 if you have X11 libs installed.])
+else
+ AC_MSG_RESULT($x11_disabled)
+fi
+
# XRandR
-if test "$host_vendor" = "apple" ; then
+if test "$host_vendor" = "apple" || test "$use_x11" == "no"; then
use_xrandr="no"
AC_MSG_RESULT($xrandr_disabled)
else
@@ -804,6 +824,21 @@ else
fi
fi
+# RSXS
+if test "$use_rsxs" = "no" || test "$use_gl" == "no"; then
+ AC_MSG_NOTICE($rsxs_disabled)
+ DISABLE_RSXS=1
+else
+ AC_MSG_NOTICE($rsxs_enabled)
+ DISABLE_RSXS=0
+ PKG_CHECK_MODULES([XT], [xt],
+ [INCLUDES="$INCLUDES $XT_CFLAGS"; LIBS="$LIBS $XT_LIBS"],
+ AC_MSG_ERROR($missing_library))
+ PKG_CHECK_MODULES([XMU], [xmu],
+ [INCLUDES="$INCLUDES $XMU_CFLAGS"; LIBS="$LIBS $XMU_LIBS"],
+ AC_MSG_ERROR($missing_library))
+fi
+
# libRTMP
if test "$use_librtmp" != "no"; then
AC_CHECK_HEADERS([librtmp/log.h librtmp/amf.h librtmp/rtmp.h],,
@@ -1210,6 +1245,12 @@ else
final_message="$final_message\n ALSA:\t\tNo"
fi
+if test "$use_dbus" = "yes"; then
+ final_message="$final_message\n DBUS:\t\tYes"
+else
+ final_message="$final_message\n DBUS:\t\tNo"
+fi
+
if test "x$use_vdpau" != "xno"; then
final_message="$final_message\n VDPAU:\tYes"
else
@@ -1267,6 +1308,18 @@ else
final_message="$final_message\n GOOM:\t\tNo"
fi
+if test "$use_rsxs" = "yes"; then
+ final_message="$final_message\n RSXS:\t\tYes"
+else
+ final_message="$final_message\n RSXS:\t\tNo"
+fi
+
+if test "$use_x11" = "yes"; then
+ final_message="$final_message\n X11:\t\tYes"
+else
+ final_message="$final_message\n X11:\t\tNo"
+fi
+
if test "$use_libbluray" = "yes"; then
final_message="$final_message\n Bluray:\tYes"
else
@@ -1495,6 +1548,7 @@ AC_SUBST(LDFLAGS)
AC_SUBST(SDL_DEFINES)
AC_SUBST(BUILD_DVDCSS)
AC_SUBST(DISABLE_GOOM)
+AC_SUBST(DISABLE_RSXS)
AC_SUBST(USE_EXTERNAL_FFMPEG)
AC_SUBST(PYTHON_VERSION)
AC_SUBST(OUTPUT_FILES)
@@ -1755,7 +1809,6 @@ XB_CONFIG_MODULE([xbmc/visualizations/Goom/goom2k4-0],[
], [$DISABLE_GOOM])
XB_CONFIG_MODULE([xbmc/screensavers/rsxs-0.9/], [
-if test "$use_gl" = "no"; then :; else
./configure \
CC="$CC" \
CXX="$CXX" \
@@ -1776,8 +1829,7 @@ if test "$use_gl" = "no"; then :; else
--disable-hyperspace \
--disable-lattice \
--disable-skyrocket
-fi
-], [0])
+], [$DISABLE_RSXS])
XB_CONFIG_MODULE([lib/libapetag], [
./configure \