AC_PREREQ(2.53)
AC_INIT([rygel],
m4_esyscmd([GNOME_TAG_PATTERN=RYGEL build-aux/git-version-gen .tarball-version]),
- [http://live.gnome.org/Rygel])
+ [http://bugzilla.gnome.org/enter_bug.cgi?product=Rygel])
AC_CONFIG_AUX_DIR([build-aux])
# require automake-1.11 for vala support
AC_PROG_LIBTOOL
AC_FUNC_MMAP
-VALA_REQUIRED=0.7.7
-GUPNP_REQUIRED=0.13
-GUPNP_AV_REQUIRED=0.5
-GUPNP_VALA_REQUIRED=0.6
+VALA_REQUIRED=0.9.3
+GUPNP_REQUIRED=0.13.3
+GUPNP_AV_REQUIRED=0.5.7
+GUPNP_VALA_REQUIRED=0.6.7
DBUS_GLIB_REQUIRED=0.74
GSTREAMER_REQUIRED=0.10.23
GIO_REQUIRED=2.16
-GEE_REQUIRED=0.3.0
+GEE_REQUIRED=0.5.0
UUID_REQUIRED=1.41.3
LIBSOUP_REQUIRED=2.26.0
-GTK_REQUIRED=2.16
+GTK_REQUIRED=2.90.3
LIBSQLITE3_REQUIRED=3.5
PKG_CHECK_MODULES(LIBGUPNP, gupnp-1.0 >= $GUPNP_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)
# glib-genmarshal
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
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
AC_CHECK_FILE("${VAPIDIR}/sqlite3.vapi",
true,
[AC_MSG_ERROR("Unable to find Vala bindings for sqlite3")])
+ AC_CHECK_FILE("${VAPIDIR}/posix.vapi",
+ true,
+ [AC_MSG_ERROR("Unable to find Vala bindings for POSIX")])
else
VAPIDIR=`echo ${datadir}/vala/vapi`
fi
[ --enable-debug enable debugging],,
enable_debug=no)
if test "x$enable_debug" = "xyes"; then
- CFLAGS="$CFLAGS -g"
+ CFLAGS="$CFLAGS -O0 -g"
fi
# Strict compiler
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",
+ AC_CHECK_FILE("${VAPIDIR}/gtk+-3.0.vapi",
[
HAVE_GTK=yes
],
[
HAVE_GTK=no
- AC_MSG_ERROR("Unable to find Vala bindings for gtk+-2.0")
+ AC_MSG_ERROR("Unable to find Vala bindings for gtk+-3.0")
])
else
HAVE_GTK=yes
[ --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(gstlaunch-plugin,
- [ --enable-gstlaunch-plugin build Gstreamer launchline plugin],,
- enable_gstlaunch_plugin=no)
+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([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_GSTLAUNCH_PLUGIN], [test "x$enable_gstlaunch_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"])
+
+if test "x$enable_media_export_plugin" = "xyes";
+then
+ PKG_CHECK_MODULES(LIBSQLITE3, sqlite3 >= $LIBSQLITE3_REQUIRED)
+fi
# Gettext
-GETTEXT_PACKAGE=rygel
+GETTEXT_PACKAGE=AC_PACKAGE_NAME
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])
+IT_PROG_INTLTOOL([0.35.0])
+
+AC_SUBST(VALAFLAGS)
dnl Shave the output
AM_SILENT_RULES([yes])
src/plugins/Makefile
src/plugins/media-export/Makefile
src/plugins/external/Makefile
-src/plugins/gstlaunch/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/256x256/Makefile
+data/icons/32x32/Makefile
+data/icons/scalable/Makefile
+po/Makefile.in
rygel-1.0.pc
+tests/Makefile
])
echo "
============
- Prefix: ${prefix}
+ Prefix: ${prefix}
Source code location: ${srcdir}
Compiler: ${CC}
CFLAGS: ${CFLAGS}
+ uninstalled: ${enable_uninstalled}
+ maemo support: ${enable_maemo}
+ preferences ui ${BUILD_UI}
+ SQL debugging: ${enable_sql_debugging}
+ Plugins:
+ test: ${enable_test_plugin}
+ tracker: ${enable_tracker_plugin}
+ mediathek: ${enable_mediathek_plugin}
+ media-export ${enable_media_export_plugin}
+ external: ${enable_external_plugin}
+ gst-launch: ${enable_gst_launch_plugin}
+ gst-renderer: ${enable_gst_renderer_plugin}
"