- all_errlist_objs="$all_errlist_objs oggdec_filter ogg_afh"
- AC_DEFINE(HAVE_OGGVORBIS, 1, define to 1 to turn on ogg vorbis support)
- filters="$filters oggdec"
+ # vorbis
+ if test -n "$with_vorbis_headers"; then
+ vorbis_cppflags="-I$with_vorbis_headers"
+ CPPFLAGS="$CPPFLAGS $vorbis_cppflags"
+ fi
+ if test -n "$with_vorbis_libs"; then
+ vorbis_libs="-L$with_vorbis_libs"
+ LDFLAGS="$LDFLAGS $vorbis_libs"
+ fi
+ AC_CHECK_HEADERS([vorbis/codec.h], [], [ have_vorbis="no" ])
+ AC_CHECK_LIB([vorbis], [vorbis_info_init], [], [ have_vorbis="no" ])
+
+ # speex
+ if test -n "$with_speex_headers"; then
+ speex_cppflags="-I$with_speex_headers"
+ CPPFLAGS="$CPPFLAGS $speex_cppflags"
+ fi
+ if test -n "$with_speex_libs"; then
+ speex_libs="-L$with_speex_libs"
+ LDFLAGS="$LDFLAGS $speex_libs"
+ fi
+ AC_CHECK_LIB([speex], [speex_decoder_init], [], [ have_speex="no" ])
+ AC_CHECK_HEADERS([speex/speex.h], [], [ have_speex="no" ])
+else
+ have_vorbis="no"
+ have_speex="no"
+fi
+
+msg="support in para_server/para_filter/para_afh"
+if test "$have_vorbis" = "yes" || test "$have_speex" = "yes"; then
+ AC_SUBST(ogg_cppflags)
+ ogg_libs="$ogg_libs -logg"