diff options
author | montellese <montellese@xbmc.org> | 2015-08-03 14:07:46 +0200 |
---|---|---|
committer | montellese <montellese@kodi.tv> | 2015-08-10 18:17:44 +0200 |
commit | 6f8171f53992fc2eaabf71f6fa47ebed1da0d43d (patch) | |
tree | bc506b674ce3ebb3c29c123a3cb75aff79bb9279 /configure.ac | |
parent | fe837c4eab8f2776ac3980a243ae419fef5b1119 (diff) |
[depends] integrate crossguid as a static library
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 601e17ae13..df87c0cb80 100644 --- a/configure.ac +++ b/configure.ac @@ -605,6 +605,7 @@ case $host in build_shared_lib=yes ;; i*86*-linux-gnu*|i*86*-*-linux-uclibc*) + target_platform=target_linux ARCH="i486-linux" if test "$use_cpu" = "no" -a "$cross_compiling" = "yes"; then use_arch="x86" @@ -626,6 +627,7 @@ case $host in fi ;; x86_64-*-linux-gnu*|x86_64-*-linux-uclibc*) + target_platform=target_linux ARCH="x86_64-linux" if test "$use_cpu" = "no" -a "$cross_compiling" = "yes"; then use_arch="x86_64" @@ -634,10 +636,12 @@ case $host in USE_STATIC_FFMPEG=1 ;; i386-*-freebsd*) + target_platform=target_linux ARCH="x86-freebsd" MAKE="gmake" ;; amd64-*-freebsd*) + target_platform=target_linux ARCH="x86_64-freebsd" MAKE="gmake" ;; @@ -682,6 +686,7 @@ case $host in ARCH="powerpc64-linux" ;; arm*-*-linux-gnu*|arm*-*-linux-uclibc*) + target_platform=target_linux ARCH="arm" use_arch="arm" use_joystick=no @@ -705,6 +710,7 @@ case $host in build_shared_lib=yes ;; mips*-*-linux-gnu*) + target_platform=target_linux ARCH="mips" use_arch="mips" use_joystick=no @@ -847,6 +853,9 @@ if test "$host_vendor" = "apple" ; then LIBS="$LIBS -framework QuartzCore" LIBS="$LIBS -framework SystemConfiguration" LIBS="$LIBS -framework VideoDecodeAcceleration" + else + #arm/ios + LIBS="$LIBS -framework CoreFoundation" fi elif test "$target_platform" = "target_raspberry_pi"; then ARCH="arm" @@ -1168,6 +1177,26 @@ int main() { )]) AC_LANG_POP([C++]) +if test "${target_platform}" = "target_linux" || test "${target_platform}" = "target_raspberry_pi"; then + PKG_CHECK_MODULES([UUID], [uuid],, AC_MSG_ERROR(libuuid not found)) +fi + +AC_MSG_CHECKING("for libcrossguid") +AC_LANG_PUSH([C++]) +SAVED_LIBS="$LIBS" +LIBS="$LIBS -lcrossguid $UUID_LIBS" +AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [#include <guid.h>], + [Guid dummy])], + [AC_MSG_RESULT(yes); SAVED_LIBS="$SAVED_LIBS $LDFLAGS -lcrossguid $UUID_LIBS"], + [AC_MSG_ERROR(crossguid not found)]) +LIBS="$SAVED_LIBS" +AC_LANG_POP([C++]) +if test "${target_platform}" = "target_android"; then + CXXFLAGS="$CXXFLAGS -DGUID_ANDROID" +fi + PKG_CHECK_MODULES([YAJL], [yajl >= 2], [INCLUDES="$INCLUDES $YAJL_CFLAGS"; LIBS="$LIBS $YAJL_LIBS"; YAJL_FOUND="true"], [AC_COMPILE_IFELSE( |