From 14e0081bef4032bb232e57e2e646021cdf1d86bd Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Wed, 3 Jun 2020 02:51:25 +0000 Subject: [PATCH] build: fix build break on non-x86 platform Arm64 and ppc64 build reports below error: "configure: error: conditional "INTEL_CET_ENABLED" was never defined." And the error should be report in all non-x86 platform. Change-Id: I4c1b2fc99091424cfd5c62cf4d6536222b66712d Signed-off-by: Jerry Yu --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8c1f042..09e491f 100644 --- a/configure.ac +++ b/configure.ac @@ -78,7 +78,7 @@ if test x"$is_x86" = x"yes"; then intel_cet_enabled=yes], [AC_MSG_RESULT([no]) intel_cet_enabled=no]) - AM_CONDITIONAL(INTEL_CET_ENABLED, [test x"$intel_cet_enabled" = x"yes"]) + # Pick an assembler yasm or nasm if test x"$AS" = x""; then @@ -261,6 +261,7 @@ else AM_CONDITIONAL(DARWIN, test "x" = "y") fi +AM_CONDITIONAL(INTEL_CET_ENABLED, [test x"$intel_cet_enabled" = x"yes"]) # Check for header files AC_CHECK_HEADERS([limits.h stdint.h stdlib.h string.h])