[vlc-commits] configure: add HAVE_TIZEN_SDK define

Thomas Guillem git at videolan.org
Fri Oct 23 19:37:51 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Oct 15 09:58:20 2015 +0200| [e8566831c31dfeb27ccd898d2aada73f9ef987e0] | committer: Thomas Guillem

configure: add HAVE_TIZEN_SDK define

And simplify Tizen detection: don't use TIZEN_SDK_MAJOR/MINOR that are only
defined from the Tizen port build script.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8566831c31dfeb27ccd898d2aada73f9ef987e0
---

 configure.ac |   13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3971c8e..2f57256 100644
--- a/configure.ac
+++ b/configure.ac
@@ -339,15 +339,12 @@ 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
-    ],[],[
+    AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
+        [[#include <tizen.h>
+        ]],[[;]])
+    ],[
       HAVE_TIZEN="1"
+      AC_DEFINE([HAVE_TIZEN_SDK], [1], [Define to 1 if vlc is built against Tizen SDK])
       AC_MSG_RESULT([yes])
     ],[
       AC_MSG_RESULT([no])



More information about the vlc-commits mailing list