diff --git a/configure.ac b/configure.ac index 3f90dc8722..2338798cf6 100644 --- a/configure.ac +++ b/configure.ac @@ -1250,6 +1250,10 @@ PKG_CHECK_MODULES([VLC], [libvlc >= 2.1.0],[ AM_CONDITIONAL([HAVE_VLC],[true])],[ AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_VLC],[false])]) +PKG_CHECK_MODULES([OPENCV], [opencv >= 2.4.9.1],[ + AM_CONDITIONAL([HAVE_OPENCV],[true])],[ + AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_OPENCV],[false])]) + PKG_CHECK_MODULES([MEMCACHED], [libmemcached >= 0.31],[ AM_CONDITIONAL([HAVE_MEMCACHED],[true]) MEMCACHED_LIBS="${MEMCACHED_LIBS} -lpthread" @@ -1525,6 +1529,7 @@ AC_CONFIG_FILES([Makefile src/mod/applications/mod_commands/Makefile src/mod/applications/mod_conference/Makefile src/mod/applications/mod_curl/Makefile + src/mod/applications/mod_cv/Makefile src/mod/applications/mod_db/Makefile src/mod/applications/mod_directory/Makefile src/mod/applications/mod_distributor/Makefile diff --git a/src/mod/applications/mod_cv/Makefile.am b/src/mod/applications/mod_cv/Makefile.am new file mode 100644 index 0000000000..9afcff9c39 --- /dev/null +++ b/src/mod/applications/mod_cv/Makefile.am @@ -0,0 +1,18 @@ +include $(top_srcdir)/build/modmake.rulesam +MODNAME=mod_cv + +if HAVE_OPENCV + +mod_LTLIBRARIES = mod_cv.la +mod_cv_la_SOURCES = mod_cv.cpp +mod_cv_la_CXXFLAGS = $(AM_CXXFLAGS) $(OPENCV_CFLAGS) +mod_cv_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(OPENCV_LIBS) +mod_cv_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz + +else +install: error +all: error +error: + $(error You must install libopencv-dev to build mod_cv) +endif +