[vlc-commits] configure.ac: add HAVE_TIZEN
Thomas Guillem
git at videolan.org
Mon Sep 28 20:20:13 CEST 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Sep 28 17:29:49 2015 +0200| [ea4515b369db69f4c1a9dcb1fc259b98139b91ff] | committer: Thomas Guillem
configure.ac: add HAVE_TIZEN
The minimum SDK version supported is 2.3.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea4515b369db69f4c1a9dcb1fc259b98139b91ff
---
configure.ac | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/configure.ac b/configure.ac
index 55513bd..c507948 100644
--- a/configure.ac
+++ b/configure.ac
@@ -336,6 +336,24 @@ AS_IF([test "$SYS" = linux],[
])
AM_CONDITIONAL(HAVE_ANDROID, test "${HAVE_ANDROID}" = "1")
+dnl Tizen (minimum SDK version: 2.3)
+AS_IF([test "$SYS" = linux],[
+ AC_MSG_CHECKING([for Tizen])
+ AC_TRY_COMPILE([#include <tizen.h>
+#if !defined(TIZEN_SDK_MAJOR) && !defined(TIZEN_SDK_MINOR)
+# error Not Tizen
+#endif
+#if TIZEN_SDK_MAJOR < 2 || (TIZEN_SDK_MAJOR == 2 && TIZEN_SDK_MINOR < 3)
+# error Tizen SDK too old
+#endif
+ ],[],[
+ HAVE_TIZEN="1"
+ AC_MSG_RESULT([yes])
+ ],[
+ AC_MSG_RESULT([no])
+ ])
+])
+AM_CONDITIONAL(HAVE_TIZEN, test "${HAVE_TIZEN}" = "1")
dnl
dnl Check for the contrib directory
More information about the vlc-commits
mailing list