~ubuntu-branches/ubuntu/saucy/rhythmbox/saucy-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-06-07 15:23:23 UTC
  • Revision ID: package-import@ubuntu.com-20120607152323-niygh7d8y2ncxgom
Tags: 2.97-0ubuntu2
* debian/control:
  - Build-depends on libmusicbrainz5-dev
* debian/patches/00git_musicbrainz5.patch:
  - Build against musicbrainz5

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
LIBGPOD_REQS=0.6
52
52
MUSICBRAINZ3_REQS=3.0.2
53
53
MUSICBRAINZ4_REQS=4.0.0
 
54
MUSICBRAINZ5_REQS=5.0.0
54
55
TOTEM_PLPARSER_REQS=2.32.1
55
56
VALA_REQS=0.9.4
56
57
AVAHI_REQS=0.6
355
356
        AC_SUBST(MUSICBRAINZ3_CFLAGS)
356
357
        AC_SUBST(MUSICBRAINZ3_LIBS)
357
358
 
358
 
        PKG_CHECK_MODULES(MUSICBRAINZ4, libmusicbrainz4 >= $MUSICBRAINZ4_REQS gconf-2.0, [have_musicbrainz4=yes], [have_musicbrainz4=no])
 
359
        PKG_CHECK_MODULES(MUSICBRAINZ4, libmusicbrainz4 >= $MUSICBRAINZ4_REQS libdiscid gconf-2.0, [have_musicbrainz4=yes], [have_musicbrainz4=no])
359
360
        AC_SUBST(MUSICBRAINZ4_CFLAGS)
360
361
        AC_SUBST(MUSICBRAINZ4_LIBS)
361
362
 
 
363
        PKG_CHECK_MODULES(MUSICBRAINZ5, libmusicbrainz5 >= $MUSICBRAINZ5_REQS libdiscid gconf-2.0, [have_musicbrainz5=yes], [have_musicbrainz5=no])
 
364
        AC_SUBST(MUSICBRAINZ5_CFLAGS)
 
365
        AC_SUBST(MUSICBRAINZ5_LIBS)
 
366
 
362
367
        if test x"$have_musicbrainz3" = xyes; then
363
368
                oldlibs=$LIBS
364
369
                LIBS="$LIBS $MUSICBRAINZ3_LIBS"
374
379
                have_sj_metadata_getter=yes
375
380
        fi
376
381
 
 
382
        if test x"$have_musicbrainz5" = xyes; then
 
383
                AC_DEFINE([HAVE_MUSICBRAINZ5], 1, [Whether libmusicbrainz5 is available])
 
384
                have_sj_metadata_getter=yes
 
385
        fi
 
386
 
377
387
        if test x"$have_sj_metadata_getter" = xyes; then
378
388
                AC_DEFINE([HAVE_SJ_METADATA_GETTER], 1, [Whether to use the sound-juicer metadata getter code])
379
389
        else
380
390
                if test x"$enable_musicbrainz" = xyes; then
381
 
                        AC_MSG_ERROR([MusicBrainz requested, but neither libmusicbrainz3 nor libmusicbrainz4 are available])
 
391
                        AC_MSG_ERROR([MusicBrainz requested, but neither libmusicbrainz3, libmusicbrainz4 nor libmusicbrainz5 are available])
382
392
                fi
383
393
        fi
384
394
fi
385
395
AM_CONDITIONAL([HAVE_MUSICBRAINZ3], [test "x$have_musicbrainz3" = "xyes"])
386
396
AM_CONDITIONAL([HAVE_MUSICBRAINZ4], [test "x$have_musicbrainz4" = "xyes"])
 
397
AM_CONDITIONAL([HAVE_MUSICBRAINZ5], [test "x$have_musicbrainz5" = "xyes"])
387
398
AM_CONDITIONAL([HAVE_SJ_METADATA_GETTER], [test "x$have_sj_metadata_getter" = "xyes"])
388
399
 
389
400
AC_PATH_XTRA
900
911
        AC_MSG_NOTICE([** Multimedia keys support is enabled])
901
912
fi
902
913
 
903
 
if test x"$have_musicbrainz3" = "xyes"; then
 
914
if test x"$have_sj_metadata_getter" = "xyes"; then
904
915
        AC_MSG_NOTICE([** MusicBrainz support is enabled])
905
916
else
906
917
        AC_MSG_NOTICE([   MusicBrainz support is disabled])