3
AM_INIT_AUTOMAKE(juk,1.0)
5
artsc_config_test_path=$prefix/bin:$exec_prefix/bin:$KDEDIR/bin:$PATH
6
AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path)
8
if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
10
ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
11
ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
12
AC_DEFINE(HAVE_ARTS, 1, [have arts support in juk])
17
AC_DEFINE(HAVE_ARTS, 0, [no arts support in juk])
23
KDE_CHECK_HEADER(tunepimp/tp_c.h,
25
AC_DEFINE(HAVE_MUSICBRAINZ, 1, [have MusicBrainz])
28
AC_DEFINE(HAVE_MUSICBRAINZ, 0, [have MusicBrainz])
29
have_musicbrainz=false
32
AM_CONDITIONAL(link_lib_MB, test x$have_musicbrainz = xtrue)
34
# pkg-config seems to have a bug where it masks needed -L entries when it
35
# shouldn't, so disable that.
37
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
38
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
44
PKG_CHECK_MODULES(GST, \
45
gstreamer-$GST_MAJORMINOR >= $GST_REQ \
46
gstreamer-control-$GST_MAJORMINOR >= $GST_REQ \
47
gstreamer-libs-$GST_MAJORMINOR >= $GST_REQ,
48
have_gst=yes, have_gst=no)
50
dnl Give error if we don't have gstreamer
51
if test "x$have_gst" = "xno"; then
55
AC_MSG_WARN([GStreamer version >= $GST_REQ required.])
56
AC_DEFINE(HAVE_GSTREAMER, 0, [have GStreamer])
58
LDADD_GST=`$PKG_CONFIG --libs-only-l gstreamer-$GST_MAJORMINOR`
59
LDFLAGS_GST=`$PKG_CONFIG --libs-only-other gstreamer-$GST_MAJORMINOR`
61
# Append -L entries, since they are masked by --libs-only-l and
63
LIBDIRS_GST=`$PKG_CONFIG --libs-only-L gstreamer-$GST_MAJORMINOR`
64
LDADD_GST="$LDADD_GST $LIBDIRS_GST"
69
AC_MSG_NOTICE([GStreamer version >= $GST_REQ found.])
70
AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer])
73
if test "x$have_taglib" = "xfalse" || ( test "x$build_arts" = "xno" && test "x$have_gst" = "xno" ) ; then
74
DO_NOT_COMPILE="$DO_NOT_COMPILE juk"