3
3
m4_define(totem_version_major, 2)
4
m4_define(totem_version_minor, 24)
5
m4_define(totem_version_micro, 3)
4
m4_define(totem_version_minor, 26)
5
m4_define(totem_version_micro, 1)
8
8
[totem_version_major.totem_version_minor.totem_version_micro],
50
50
AC_SUBST(TOTEM_VERSION_MICRO)
52
52
# The full list of plugins
53
allowed_plugins="thumbnail screensaver ontop galago gromit lirc media-player-keys mythtv properties sidebar-test skipto sample-python sample-vala bemused youtube publish tracker pythonconsole"
53
allowed_plugins="thumbnail screensaver ontop galago gromit lirc media-player-keys mythtv properties sidebar-test skipto sample-python sample-vala bemused youtube publish tracker pythonconsole jamendo opensubtitles screenshot brasero-disc-recorder coherence_upnp"
55
55
PLUGINDIR='${libdir}/totem/plugins'
56
56
AC_SUBST(PLUGINDIR)
58
AC_ARG_ENABLE(nvtv, AC_HELP_STRING([--enable-nvtv],[Enable support for TV-output with nvtv]), enable_nvtv="$enableval", enable_nvtv=yes)
60
if test x$enable_nvtv = xyes; then
61
PKG_CHECK_MODULES(NVTV, nvtvsimple >= 0.4.5, found_nvtv=yes, found_nvtv=no)
62
if test x"$found_nvtv" = "xyes" ; then
63
AC_DEFINE(HAVE_NVTV,1,[Define to 1 if nvtv is available and used.])
69
60
dnl the two versions here implicate the gstreamer core and gst-plugins
137
128
gst010_toolsdir=`$PKG_CONFIG --variable=toolsdir gstreamer-0.10`
138
129
gst010_inspect="$gst010_toolsdir/gst-inspect-0.10"
131
dnl Give error and exit if we don't have the gst_inspect tool
132
AC_MSG_CHECKING([GStreamer 0.10 inspection tool])
133
if test -r "$gst010_inspect"; then
138
Cannot find required GStreamer-0.10 tool 'gst-inspect-0.10'.
139
It should be part of gstreamer-0_10-utils. Please install it.
140
143
dnl Check for elements from gst-plugins-base
141
144
for base_element in playbin ffmpegcolorspace videoscale
224
dnl Check for GTK+ only build
226
AC_HELP_STRING([--enable-gtk],[compile a gtk+ only version]),
227
[case "${enableval}" in
228
yes) ENABLE_GTK=yes ;;
230
*) AC_MSG_ERROR(bad value ${enableval} for --disable-gtk) ;;
232
[ENABLE_GTK=no]) dnl Default value
234
dnl Seems that the order matters because libtool blows
235
dnl Also check if we're going to be using GTK+ only
236
if test x$ENABLE_GTK = "xno" ; then
237
# FIXME: use gmodule-no-export instead!
238
PKG_CHECK_MODULES(EXTRA_GNOME, glib-2.0 >= $GLIB_REQS gtk+-2.0 >= $GTK_REQS libgnomeui-2.0 >= $GNOMEUI_REQS gio-2.0 libgnome-2.0 >= $LIBGNOME_REQS gnome-icon-theme >= $GNOMEICON_REQS gmodule-2.0 totem-plparser >= $TOTEM_PLPARSER_REQS $ISO_CODES)
241
# FIXME: use gmodule-no-export instead!
242
PKG_CHECK_MODULES(EXTRA_GNOME, glib-2.0 >= $GLIB_REQS gtk+-2.0 >= $GTK_REQS gio-2.0 gnome-icon-theme >= $GNOMEICON_REQS gmodule-2.0 gconf-2.0 totem-plparser >= $TOTEM_PLPARSER_REQS $ISO_CODES)
243
AC_DEFINE(USE_STABLE_LIBGNOMEUI, 1, [defined if we don't have GNOME])
244
AC_DEFINE(HAVE_GTK_ONLY, 1, [defined if GNOME isn't used])
227
dnl Check the smclient backend
228
GDK_TARGET="$($PKG_CONFIG --variable target gdk-2.0)"
231
AC_MSG_CHECKING([which smclient backend to use])
232
AC_ARG_WITH([smclient],
233
[AS_HELP_STRING([--with-smclient],[which smclient backend to use (xsmp/win32/quartz)])],
235
[case "$GDK_TARGET" in
236
x11) with_smclient=xsmp SMCLIENT_PKGS="sm" ;;
237
win32|quartz) with_smclient=$GDK_TARGET ;;
238
*) with_smclient=no ;;
240
AC_MSG_RESULT([$with_smclient])
242
if test "$with_smclient" != "no"; then
243
PKG_CHECK_MODULES([SMCLIENT],[$SMCLIENT_PKGS])
244
AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled])
247
AM_CONDITIONAL([WITH_SMCLIENT],[test "$with_smclient" != "no"])
248
AM_CONDITIONAL([WITH_SMCLIENT_XSMP],[test "$with_smclient" = "xsmp"])
249
AM_CONDITIONAL([WITH_SMCLIENT_WIN32],[test "$with_smclient" = "win32"])
250
AM_CONDITIONAL([WITH_SMCLIENT_QUARTZ],[test "$with_smclient" = "quartz"])
252
dnl Pkg-config checks
254
PKG_CHECK_MODULES([DEPENDENCY],[
255
glib-2.0 >= $GLIB_REQS
257
gtk+-2.0 >= $GTK_REQS
260
totem-plparser >= $TOTEM_PLPARSER_REQS
248
263
PKG_CHECK_MODULES(MM, $MM)
250
AM_CONDITIONAL(HAVE_GNOME, test x$HAVE_GNOME = "xyes")
251
EXTRA_GNOME_CFLAGS="$EXTRA_GNOME_CFLAGS"
252
EXTRA_GNOME_LIBS="$EXTRA_GNOME_LIBS $EXTRA_BACKEND_LIBS"
253
AC_SUBST(EXTRA_GNOME_CFLAGS)
254
AC_SUBST(EXTRA_GNOME_LIBS)
256
PKG_CHECK_MODULES(GTK, gtk+-2.0 gthread-2.0)
265
PKG_CHECK_MODULES([GTK],[gtk+-2.0 gthread-2.0])
258
266
GTK_LIBS="$GTK_LIBS $EXTRA_BACKEND_LIBS"
259
267
AC_SUBST(GTK_LIBS)
269
AC_SUBST([EXTRA_BACKEND_LIBS])
273
gnome-icon-theme >= $GNOMEICON_REQS])
261
275
dnl *************************
262
276
dnl X11 related functionality
263
277
dnl *************************
602
brasero-disc-recorder)
603
dnl this is only needed to use brasero icons
604
PKG_CHECK_MODULES(DISC_RECORDER, libxml-2.0 >= 2.6.0 gtk+-x11-2.0,
605
[BUILD_RECORDER=yes], [BUILD_RECORDER=no])
606
if test "${BUILD_RECORDER}" != "yes" ; then
607
plugin_error_or_ignore "you need libxml-2.0 >= 2.6.0 and gtk+-x11-2.0 to use the brasero-disc-recorder plugin"
587
613
# Add the specified plugin
672
694
if test "$enable_browser_plugins" = "yes"; then
674
AC_MSG_CHECKING([whether to enable the basic browser plugin])
675
AC_ARG_ENABLE([basic-plugin],
676
AS_HELP_STRING([--disable-basic-plugin],[Whether to disable the basic browser plugin]),
677
[],[enable_basic_plugin=yes])
678
AC_MSG_RESULT([$enable_basic_plugin])
680
696
AC_MSG_CHECKING([whether to enable the GMP browser plugin])
681
697
AC_ARG_ENABLE([gmp-plugin],
682
698
AS_HELP_STRING([--enable-gmp-plugin],[Whether to enable the GMP browser plugin]),
838
854
src/plugins/Makefile
839
855
src/plugins/bemused/Makefile
856
src/plugins/coherence_upnp/Makefile
840
857
src/plugins/screensaver/Makefile
858
src/plugins/screenshot/Makefile
841
859
src/plugins/ontop/Makefile
842
860
src/plugins/galago/Makefile
843
861
src/plugins/gromit/Makefile
844
862
src/plugins/lirc/Makefile
845
863
src/plugins/media-player-keys/Makefile
846
864
src/plugins/mythtv/Makefile
865
src/plugins/opensubtitles/Makefile
847
866
src/plugins/properties/Makefile
848
867
src/plugins/sidebar-test/Makefile
849
868
src/plugins/skipto/Makefile
885
909
AC_MSG_NOTICE([ Easy codec installation support disabled])
888
if test x$found_nvtv = xyes ; then
889
AC_MSG_NOTICE([** nvtv support enabled])
891
AC_MSG_NOTICE([ nvtv support disabled])
893
if test x$ENABLE_GTK = xyes ; then
894
AC_MSG_NOTICE([** GTK+-only version enabled])
896
AC_MSG_NOTICE([** GNOME version enabled])
898
912
if test x$enable_python = xyes ; then
899
913
AC_MSG_NOTICE([** Python binding support enabled])
922
936
AC_MSG_NOTICE([ No Totem plugins enabled])
924
938
if test x$enable_browser_plugins = xyes ; then
925
AC_MSG_NOTICE([** Browser plugin enabled (using $MOZILLA)])
926
if test x$enable_basic_plugin = xyes ; then
927
AC_MSG_NOTICE([** Basic browser plugin enabled])
929
AC_MSG_NOTICE([ Basic browser plugin disabled])
939
AC_MSG_NOTICE([** Browser plugin enabled])
931
940
if test x$enable_gmp_plugin = xyes ; then
932
941
AC_MSG_NOTICE([** GMP (Windows Media) plugin enabled])