]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugin-ducati.git/blobdiff - configure.ac
configure: ensure HAVE_ENCODERS is placed in config.h
[glsdk/gst-plugin-ducati.git] / configure.ac
index 09f78ebdf8df737454a9411b1bde8a09f8b0ef14..7165032c23e08feb95f4ee0bdec4faa139d7ee7b 100644 (file)
@@ -73,9 +73,6 @@ AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
   AC_MSG_ERROR([You need to have pkg-config installed!])
 ])
 
   AC_MSG_ERROR([You need to have pkg-config installed!])
 ])
 
-dnl Check for tiler memmgr
-PKG_CHECK_MODULES([MEMMGR], [libtimemmgr])
-
 dnl Check for required codec-engine library..
 PKG_CHECK_MODULES(LIBDCE, [libdce >= 1.0.0])
 
 dnl Check for required codec-engine library..
 PKG_CHECK_MODULES(LIBDCE, [libdce >= 1.0.0])
 
@@ -141,6 +138,13 @@ dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
 AC_SUBST(GST_PLUGIN_LDFLAGS)
 
 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
 AC_SUBST(GST_PLUGIN_LDFLAGS)
 
+dnl encoders - they can be missing
+AC_CHECK_HEADERS([ti/sdo/codecs/h264enc/ih264enc.h],[HAVE_ENCODERS=1])
+AM_CONDITIONAL(HAVE_ENCODERS, test "$HAVE_ENCODERS" = "1")
+if test "$HAVE_ENCODERS" = "1"; then
+  AC_DEFINE(HAVE_ENCODERS, 1, [Define if encoder headers are available])
+fi
+
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_OUTPUT
 
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_OUTPUT