1From f4f19a5c03e8ae3b9cc93d24b76694f4b7b2eb76 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Thu, 12 Mar 2020 17:28:38 +0000
4Subject: [PATCH 3/7] program_prefix.patch
5
6Signed-off-by: Ross Burton <ross.burton@intel.com>
7---
8 lib/autoconf/general.m4 | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
12index 16f0d074..4c5e0b36 100644
13--- a/lib/autoconf/general.m4
14+++ b/lib/autoconf/general.m4
15@@ -2070,7 +2070,7 @@ _AC_CANONICAL_SPLIT([target])
16
17 # The aliases save the names the user supplied, while $host etc.
18 # will get canonicalized.
19-test -n "$target_alias" &&
20+test -n "$target_alias" && test "$target_alias" != "$host_alias" &&
21   test "$program_prefix$program_suffix$program_transform_name" = \
22     NONENONEs,x,x, &&
23   program_prefix=${target_alias}-[]dnl
24--
252.25.1
26
27