openssl_ldflags="$openssl_libs -lssl -lcrypto"
AC_SUBST(openssl_ldflags)
- server_errlist_objs="$server_errlist_objs crypt"
client_errlist_objs="$client_errlist_objs crypt"
audiod_errlist_objs="$audiod_errlist_objs crypt"
gcrypt_ldflags="$gcrypt_libs -lgcrypt"
AC_SUBST(gcrypt_ldflags)
- server_errlist_objs="$server_errlist_objs gcrypt"
client_errlist_objs="$client_errlist_objs gcrypt"
audiod_errlist_objs="$audiod_errlist_objs gcrypt"
else
ogg_ldflags="-Wl,-bind_at_load $ogg_ldflags"
fi
AC_SUBST(ogg_ldflags)
- server_errlist_objs="$server_errlist_objs ogg_afh_common"
fi
if test "$have_vorbis" = "yes"; then
AC_DEFINE(HAVE_OGGVORBIS, 1, define to 1 to turn on ogg/vorbis support)
vorbis_ldflags="$vorbis_libs -lvorbis -lvorbisfile"
AC_SUBST(vorbis_ldflags)
- server_errlist_objs="$server_errlist_objs ogg_afh"
audiod_errlist_objs="$audiod_errlist_objs oggdec_filter"
audiod_audio_formats="$audiod_audio_formats ogg"
AC_SUBST(speex_ldflags)
- server_errlist_objs="$server_errlist_objs spx_afh spx_common"
audiod_errlist_objs="$audiod_errlist_objs spxdec_filter spx_common"
audiod_audio_formats="$audiod_audio_formats spx"
AC_SUBST(opus_ldflags)
- server_errlist_objs="$server_errlist_objs opus_afh opus_common"
audiod_errlist_objs="$audiod_errlist_objs opusdec_filter opus_common"
audiod_audio_formats="$audiod_audio_formats opus"
AC_SUBST(faad_ldflags)
audiod_errlist_objs="$audiod_errlist_objs aacdec_filter aac_common"
- server_errlist_objs="$server_errlist_objs aac_afh aac_common"
audiod_audio_formats="$audiod_audio_formats aac"
audio_format_handlers="$audio_format_handlers aac"
AC_SUBST(flac_ldflags)
audiod_errlist_objs="$audiod_errlist_objs flacdec_filter"
- server_errlist_objs="$server_errlist_objs flac_afh"
audio_format_handlers="$audio_format_handlers flac"
audiod_audio_formats="$audiod_audio_formats flac"
else
build_server="yes"
executables="$executables server"
server_cmdline_objs="server"
- server_errlist_objs="$server_errlist_objs
+ server_errlist_objs="
server
afh_common
mp3_afh
version
ggo
"
+ if test "$have_openssl" = "yes"; then
+ server_errlist_objs="$server_errlist_objs crypt"
+ fi
+ if test "$have_gcrypt" = "yes"; then
+ server_errlist_objs="$server_errlist_objs gcrypt"
+ fi
+ if test "$have_vorbis" = "yes" || \
+ test "$have_speex" = "yes" || \
+ test "$have_opus" = "yes"; then
+ server_errlist_objs="$server_errlist_objs ogg_afh_common"
+ fi
+ if test "$have_vorbis" = "yes"; then
+ server_errlist_objs="$server_errlist_objs ogg_afh"
+ fi
+ if test "$have_speex" = "yes"; then
+ server_errlist_objs="$server_errlist_objs spx_afh spx_common"
+ fi
+ if test "$have_opus" = "yes"; then
+ server_errlist_objs="$server_errlist_objs opus_afh opus_common"
+ fi
+ if test "$have_faad" = "yes"; then
+ server_errlist_objs="$server_errlist_objs aac_afh aac_common"
+ fi
+ if test "$have_flac" = "yes"; then
+ server_errlist_objs="$server_errlist_objs flac_afh"
+ fi
+ server_objs="add_cmdline($server_cmdline_objs) $server_errlist_objs"
+ AC_SUBST(server_objs, add_dot_o($server_objs))
+ AC_DEFINE_UNQUOTED(INIT_SERVER_ERRLISTS,
+ objlist_to_errlist($server_errlist_objs), errors used by para_server)
else
build_server="no"
fi
filter_objs="add_cmdline($filter_cmdline_objs) $filter_errlist_objs"
audiod_objs="add_cmdline($audiod_cmdline_objs) $audiod_errlist_objs"
-server_objs="add_cmdline($server_cmdline_objs) $server_errlist_objs"
client_objs="add_cmdline($client_cmdline_objs) $client_errlist_objs"
AC_SUBST(filter_objs, add_dot_o($filter_objs))
AC_DEFINE_UNQUOTED(INIT_AUDIOD_ERRLISTS, objlist_to_errlist($audiod_errlist_objs),
errors used by para_audiod)
-AC_SUBST(server_objs, add_dot_o($server_objs))
-AC_SUBST(server_ldflags, $server_ldflags)
-AC_DEFINE_UNQUOTED(INIT_SERVER_ERRLISTS,
- objlist_to_errlist($server_errlist_objs), errors used by para_server)
-
AC_SUBST(client_objs, add_dot_o($client_objs))
AC_SUBST(client_ldflags, $client_ldflags)
AC_DEFINE_UNQUOTED(INIT_CLIENT_ERRLISTS,