From c97e7e4b9d6091e90616dcc4c12423713be04bcf Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 26 May 2019 16:39:58 +0100 Subject: erts: don't loop indefinitely on --enable-pgo In https://bugs.gentoo.org/686786 gcc-9.1.0 exposed a bug in erts/configure: if compiler does not support PGO flags the configure process calls 'yes = yes' (indefinite loop) instead of 'test yes = yes'. The change does not fix gcc-9.1.0 PGO detection but fixes ./configure termination. Reported-by: Dennis Schridde Bug: https://bugs.gentoo.org/686786 Signed-off-by: Sergei Trofimovich --- erts/configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erts/configure.in b/erts/configure.in index 10a006d812..3a043c940d 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -676,7 +676,7 @@ elif test "X$PROFILE_INSTR_GENERATE" = "Xtrue" -a "X$PROFILE_INSTR_USE" = "Xtrue PROFILE_COMPILER=clang AC_MSG_RESULT([yes, using -fprofile-instr-generate]) else - if $enable_pgo = yes; then + if test $enable_pgo = yes; then AC_MSG_ERROR(cannot use PGO with this compiler) else AC_MSG_RESULT([no]) -- cgit v1.2.3