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])
24 [AC_HELP_STRING(--with-tunepimp,
25 [enable support for TunePimp @<:@default=check@:>@])],
26 [], with_tunepimp=check)
29 if test "x$with_tunepimp" != xno; then
30 KDE_CHECK_HEADER(tunepimp/tp_c.h, have_tunepimp=yes)
32 if test "x$with_tunepimp" != xcheck && test "x$have_tunepimp" != xyes; then
33 AC_MSG_ERROR([--with-tunepimp was given, but test for TunePimp failed])
37 if test "x$have_tunepimp" = xyes; then
38 AC_DEFINE(HAVE_TUNEPIMP, 1, [have TunePimp])
40 AC_DEFINE(HAVE_TUNEPIMP, 0, [have TunePimp])
43 AM_CONDITIONAL(link_lib_TP, test "x$have_tunepimp" = xyes)
45 AC_ARG_WITH(gstreamer,
46 [AC_HELP_STRING(--with-gstreamer,
47 [enable support for GStreamer @<:@default=check@:>@])],
48 [], with_gstreamer=check)
51 if test "x$with_gstreamer" != xno; then
52 # pkg-config seems to have a bug where it masks needed -L entries when it
53 # shouldn't, so disable that.
55 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
56 export PKG_CONFIG_ALLOW_SYSTEM_LIBS
62 PKG_CHECK_MODULES(GST, \
63 gstreamer-$GST_MAJORMINOR >= $GST_REQ \
64 gstreamer-control-$GST_MAJORMINOR >= $GST_REQ \
65 gstreamer-libs-$GST_MAJORMINOR >= $GST_REQ,
66 have_gst=yes, have_gst=no)
68 if test "x$with_gstreamer" != xcheck && test "x$have_gst" != xyes; then
69 AC_MSG_ERROR([--with-gstreamer was given, but test for GStreamer failed])
73 if test "x$have_gst" = "xno"; then
77 AC_DEFINE(HAVE_GSTREAMER, 0, [have GStreamer])
79 LDADD_GST=`$PKG_CONFIG --libs-only-l gstreamer-$GST_MAJORMINOR`
80 LDFLAGS_GST=`$PKG_CONFIG --libs-only-other gstreamer-$GST_MAJORMINOR`
82 # Append -L entries, since they are masked by --libs-only-l and
84 LIBDIRS_GST=`$PKG_CONFIG --libs-only-L gstreamer-$GST_MAJORMINOR`
85 LDADD_GST="$LDADD_GST $LIBDIRS_GST"
87 AC_MSG_NOTICE([GStreamer version >= $GST_REQ found.])
88 AC_DEFINE(HAVE_GSTREAMER, 1, [have GStreamer])
95 # Remove this after we have ported JuK to KDE 4. -- mpyne.
96 DO_NOT_COMPILE="$DO_NOT_COMPILE juk"
98 if test "x$have_taglib" != xyes || ( test "x$build_arts" = "xno" && test "x$have_gst" = "xno" && test "x$have_akode" = "xno") ; then
99 DO_NOT_COMPILE="$DO_NOT_COMPILE juk"