349
352
AC_ARG_ENABLE(musicbrainz, AC_HELP_STRING([--disable-musicbrainz],
350
353
[don't build with MusicBrainz support]))
351
354
if test x"$enable_musicbrainz" != "xno"; then
352
PKG_CHECK_MODULES(MUSICBRAINZ3, libmusicbrainz3 >= $MUSICBRAINZ3_REQS, [have_musicbrainz3=yes], [have_musicbrainz3=no])
353
PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= $MUSICBRAINZ_REQS, [have_musicbrainz=yes], [have_musicbrainz=no])
355
PKG_CHECK_MODULES(MUSICBRAINZ3, libmusicbrainz3 >= $MUSICBRAINZ3_REQS gconf-2.0, [have_musicbrainz3=yes], [have_musicbrainz3=no])
355
357
AC_SUBST(MUSICBRAINZ3_CFLAGS)
356
358
AC_SUBST(MUSICBRAINZ3_LIBS)
357
AC_SUBST(MUSICBRAINZ_CFLAGS)
358
AC_SUBST(MUSICBRAINZ_LIBS)
360
360
if test x"$have_musicbrainz3" = xyes; then
631
623
AC_SUBST(PLUGIN_LIBTOOL_FLAGS)
633
625
PLUGINDIR='${libdir}/rhythmbox/plugins'
626
PLUGINDATADIR='${datadir}/rhythmbox/plugins'
634
627
AC_SUBST(PLUGINDIR)
628
AC_SUBST(PLUGINDATADIR)
636
630
dnl ================================================================
637
631
dnl Python plugins
638
632
dnl ================================================================
640
AC_MSG_CHECKING([whether Python plugin support is requested])
641
636
AC_ARG_ENABLE([python],
642
AS_HELP_STRING([--enable-python],[Enable python support]),
643
[enable_python=$enableval have_python=$enableval],
644
[enable_python=autodetect have_python=yes])
645
AC_MSG_RESULT([$have_python])
647
if test "x$have_python" != "xyes"; then
648
if test "x$enable_python" = "xyes"; then
649
AC_MSG_ERROR([Python not found])
650
elif test "x$enable_python" = "xautodetect"; then
652
AC_MSG_WARN([Python not found, disabling python support])
656
if test "x$have_python" != "xno"; then
657
AM_PATH_PYTHON([2.3],[],[have_python=no])
658
if test "x$PYTHON" = "x:"; then
663
if test "x$have_python" != "xno"; then
664
PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
665
PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
666
PYTHON_LIBS="-lpython$PYTHON_VERSION"
667
if test -d $PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION ; then
668
PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config"
669
PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib64/python$PYTHON_VERSION/config/Makefile"
671
PYTHON_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config"
672
PYTHON_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PYTHON_VERSION/config/Makefile"
674
PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
675
PYTHON_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
676
PYTHON_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PYTHON_MAKEFILE`
677
PYTHON_EXTRA_LIBS="$PYTHON_BASEMODLIBS $PYTHON_OTHER_LIBS"
678
AC_SUBST([PYTHON_LIBS])
679
AC_SUBST([PYTHON_LIB_LOC])
680
AC_SUBST([PYTHON_CFLAGS])
681
AC_SUBST([PYTHON_EXTRA_LIBS])
683
GST_PYTHON_REQUIRED=0.10.1
684
PKG_CHECK_MODULES([PYGOBJECT], [
685
gst-python-0.10 >= $GST_PYTHON_REQUIRED
686
pygobject-2.0 >= $PYGOBJECT_REQUIRED],
690
if test "x$enable_python" = "xyes"; then
691
AC_MSG_ERROR([$PYGOBJECT_PKG_ERRORS])
692
elif test "x$enable_python" = "xautodetect"; then
694
AC_MSG_WARN([$PYGOBJECT_PKG_ERRORS])
695
AC_MSG_WARN([Disabling python support])
699
AC_SUBST([PYGOBJECT_CFLAGS])
700
AC_SUBST([PYGOBJECT_LIBS])
703
if test "x$have_python" != "xno"; then
704
AC_MSG_CHECKING([for gst-python defs])
705
GST_PYTHON_DEFSDIR=`$PKG_CONFIG --variable=defsdir gst-python-0.10`
706
AC_MSG_RESULT([$GST_PYTHON_DEFSDIR])
708
AC_MSG_CHECKING([for pygobject codegen])
709
PYGOBJECT_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.py"
710
AC_MSG_RESULT([$PYGOBJECT_CODEGEN])
712
AC_MSG_CHECKING([for pygobject h2def])
713
PYGOBJECT_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/h2def.py"
714
AC_MSG_RESULT([$PYGOBJECT_H2DEF])
716
AC_SUBST([GST_PYTHON_DEFSDIR])
717
AC_SUBST([PYGOBJECT_CODEGEN])
718
AC_SUBST([PYGOBJECT_H2DEF])
721
if test "x$have_python" != "xno" -a "x$enable_python" != "xno"; then
723
AC_DEFINE([ENABLE_PYTHON],[1],[Define to compile with python plugin support])
726
AM_CONDITIONAL([ENABLE_PYTHON],[test "x$enable_python" = "xyes"])
637
AS_HELP_STRING([--enable-python[=@<:@no/auto/yes@:>@]],[Build with python support]),
638
[enable_python=$enableval],
639
[enable_python="auto"])
641
if test "x$enable_python" = "xauto"; then
642
PKG_CHECK_EXISTS([pygobject-2.0 >= $PYGOBJECT_REQUIRED],
643
[enable_python=yes],[enable_python=no])
646
if test "x$enable_python" = "xyes"; then
647
PKG_CHECK_MODULES(PYTHON, [pygobject-2.0 >= $PYGOBJECT_REQUIRED])
649
pyoverridesdir=`$PKG_CONFIG --variable=overridesdir pygobject-2.0`
650
AC_SUBST(pyoverridesdir)
653
AM_CONDITIONAL(ENABLE_PYTHON, test x"$enable_python" = "xyes")
728
655
dnl ================================================================
893
818
plugins/iradio/Makefile
894
819
plugins/lirc/Makefile
895
820
plugins/lyrics/Makefile
896
plugins/lyrics/lyrics/Makefile
897
821
plugins/sample-python/Makefile
898
822
plugins/sample-vala/Makefile
899
823
plugins/pythonconsole/Makefile
900
824
plugins/artdisplay/Makefile
901
plugins/artdisplay/artdisplay/Makefile
902
825
plugins/magnatune/Makefile
903
plugins/magnatune/magnatune/Makefile
904
826
plugins/jamendo/Makefile
905
plugins/jamendo/jamendo/Makefile
906
827
plugins/generic-player/Makefile
907
828
plugins/rb/Makefile
908
829
plugins/power-manager/Makefile
909
plugins/status-icon/Makefile
910
plugins/visualizer/Makefile
911
830
plugins/mmkeys/Makefile
912
831
plugins/context/Makefile
913
plugins/context/context/Makefile
914
832
plugins/sendto/Makefile
915
833
plugins/replaygain/Makefile
916
plugins/replaygain/replaygain/Makefile
917
834
plugins/mpris/Makefile
918
835
plugins/dbus-media-server/Makefile
919
836
plugins/rbzeitgeist/Makefile
837
plugins/notification/Makefile
920
838
bindings/Makefile
921
839
bindings/vala/Makefile
922
840
bindings/gi/Makefile