First workable version of the aac decoder
[paraslash.git] / configure.ac
index b404da7fd5f0f817001a26e7fb47c7e9029b1c23..cdef1db29c1bc2e3251d1400d8db9ceeb93b065f 100644 (file)
@@ -214,6 +214,19 @@ if test "$have_ogg" = "yes"; then
 else
        AC_MSG_WARN([no ogg vorbis support in para_server/para_filter])
 fi
+########################################################################### faad
+have_faad=yes
+AC_CHECK_HEADER(neaacdec.h, [], have_faad=no)
+AC_CHECK_LIB([faad], [NeAACDecOpen], [], have_faad=no)
+if test "$have_faad" = "yes"; then
+       AC_DEFINE(HAVE_FAAD, 1, define to 1 if you want to build the aacdec filter)
+       filter_errlist_objs="$filter_errlist_objs aacdec"
+       audiod_errlist_objs="$audiod_errlist_objs aacdec"
+       filter_ldflags="$filter_ldflags -lfaad"
+       audiod_ldflags="$audiod_ldflags -lfaad"
+else
+       AC_MSG_WARN([no aac support in para_audiod/para_filter])
+fi
 ########################################################################### mad
 have_mad="yes"
 AC_CHECK_HEADERS([mad.h], [], [
@@ -370,6 +383,7 @@ paraslash configuration:
 mysql support: $have_mysql
 ogg vorbis support: $have_ogg
 mp3dec support (libmad): $have_mad
+aac support (libfaad): $have_faad
 ortp support: $have_ortp
 unix socket credentials: $have_ucred
 supported writers for para_write: $write_writers