-AC_PREREQ(2.53)
-AC_INIT([rygel],
- m4_esyscmd([GNOME_TAG_PATTERN=RYGEL build-aux/git-version-gen .tarball-version]),
- [http://bugzilla.gnome.org/enter_bug.cgi?product=Rygel])
+AC_PREREQ([2.64])
+AC_INIT([Rygel],
+ [m4_esyscmd(GNOME_TAG_PATTERN=RYGEL build-aux/git-version-gen .tarball-version)],
+ [http://bugzilla.gnome.org/enter_bug.cgi?product=Rygel],
+ [rygel],
+ [http://live.gnome.org/Rygel])
AC_CONFIG_AUX_DIR([build-aux])
-# require automake-1.11 for vala support
-AM_INIT_AUTOMAKE([1.11])
AC_CONFIG_SRCDIR([src/rygel/rygel-root-device.vala])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
-AM_MAINTAINER_MODE
-# Disable generation of static libraries
-AC_DISABLE_STATIC
-
-AC_ISC_POSIX
+AC_SEARCH_LIBS([strerror],[cposix])
AC_PROG_CC
-AC_STDC_HEADERS
-AC_PROG_LIBTOOL
+AC_HEADER_STDC
AC_FUNC_MMAP
-VALA_REQUIRED=0.8.0
-GUPNP_REQUIRED=0.13.3
-GUPNP_AV_REQUIRED=0.5.5
-GUPNP_VALA_REQUIRED=0.6.5
-DBUS_GLIB_REQUIRED=0.74
+AC_SUBST(abs_top_builddir)
+AC_SUBST(VERSION)
+
+dnl Initialize automake
+AM_INIT_AUTOMAKE([1.11.1])
+AM_MAINTAINER_MODE([enable])
+
+dnl Initialize libtool
+dnl Disable generation of static libraries
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen disable-static])
+
+dnl Required versions of library packages
+VALA_REQUIRED=0.11.6
+GSSDP_MAX_VERSION=0.10.9999
+GSSDP_REQUIRED=0.9.2
+GUPNP_MAX_VERSION=0.16.9999
+GUPNP_REQUIRED=0.13.4
+GUPNP_AV_MAX_VERSION=0.8.9999
+GUPNP_AV_REQUIRED=0.7.0
+GUPNP_DLNA_MAX_VERSION=0.6.9999
+GUPNP_DLNA_REQUIRED=0.5.0
+GUPNP_VALA_REQUIRED=0.7.5
GSTREAMER_REQUIRED=0.10.23
-GIO_REQUIRED=2.16
-GEE_REQUIRED=0.5.0
+GSTPBU_REQUIRED=0.10.30
+GIO_REQUIRED=2.26
+GEE_MAX_VERSION=0.6.9999
+GEE_REQUIRED=0.5.2
UUID_REQUIRED=1.41.3
+LIBSOUP_MAX_VERSION=2.34.9999
LIBSOUP_REQUIRED=2.26.0
-GTK_REQUIRED=2.16
+GTK_REQUIRED=2.90.3
+
+dnl Additional requirements for media-export plugin
+GSTREAMER_TAG_REQUIRED=0.10.28
+GSTREAMER_APP_REQUIRED=0.10.28
LIBSQLITE3_REQUIRED=3.5
-PKG_CHECK_MODULES(LIBGUPNP, gupnp-1.0 >= $GUPNP_REQUIRED)
-PKG_CHECK_MODULES(LIBGUPNP_AV, gupnp-av-1.0 >= $GUPNP_AV_REQUIRED)
-PKG_CHECK_MODULES(LIBDBUS_GLIB, dbus-glib-1 >= $DBUS_GLIB_REQUIRED)
+PKG_CHECK_MODULES(LIBGSSDP, gssdp-1.0 >= $GSSDP_REQUIRED
+ gssdp-1.0 <= $GSSDP_MAX_VERSION)
+PKG_CHECK_MODULES(LIBGUPNP, gupnp-1.0 >= $GUPNP_REQUIRED
+ gupnp-1.0 <= $GUPNP_MAX_VERSION)
+PKG_CHECK_MODULES(LIBGUPNP_AV, gupnp-av-1.0 >= $GUPNP_AV_REQUIRED
+ gupnp-av-1.0 <= $GUPNP_AV_MAX_VERSION)
+PKG_CHECK_MODULES(LIBGUPNP_DLNA, gupnp-dlna-1.0 >= $GUPNP_DLNA_REQUIRED
+ gupnp-dlna-1.0 <= $GUPNP_DLNA_MAX_VERSION)
PKG_CHECK_MODULES(LIBGSTREAMER, gstreamer-0.10 >= $GSTREAMER_REQUIRED)
+PKG_CHECK_MODULES(GSTREAMER_BASE, gstreamer-base-0.10 >= $GSTREAMER_REQUIRED)
+PKG_CHECK_MODULES(GST_PBU, gstreamer-pbutils-0.10 >= $GSTPBU_REQUIRED)
PKG_CHECK_MODULES(LIBGIO, gio-2.0 >= $GIO_REQUIRED)
PKG_CHECK_MODULES(GEE, gee-1.0 >= $GEE_REQUIRED)
PKG_CHECK_MODULES(UUID, uuid >= $UUID_REQUIRED)
-PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4 >= $LIBSOUP_REQUIRED)
-PKG_CHECK_MODULES(LIBSQLITE3, sqlite3 >= $LIBSQLITE3_REQUIRED)
+PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4 >= $LIBSOUP_REQUIRED
+ libsoup-2.4 <= $LIBSOUP_MAX_VERSION)
-# glib-genmarshal
+dnl glib-genmarshal
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
-AC_ARG_ENABLE(vala,
- [ --enable-vala enable checks for vala],,
- enable_vala=no)
AC_ARG_ENABLE(sql-debugging,
- [ --enable-sql-debugging enable SQL statement debugging],,
- enable_sql_debugging=no)
-
-if test x$enable_sql_debugging = xyes ; then
- VALAFLAGS="$VALAFLAGS -D RYGEL_DEBUG_SQL"
-fi
-
-# Enable check for Vala even if not asked to do so if stamp files are absent.
-if test ! -e src/rygel/rygel_vala.stamp -o \
- ! -e src/rygel/librygel_configuration_a_vala.stamp -o \
- ! -e src/ui/rygel_preferences_vala.stamp -o \
- ! -e src/plugins/gst-renderer/librygel_gst_renderer_la_vala.stamp -o \
- ! -e src/plugins/tracker/librygel_media_tracker_la_vala.stamp -o \
- ! -e src/plugins/test/librygel_test_la_vala.stamp -o \
- ! -e src/plugins/media-export/librygel_media_export_la_vala.stamp -o \
- ! -e src/plugins/mediathek/librygel_mediathek_la_vala.stamp -o \
- ! -e src/plugins/gst-launch/librygel_gst_launch_la_vala.stamp -o \
- ! -e src/plugins/external/librygel_external_la_vala.stamp ; then
- enable_vala=yes
-fi
-
-# Vala
-if test x$enable_vala = xyes ; then
- # check for vala
- AM_PROG_VALAC([$VALA_REQUIRED])
-
- if test "x$VALAC" = "x"; then
- AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])
- fi
-
- PKG_CHECK_MODULES(GUPNP_VALA, gupnp-vala-1.0 >= $GUPNP_VALA_REQUIRED)
- VAPIDIR=`pkg-config --variable=vapidir vala-1.0`
-
- # FIXME: Whats the proper way for checking for particular Vala bindings
- AC_CHECK_FILE("${VAPIDIR}/gupnp-1.0.vapi",
- true,
- [AC_MSG_ERROR("Unable to find Vala bindings for gupnp-1.0")])
-
- AC_CHECK_FILE("${VAPIDIR}/gupnp-av-1.0.vapi",
- true,
- [AC_MSG_ERROR("Unable to find Vala bindings for gupnp-av-1.0")])
-
- AC_CHECK_FILE("${VAPIDIR}/dbus-glib-1.vapi",
- true,
- [AC_MSG_ERROR("Unable to find Vala bindings for dbus-glib-1")])
-
- AC_CHECK_FILE("${VAPIDIR}/gstreamer-0.10.vapi",
- true,
- [AC_MSG_ERROR("Unable to find Vala bindings for gstreamer-0.10")])
-
- AC_CHECK_FILE("${VAPIDIR}/gio-2.0.vapi",
- true,
- [AC_MSG_ERROR("Unable to find Vala bindings for gio-2.0")])
-
- AC_CHECK_FILE("${VAPIDIR}/gee-1.0.vapi",
- true,
- [AC_MSG_ERROR("Unable to find Vala bindings for gee-1.0")])
-
- AC_CHECK_FILE("${VAPIDIR}/sqlite3.vapi",
- true,
- [AC_MSG_ERROR("Unable to find Vala bindings for sqlite3")])
-else
- VAPIDIR=`echo ${datadir}/vala/vapi`
-fi
-
-AC_SUBST(VAPIDIR)
-
-# Maemo support
-AC_ARG_ENABLE(maemo,
- [ --enable-maemo enable maemo support],,
- enable_maemo=no)
-
-# Debugging
+ AS_HELP_STRING([--enable-sql-debugging],[enable SQL statement debugging]),,
+ enable_sql_debugging=no)
+AS_IF([test x$enable_sql_debugging = xyes],
+ [RYGEL_ADD_VALAFLAGS([-D RYGEL_DEBUG_SQL])])
+
+dnl Add plugins
+RYGEL_ADD_PLUGIN([test],[Test],[no])
+RYGEL_ADD_PLUGIN([tracker],[Tracker],[yes])
+RYGEL_ADD_PLUGIN([external],[MediaServer2 DBus consumer],[yes])
+RYGEL_ADD_PLUGIN([mpris],[MPRIS2 DBus consumer],[yes])
+RYGEL_ADD_PLUGIN([playbin],[GStreamer playbin],[yes])
+RYGEL_ADD_PLUGIN([mediathek],[ZDF Mediathek],[no])
+RYGEL_ADD_PLUGIN([media-export],[MediaExport],[yes])
+RYGEL_ADD_PLUGIN([gst-launch],[GStreamer launchline],[no])
+
+dnl Explicitly add stamp files for targets that are not plugins
+RYGEL_ADD_STAMP([src/rygel/rygel_vala.stamp])
+RYGEL_ADD_STAMP([src/ui/rygel_preferences_vala.stamp])
+
+RYGEL_CHECK_VALA([$VALA_REQUIRED],
+ [gupnp-1.0
+ gupnp-av-1.0
+ gupnp-dlna-1.0
+ gstreamer-0.10
+ gstreamer-pbutils-0.10
+ gio-2.0
+ gee-1.0
+ posix])
+
+dnl Debugging
AC_ARG_ENABLE(debug,
- [ --enable-debug enable debugging],,
+ AS_HELP_STRING([--enable-debug],[enable debugging]),,
enable_debug=no)
if test "x$enable_debug" = "xyes"; then
CFLAGS="$CFLAGS -O0 -g"
fi
-# Strict compiler
+dnl Strict compiler
AC_ARG_ENABLE(strict-cc,
- [ --enable-strict-cc enable strict C compiler],,
+ AS_HELP_STRING([--enable-strict-cc],[enable strict C compiler]),,
enable_strict_cc=no)
if test "x$enable_strict_cc" = "xyes"; then
CFLAGS="$CFLAGS -Wall -Werror"
CFLAGS="$CFLAGS -w"
fi
-# Run uninstalled
+dnl Run uninstalled
AC_ARG_ENABLE(uninstalled,
- [ --enable-uninstalled run uninstalled],,
+ AS_HELP_STRING([--enable-uninstalled],[run uninstalled]),,
enable_uninstalled=no)
if test "x$enable_uninstalled" = "xyes"; then
AC_MSG_WARN("You want to run the tools uninstalled only? Fine!")
fi
+AM_CONDITIONAL([UNINSTALLED], [test "x$enable_uninstalled" = "xyes"])
-# Check wether user wants to build UIs
+dnl Check wether user wants to build UIs
AC_ARG_WITH( ui,
- AC_HELP_STRING([--without-ui],[Do not build UI applications]),
+ AS_HELP_STRING([--without-ui],[Do not build UI applications]),
try_ui=$withval, try_ui=yes )
HAVE_GTK=no
if test x$try_ui = xyes ; then
dnl check for gtk
- PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED ,
+ PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED,
[
- AC_SUBST(GTK_CFLAGS)
- AC_SUBST(GTK_LIBS)
if test x$enable_vala = xyes ; then
- AC_CHECK_FILE("${VAPIDIR}/gtk+-2.0.vapi",
- [
- HAVE_GTK=yes
- ],
- [
- HAVE_GTK=no
- AC_MSG_ERROR("Unable to find Vala bindings for gtk+-2.0")
- ])
+ VALA_CHECK_PACKAGES([gtk+-3.0], [HAVE_GTK=yes])
else
HAVE_GTK=yes
fi
AC_SUBST(HAVE_GTK)
AM_CONDITIONAL(BUILD_UI, test x$BUILD_UI = xyes)
-# Build test plugin
-AC_ARG_ENABLE(test-plugin,
- [ --enable-test-plugin build test plugin],,
- enable_test_plugin=no)
-
-# Build Tracker plugin
-AC_ARG_ENABLE(tracker-plugin,
- [ --enable-tracker-plugin build tracker plugin],,
- enable_tracker_plugin=yes)
-
-# Build MediaExport plugin
-AC_ARG_ENABLE(media-export-plugin,
- [ --enable-media-export-plugin build MediaExport plugin],,
- enable_media_export_plugin=yes)
-
-# Build External plugin
-AC_ARG_ENABLE(external-plugin,
- [ --enable-external-plugin build External plugin],,
- enable_external_plugin=yes)
-
-# Build GstRenderer plugin
-AC_ARG_ENABLE(gst-renderer-plugin,
- [ --enable-gst-renderer_plugin build Gstreamer Renderer plugin],,
- enable_gst_renderer_plugin=yes)
-
-# Build Mediathek plugin
-AC_ARG_ENABLE(mediathek-plugin,
- [ --enable-mediathek-plugin build Mediathek plugin],,
- enable_mediathek_plugin=no)
-
-# Build GstLaunch plugin
-AC_ARG_ENABLE(gst-launch-plugin,
- [ --enable-gst-launch-plugin build Gstreamer launchline plugin],,
- enable_gst_launch_plugin=no)
-
-
-AC_SUBST(abs_top_builddir)
-
-AM_CONDITIONAL([UNINSTALLED], [test "x$enable_uninstalled" = "xyes"])
-AM_CONDITIONAL([ENABLE_MAEMO], [test "x$enable_maemo" = "xyes"])
-AM_CONDITIONAL([BUILD_TEST_PLUGIN], [test "x$enable_test_plugin" = "xyes"])
-AM_CONDITIONAL([BUILD_TRACKER_PLUGIN],
- [test "x$enable_tracker_plugin" = "xyes"])
-AM_CONDITIONAL([BUILD_MEDIATHEK_PLUGIN], [test "x$enable_mediathek_plugin" = "xyes"])
-AM_CONDITIONAL([BUILD_MEDIA_EXPORT_PLUGIN], [test "x$enable_media_export_plugin" = "xyes"])
-AM_CONDITIONAL([BUILD_EXTERNAL_PLUGIN], [test "x$enable_external_plugin" = "xyes"])
-AM_CONDITIONAL([BUILD_GST_RENDERER_PLUGIN], [test "x$enable_gst_renderer_plugin" = "xyes"])
-AM_CONDITIONAL([BUILD_GST_LAUNCH_PLUGIN], [test "x$enable_gst_launch_plugin" = "xyes"])
+dnl Check additional requirements for MediaExport plugins
+if test "x$enable_media_export_plugin" = "xyes";
+then
+ PKG_CHECK_MODULES(LIBSQLITE3, sqlite3 >= $LIBSQLITE3_REQUIRED)
+ PKG_CHECK_MODULES(GSTREAMER_TAG, gstreamer-tag-0.10 >= $GSTREAMER_TAG_REQUIRED);
+ PKG_CHECK_MODULES(GSTREAMER_APP, gstreamer-app-0.10 >= $GSTREAMER_APP_REQUIRED);
+ if test x$enable_vala = xyes ; then
+ VALA_CHECK_PACKAGES([sqlite3
+ gstreamer-tag-0.10
+ gstreamer-app-0.10])
+ fi
+fi
-# Gettext
+dnl Gettext
GETTEXT_PACKAGE=rygel
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"],
[Define the gettext package to be used])
-ALL_LINGUAS=""
AM_GLIB_GNU_GETTEXT
-AM_GLIB_DEFINE_LOCALEDIR([LOCALEDIR])
-
-AC_SUBST(VALAFLAGS)
+IT_PROG_INTLTOOL([0.40.0])
dnl Shave the output
AM_SILENT_RULES([yes])
-AC_OUTPUT([
+dnl documenation
+AC_PATH_PROG([XSLTPROC], [xsltproc])
+AM_CONDITIONAL([HAVE_XSLTPROC], [test x"$XSLTPROC" != x])
+
+
+AC_CONFIG_FILES([
Makefile
src/Makefile
src/rygel/Makefile
src/ui/Makefile
src/plugins/Makefile
-src/plugins/media-export/Makefile
-src/plugins/external/Makefile
-src/plugins/gst-launch/Makefile
-src/plugins/mediathek/Makefile
-src/plugins/tracker/Makefile
-src/plugins/gst-renderer/Makefile
-src/plugins/test/Makefile
data/Makefile
data/xml/Makefile
+data/icons/Makefile
+data/icons/32x32/Makefile
+data/icons/48x48/Makefile
+data/icons/120x120/Makefile
+data/icons/scalable/Makefile
+data/rygel.desktop.in
+data/rygel-preferences.desktop.in
+doc/Makefile
+po/Makefile.in
rygel-1.0.pc
tests/Makefile
])
+AC_OUTPUT
echo "
Source code location: ${srcdir}
Compiler: ${CC}
CFLAGS: ${CFLAGS}
+ VALAFLAGS: ${VALAFLAGS}
uninstalled: ${enable_uninstalled}
- maemo support: ${enable_maemo}
- preferences ui ${BUILD_UI}
+ preferences ui: ${BUILD_UI}
SQL debugging: ${enable_sql_debugging}
Plugins:
test: ${enable_test_plugin}
mediathek: ${enable_mediathek_plugin}
media-export ${enable_media_export_plugin}
external: ${enable_external_plugin}
+ MPRIS2: ${enable_mpris_plugin}
gst-launch: ${enable_gst_launch_plugin}
- gst-renderer: ${enable_gst_renderer_plugin}
+ playbin: ${enable_playbin_plugin}
"