diff --git a/configure.ac b/configure.ac index 0709635de8..39f8143384 100644 --- a/configure.ac +++ b/configure.ac @@ -1271,6 +1271,15 @@ PKG_CHECK_MODULES([AVFORMAT], [libavformat >= 53.21.1],[ AM_CONDITIONAL([HAVE_AVFORMAT],[true])],[ AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AVFORMAT],[false])]) +PKG_CHECK_MODULES([AVUTIL], [libavutil >= 54.3.0],[ + AM_CONDITIONAL([HAVE_AVUTIL],[true])],[ + AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AVUTIL],[false])]) + +PKG_CHECK_MODULES([AVRESAMPLE], [libavresample >= 2.1.0],[ + AM_CONDITIONAL([HAVE_AVRESAMPLE],[true])],[ + AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AVRESAMPLE],[false])]) + + PKG_CHECK_MODULES([SWSCALE], [libswscale >= 3.0.0],[ AM_CONDITIONAL([HAVE_SWSCALE],[true])],[ AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_SWSCALE],[false])]) diff --git a/src/mod/formats/mod_avformat/Makefile.am b/src/mod/formats/mod_avformat/Makefile.am index 33459ee59a..483504e01c 100644 --- a/src/mod/formats/mod_avformat/Makefile.am +++ b/src/mod/formats/mod_avformat/Makefile.am @@ -5,8 +5,8 @@ if HAVE_AVFORMAT mod_LTLIBRARIES = mod_avformat.la mod_avformat_la_SOURCES = mod_avformat.c -mod_avformat_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVCODEC_CFLAGS) $(SWSCALE_CFLAGS) -mod_avformat_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVFORMAT_LIBS) $(AVCODEC_LIBS) $(SWSCALE_LIBS) +mod_avformat_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVCODEC_CFLAGS) $(SWSCALE_CFLAGS) $(AVUTIL_CFLAGS) $(AVRESAMPLE_CFALGS) +mod_avformat_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVFORMAT_LIBS) $(AVCODEC_LIBS) $(SWSCALE_LIBS) $(AVUTIL_LIBS) $(AVRESAMPLE_LIBS) mod_avformat_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz else