140
140
dnl And we can also ask for the right version of gstreamer
141
141
HAVE_SOUNDSYSTEM=no
144
GST_REQUIRED_VERSION=0.8.2
145
PKG_CHECK_MODULES(SOUNDSYSTEM, \
146
gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED_VERSION gstreamer-libs-$GST_MAJORMINOR >= $GST_REQUIRED_VERSION
147
gstreamer-control-$GST_MAJORMINOR >= $GST_REQUIRED_VERSION gstreamer-gconf-$GST_MAJORMINOR >= $GST_REQUIRED_VERSION,
148
HAVE_SOUNDSYSTEM=yes,HAVE_SOUNDSYSTEM=no)
143
GST_0_8_MAJORMINOR=0.8
144
GST_0_8_REQUIRED_VERSION=0.8.2
145
PKG_CHECK_MODULES(GSTREAMER_0_8, \
146
gstreamer-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION gstreamer-libs-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION
147
gstreamer-control-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION
148
gstreamer-gconf-$GST_0_8_MAJORMINOR >= $GST_0_8_REQUIRED_VERSION,
149
have_gstreamer_0_8=yes,have_gstreamer_0_8=no)
151
GST_0_10_MAJORMINOR=0.10
152
GST_0_10_REQUIRED_VERSION=0.9.7
153
PKG_CHECK_MODULES(GSTREAMER_0_10, \
154
gstreamer-$GST_0_10_MAJORMINOR >= $GST_0_10_REQUIRED_VERSION
155
gstreamer-plugins-base-$GST_0_10_MAJORMINOR >= $GST_0_10_REQUIRED_VERSION,
156
have_gstreamer_0_10=yes,have_gstreamer_0_10=no)
159
AC_HELP_STRING([--with-playback=auto|gstreamer-0-8|gstreamer-0-10],
160
[Select the playback backend to use (default auto)]),,
163
if test x$with_playback = xauto -o x$with_playback = x$gstreamer_0_10; then
164
if test x"$have_gstreamer_0_10" = xyes; then
165
with_playback=gstreamer_0_10
166
SOUNDSYSTEM_DEPS="gstreamer-$GST_0_10_MAJORMINOR"
167
AC_DEFINE(HAVE_GSTREAMER,1,[Define if you want to use the GStreamer media framework])
168
AC_DEFINE(HAVE_GSTREAMER_0_10,1,[Define if you want to use the GStreamer 0.10])
169
SOUNDSYSTEM_CFLAGS="$GSTREAMER_0_10_CFLAGS"
170
SOUNDSYSTEM_LIBS="$GSTREAMER_0_10_LIBS"
171
elif test x$with_playback = x$gstreamer_0_10; then
172
AC_MSG_ERROR([GStreamer 0.10 explicity requested, and not found or older than version $GST_REQUIRED_VERSION])
175
if test x$with_playback = xauto -o x$with_playback = x$gstreamer_0_8; then
176
if test x"$have_gstreamer_0_8" = xyes; then
177
with_playback=gstreamer_0_8
178
SOUNDSYSTEM_DEPS="gstreamer-$GST_0_8_MAJORMINOR"
179
AC_DEFINE(HAVE_GSTREAMER,1,[Define if you want to use the GStreamer media framework])
180
AC_DEFINE(HAVE_GSTREAMER_0_8,1,[Define if you want to use the GStreamer 0.8])
181
SOUNDSYSTEM_CFLAGS="$GSTREAMER_0_8_CFLAGS"
182
SOUNDSYSTEM_LIBS="$GSTREAMER_0_8_LIBS"
183
elif test x$with_playback = x$gstreamer_0_8; then
184
AC_MSG_ERROR([GStreamer 0.8 explicity requested, and not found or older than version $GST_REQUIRED_VERSION])
150
188
dnl Give error and exit if we don't have gstreamer
151
if test "x$HAVE_SOUNDSYSTEM" = "xno"; then
152
AC_MSG_ERROR([GStreamer not found, or older than version $GST_REQUIRED_VERSION])
189
if test x$with_playback = xauto; then
190
AC_MSG_ERROR([GStreamer not found, or older than version $GST_0_8_REQUIRED_VERSION/$GST_0_10_REQUIRED_VERSION])
155
SOUNDSYSTEM_DEPS="gstreamer-$GST_MAJORMINOR"
156
193
AC_SUBST(SOUNDSYSTEM_DEPS)
158
AC_DEFINE(HAVE_GSTREAMER,1,[Define if you want to use the GStreamer media framework])
160
194
RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $SOUNDSYSTEM_CFLAGS"
161
195
RHYTHMBOX_LIBS="$RHYTHMBOX_LIBS $SOUNDSYSTEM_LIBS"
163
dnl Check for gstreamer elements
164
AM_GST_ELEMENT_CHECK(playbin,,missing_gst_elements="$missing_gst_elements spider")
167
199
AC_ARG_ENABLE(tag-writing,
425
461
AC_CHECK_LIB(nautilus-burn, nautilus_burn_drive_door_is_open,
426
462
[AC_DEFINE([HAVE_BURN_DRIVE_DOOR], 1, [Have nautilus-burn function to check drive door state])],
427
463
,[$LIBNAUTILUS_BURN_LIBS $LIBNAUTILUS_BURN_CFLAGS])
464
AC_CHECK_LIB(nautilus-burn, nautilus_burn_drive_unref,
465
[AC_DEFINE([HAVE_BURN_DRIVE_UNREF], 1, [Have nautilus-burn 2.13 drive unref function])],
466
,[$LIBNAUTILUS_BURN_LIBS $LIBNAUTILUS_BURN_CFLAGS])
430
469
AC_SUBST(LDFLAGS)