"
fi
-AC_CHECK_DECLS([OMX_VIDEO_CodingVP8],
+dnl check for supporting vp8
+AC_MSG_CHECKING([for supporting vp8])
+AC_ARG_ENABLE(vp8, AC_HELP_STRING([--enable-vp8], [OpenMAX IL has VP8 support]),
[
- AC_DEFINE(HAVE_VP8, 1, [OpenMAX IL has VP8 support])
- HAVE_VP8=yes
- ], [
- HAVE_VP8=no
- ], [[$VIDEO_HEADERS]])
+ case "${enableval}" in
+ yes) HAVE_VP8=yes ;;
+ no) HAVE_VP8=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-vp8) ;;
+ esac
+ ],
+ [HAVE_VP8=no])
AM_CONDITIONAL(HAVE_VP8, test "x$HAVE_VP8" = "xyes")
+AC_MSG_RESULT([$HAVE_VP8])
+if test "x$HAVE_VP8" = "xyes"; then
+ AC_DEFINE(HAVE_VP8, 1, [OpenMAX IL has VP8 support])
+fi
+
+dnl check for supporting vp9
+AC_MSG_CHECKING([for supporting vp9])
+AC_ARG_ENABLE(vp9, AC_HELP_STRING([--enable-vp9], [OpenMAX IL has VP9 support]),
+ [
+ case "${enableval}" in
+ yes) HAVE_VP9=yes ;;
+ no) HAVE_VP9=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-vp9) ;;
+ esac
+ ],
+ [HAVE_VP9=no])
+AM_CONDITIONAL(HAVE_VP9, test "x$HAVE_VP9" = "xyes")
+AC_MSG_RESULT([$HAVE_VP9])
+if test "x$HAVE_VP9" = "xyes"; then
+ AC_DEFINE(HAVE_VP9, 1, [OpenMAX IL has VP9 support])
+fi
-AC_CHECK_DECLS([OMX_VIDEO_CodingTheora],
+dnl check for supporting theora
+AC_MSG_CHECKING([for supporting theora])
+AC_ARG_ENABLE(theora, AC_HELP_STRING([--enable-theora], [OpenMAX IL has Theora support]),
[
- AC_DEFINE(HAVE_THEORA, 1, [OpenMAX IL has Theora support])
- HAVE_THEORA=yes
- ], [
- HAVE_THEORA=no
- ], [[$VIDEO_HEADERS]])
+ case "${enableval}" in
+ yes) HAVE_THEORA=yes ;;
+ no) HAVE_THEORA=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-theora) ;;
+ esac
+ ],
+ [HAVE_THEORA=no])
AM_CONDITIONAL(HAVE_THEORA, test "x$HAVE_THEORA" = "xyes")
+AC_MSG_RESULT([$HAVE_THEORA])
+if test "x$HAVE_THEORA" = "xyes"; then
+ AC_DEFINE(HAVE_THEORA, 1, [OpenMAX IL has Theora support])
+fi
+
+dnl check for supporting hevc
+AC_MSG_CHECKING([for supporting hevc])
+AC_ARG_ENABLE(hevc, AC_HELP_STRING([--enable-hevc], [OpenMAX IL has HEVC support]),
+ [
+ case "${enableval}" in
+ yes) HAVE_HEVC=yes ;;
+ no) HAVE_HEVC=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-hevc) ;;
+ esac
+ ],
+ [HAVE_HEVC=no])
+AM_CONDITIONAL(HAVE_HEVC, test "x$HAVE_HEVC" = "xyes")
+AC_MSG_RESULT([$HAVE_HEVC])
+if test "x$HAVE_HEVC" = "xyes"; then
+ AC_DEFINE(HAVE_HEVC, 1, [OpenMAX IL has HEVC support])
+fi
dnl Check for -Bsymbolic-functions linker flag used to avoid
dnl intra-library PLT jumps, if available.
AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
-Wwrite-strings -Wformat-nonliteral -Wformat-security -Wformat-nonliteral
- -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return
+ -Winit-self -Wmissing-include-dirs -Waddress
-Wno-multichar -Wnested-externs ])
dnl define correct level for debugging messages
common/Makefile
common/m4/Makefile
tools/Makefile
-config/Makefile
-config/bellagio/Makefile
-config/rpi/Makefile
-config/exynos/Makefile
-config/exynos64/Makefile
examples/Makefile
examples/egl/Makefile
m4/Makefile