Blame SOURCES/0008-build-Protect-against-unsupported-CPU-types.patch

b4fabd
From 75ef0de24167daa84c11774f4bc9d1b4a9eaacfa Mon Sep 17 00:00:00 2001
b4fabd
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
b4fabd
Date: Tue, 5 Jul 2016 18:07:45 -0400
b4fabd
Subject: [PATCH 08/16] build: Protect against unsupported CPU types
b4fabd
b4fabd
---
b4fabd
 configure.ac | 6 ++++--
b4fabd
 1 file changed, 4 insertions(+), 2 deletions(-)
b4fabd
b4fabd
diff --git a/configure.ac b/configure.ac
b4fabd
index 5ec8517..1fcbd53 100644
b4fabd
--- a/configure.ac
b4fabd
+++ b/configure.ac
b4fabd
@@ -73,7 +73,8 @@ AS_CASE(["${host}"],
b4fabd
         [
b4fabd
          PLATFORM_CFLAGS="-DWEBRTC_WIN -D_WIN32 -U__STRICT_ANSI__"
b4fabd
          HAVE_WIN=1
b4fabd
-        ]
b4fabd
+        ],
b4fabd
+    [AC_MSG_ERROR([Unsupported host $host])]
b4fabd
 )
b4fabd
 AC_SUBST(PLATFORM_CFLAGS)
b4fabd
 AM_CONDITIONAL(HAVE_POSIX, [test "x${HAVE_POSIX}" = "x1"])
b4fabd
@@ -94,8 +95,9 @@ AS_CASE(["${host_cpu}"],
b4fabd
         [
b4fabd
          HAVE_ARM=1
b4fabd
          ARCH_CFLAGS="-DWEBRTC_ARCH_ARM"
b4fabd
-        ]
b4fabd
+        ],
b4fabd
     # FIXME: Add MIPS support, see webrtc/BUILD.gn for defines
b4fabd
+    [AC_MSG_ERROR([Unsupported CPU type $host_cpu])]
b4fabd
 )
b4fabd
 AM_CONDITIONAL(HAVE_X86, [test "x${HAVE_X86}" = "x1"])
b4fabd
 AM_CONDITIONAL(HAVE_ARM, [test "x${HAVE_ARM}" = "x1"])
b4fabd
-- 
b4fabd
2.14.3
b4fabd