0011-Let-configure-pass-on-unknown-architectures-setting-.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From 19a1ffc1450bd3ecfb7419d74c733b2e16bf47f3 Mon Sep 17 00:00:00 2001
  2. From: Balint Reczey <balint@balintreczey.hu>
  3. Date: Wed, 26 Aug 2015 08:14:41 +0200
  4. Subject: [PATCH 11/12] Let configure pass on unknown architectures setting
  5. sane defaults
  6. This helps porting Kodi to new architectures while emitting warnings about
  7. entering uncharted territory.
  8. ---
  9. configure.ac | 3 ++-
  10. m4/xbmc_arch.m4 | 6 ++++--
  11. 2 files changed, 6 insertions(+), 3 deletions(-)
  12. diff --git a/configure.ac b/configure.ac
  13. index 925466a..8369615 100644
  14. --- a/configure.ac
  15. +++ b/configure.ac
  16. @@ -658,7 +658,8 @@ case $host in
  17. USE_STATIC_FFMPEG=1
  18. ;;
  19. *)
  20. - AC_MSG_ERROR(unsupported host ($host))
  21. + ARCH=$host_cpu"-"$host_os
  22. + AC_MSG_WARN([unsupported host ($host), guessing ARCH as $ARCH.])
  23. esac
  24. AC_SUBST([ARCH])
  25. diff --git a/m4/xbmc_arch.m4 b/m4/xbmc_arch.m4
  26. index ff5dc20..dfb45fd 100644
  27. --- a/m4/xbmc_arch.m4
  28. +++ b/m4/xbmc_arch.m4
  29. @@ -27,7 +27,8 @@ case $build in
  30. AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
  31. ;;
  32. *)
  33. - AC_MSG_ERROR(unsupported native build platform: $build)
  34. + AC_MSG_WARN([unsupported native build platform: $build])
  35. + AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
  36. esac
  37. @@ -70,7 +71,8 @@ case $host in
  38. AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -DTARGET_ANDROID")
  39. ;;
  40. *)
  41. - AC_MSG_ERROR(unsupported build target: $host)
  42. + AC_MSG_WARN([unsupported native build platform: $build])
  43. + AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
  44. esac
  45. if test "$target_platform" = "target_android" ; then
  46. --
  47. 2.10.2