msg="=> will not build oss writer"
AC_CHECK_HEADER(sys/soundcard.h, [
- fade_errlist_objs="$fade_errlist_objs oss_mix"
-
- mixers="${mixers}oss "
- default_mixer="OSS_MIX"
-
AC_CHECK_LIB(ossaudio, _oss_ioctl, [
oss_ldflags="-lossaudio"
AC_SUBST(oss_ldflags)
if test "$have_alsa" = "yes"; then
alsa_ldflags="-lasound"
AC_SUBST(alsa_ldflags)
- fade_errlist_objs="$fade_errlist_objs alsa_mix"
-
- mixers="${mixers}alsa "
- default_mixer="ALSA_MIX"
fi
CPPFLAGS="$OLD_CPPFLAGS"
build_audiod="no"
fi
########################################################################### fade
-if test -n "$mixers"; then
+if test "$have_oss" = "yes" -o "$have_alsa" = "yes"; then
build_fade="yes"
executables="$executables fade"
- fade_errlist_objs="$fade_errlist_objs fade exec string fd version ggo"
fade_cmdline_objs="fade"
+ fade_errlist_objs="fade exec string fd version ggo"
+ if test "$have_oss" = "yes"; then
+ fade_errlist_objs="$fade_errlist_objs oss_mix"
+ mixers="${mixers}oss "
+ default_mixer="OSS_MIX"
+ fi
+ if test "$have_alsa" = "yes"; then
+ fade_errlist_objs="$fade_errlist_objs alsa_mix"
+ mixers="${mixers}alsa "
+ default_mixer="ALSA_MIX"
+ fi
fade_objs="add_cmdline($fade_cmdline_objs) $fade_errlist_objs"
AC_SUBST(fade_objs, add_dot_o($fade_objs))
- AC_SUBST(fade_ldflags, $fade_ldflags)
AC_DEFINE_UNQUOTED(INIT_FADE_ERRLISTS,
objlist_to_errlist($fade_errlist_objs),
errors used by para_fade)
init functions of the supported mixers)
array="$(for i in $mixers; do printf '{.init = '$i'_mix_init},'; done)"
AC_DEFINE_UNQUOTED(MIXER_ARRAY, $array, array of supported mixers)
- mixer_summary="supported mixers:: $mixers, default: $default_mixer"
else
build_fade="no"
AC_MSG_WARN([no mixer support])
- mixer_summary="para_fade: no"
fi
########################################################################### gui
if test "$have_curses" = "yes"; then
filters: $(echo $filters)
writers: $writers
-$mixer_summary
+para_fade: $build_fade
para_server: $build_server
para_gui: $build_gui
para_fade: $build_fade