~ubuntu-branches/ubuntu/precise/rhythmbox/precise-201203091205

« back to all changes in this revision

Viewing changes to configure.ac

Tags: upstream-0.9.2cvs20060102
ImportĀ upstreamĀ versionĀ 0.9.2cvs20060102

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
dnl And we can also ask for the right version of gstreamer
141
141
HAVE_SOUNDSYSTEM=no
142
142
 
143
 
GST_MAJORMINOR=0.8
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)
 
150
        
 
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)
 
157
 
 
158
AC_ARG_WITH(player,
 
159
   AC_HELP_STRING([--with-playback=auto|gstreamer-0-8|gstreamer-0-10],
 
160
   [Select the playback backend to use (default auto)]),,
 
161
   with_playback=auto)
 
162
 
 
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])
 
173
        fi
 
174
fi
 
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])
 
185
        fi
 
186
fi
149
187
 
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])
153
191
fi
154
192
 
155
 
SOUNDSYSTEM_DEPS="gstreamer-$GST_MAJORMINOR"
156
193
AC_SUBST(SOUNDSYSTEM_DEPS)
157
 
 
158
 
AC_DEFINE(HAVE_GSTREAMER,1,[Define if you want to use the GStreamer media framework])
159
 
 
160
194
RHYTHMBOX_CFLAGS="$RHYTHMBOX_CFLAGS $SOUNDSYSTEM_CFLAGS"
161
195
RHYTHMBOX_LIBS="$RHYTHMBOX_LIBS $SOUNDSYSTEM_LIBS"
162
196
 
163
 
dnl Check for gstreamer elements
164
 
AM_GST_ELEMENT_CHECK(playbin,,missing_gst_elements="$missing_gst_elements spider")
165
197
 
166
198
dnl Tag writing
167
199
AC_ARG_ENABLE(tag-writing,
183
215
              AC_HELP_STRING([--enable-daap],
184
216
                             [Enable Digital Audio Access Protocol (music sharing) in rhythmbox **EXPERIMENTAL**]))
185
217
if test x"$enable_daap" = xyes; then
 
218
   if test x"$with_playback" = xgstreamer_0_10; then
 
219
      AC_MSG_ERROR([DAAP support cannot currently be used with GStreamer 0.10])
 
220
   fi
 
221
 
186
222
   AC_MSG_WARN([DAAP support is experimental, and may cause Rhythmbox to crash uncontrollably, use at your own risk])
187
223
fi
188
224
 
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])
428
467
 
429
468
AC_SUBST(CFLAGS)
430
469
AC_SUBST(LDFLAGS)
453
492
 
454
493
AS_AC_EXPAND(DATADIR, $datadir)
455
494
 
456
 
DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
457
 
AC_SUBST(DBUS_SERVICES_DIR)
458
 
AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for DBUS is])
459
495
AC_MSG_CHECKING([for D-BUS])
460
496
AC_ARG_WITH(dbus,
461
497
            AC_HELP_STRING([--with-dbus],
596
632
help/ja/Makefile
597
633
po/Makefile.in
598
634
tests/Makefile
599
 
rhythmbox.spec
600
635
doc/Makefile
601
636
doc/reference/Makefile
602
637
])
613
648
        AC_MSG_NOTICE([** RhythmDB sanity checking enabled (may be slow!)])
614
649
fi
615
650
 
616
 
AC_MSG_NOTICE([** GStreamer metadata is enabled])
617
651
 
618
652
if test x"$enable_tag_writing" = xyes; then
619
653
        AC_MSG_NOTICE([** Tag writing is enabled - USE AT YOUR OWN RISK])
631
665
        AC_MSG_NOTICE([** MusicBrainz support is enabled])
632
666
fi
633
667
 
634
 
AC_MSG_NOTICE([** GStreamer $GST_MAJORMINOR player is enabled])
 
668
if test x"$with_playback" = xgstreamer_0_8; then
 
669
        AC_MSG_NOTICE([** GStreamer 0.8 player is enabled])
 
670
elif test x"$with_playback" = xgstreamer_0_10; then
 
671
        AC_MSG_NOTICE([** GStreamer 0.10 player is enabled])
 
672
else
 
673
        AC_MSG_NOTICE([** this shouldn't happen])
 
674
fi
635
675
 
636
676
if test x"$use_ipod" = xyes; then
637
677
        AC_MSG_NOTICE([** iPod integration enabled])
659
699
        AC_MSG_NOTICE([   Audioscrobbler support disabled])
660
700
fi
661
701
 
662
 
if test x"$missing_gst_output_element" != x; then
663
 
        AC_MSG_WARN([Neither osssink nor alsasink could be found on your system])
664
 
fi      
665
 
if test x"$missing_gst_elements" != x; then
666
 
        AC_MSG_WARN([The following GStreamer elements could not be found at compile time: $missing_gst_elements])
667
 
        AC_MSG_WARN([Rhythmbox will fail at runtime if these elements cannot be found])
668
 
fi
669
702
AC_MSG_NOTICE([End options])