AC_SUBST(GLIB_PREFIX)
AC_SUBST(GST_PREFIX)
+dnl Check for external OpenMAX IL headers
+AC_CHECK_HEADER([OMX_Core.h], [HAVE_EXTERNAL_OMX=yes], [HAVE_EXTERNAL_OMX=no], [AC_INCLUDES_DEFAULT])
+AM_CONDITIONAL(HAVE_EXTERNAL_OMX, test "x$HAVE_EXTERNAL_OMX" = "xyes")
+
dnl Check for -Bsymbolic-functions linker flag used to avoid
dnl intra-library PLT jumps, if available.
AC_ARG_ENABLE(Bsymbolic,
AM_CONDITIONAL(USE_OMX_TARGET_GENERIC, test "x$ac_cv_omx_target" = "xgeneric")
AM_CONDITIONAL(USE_OMX_TARGET_RPI, test "x$ac_cv_omx_target" = "xrpi")
-
AC_ARG_WITH([omx-struct-packing],
AS_HELP_STRING([--with-omx-struct-packing],[Force OpenMAX struct packing, (default is none)]),
[ac_cv_omx_struct_packing="$withval"], [ac_cv_omx_struct_packing="none"])
gstomxh263enc.h \
gstomxaacenc.h
+if !HAVE_EXTERNAL_OMX
+OMX_INCLUDEPATH = -I$(abs_srcdir)/openmax
+endif
+
libgstomx_la_CFLAGS = \
-DGST_USE_UNSTABLE_API=1 \
- -I$(abs_srcdir)/openmax \
+ $(OMX_INCLUDEPATH) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS)