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