alsa_ldflags := @alsa_ldflags@
ao_ldflags := @ao_ldflags@
readline_ldflags := @readline_ldflags@
+samplerate_ldflags := @samplerate_ldflags@
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
endif
para_recv para_afh para_play para_server: LDFLAGS += $(id3tag_ldflags)
-para_audiod para_filter para_play: LDFLAGS += $(mad_ldflags)
para_write para_play para_audiod: LDFLAGS += $(ao_ldflags)
para_client para_audioc para_play : LDFLAGS += $(readline_ldflags)
+para_audiod \
+para_filter \
+para_play \
+: LDFLAGS += \
+ $(mad_ldflags) \
+ $(samplerate_ldflags)
+
para_write \
para_play \
para_audiod \
AC_CHECK_LIB([samplerate], [src_process], [], have_samplerate=no, [])
if test "$have_samplerate" = "yes"; then
+ AC_SUBST(samplerate_cppflags)
+ samplerate_ldflags="$samplerate_libs -lsamplerate"
+ AC_SUBST(samplerate_ldflags)
+
filter_errlist_objs="$filter_errlist_objs resample_filter check_wav"
filter_cmdline_objs="$filter_cmdline_objs resample_filter"
audiod_errlist_objs="$audiod_errlist_objs resample_filter check_wav"
audiod_cmdline_objs="$audiod_cmdline_objs resample_filter"
play_errlist_objs="$play_errlist_objs resample_filter check_wav"
play_cmdline_objs="$play_cmdline_objs resample_filter"
- filter_ldflags="$filter_ldflags $samplerate_libs -lsamplerate"
- audiod_ldflags="$audiod_ldflags $samplerate_libs -lsamplerate"
- play_ldflags="$play_ldflags $samplerate_libs -lsamplerate"
filters="$filters resample"
- AC_SUBST(samplerate_cppflags)
else
AC_MSG_WARN([no resample support in para_audiod/para_filter])
fi