From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 6BEF03839C79 for ; Thu, 9 Jun 2022 03:37:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6BEF03839C79 From: Sam James To: gdb-patches@sourceware.org Cc: Sam James Subject: [PATCH] gdb: don't use bashism in configure test Date: Thu, 9 Jun 2022 04:37:51 +0100 Message-Id: <20220609033751.631855-1-sam@gentoo.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 03:38:00 -0000 Results in configure output like: ``` checking for X... no /var/tmp/portage/sys-devel/gdb-12.1/work/gdb-12.1/gdb/configure: 18837: test: yes: unexpected operator checking whether to use babeltrace... auto ``` ... when /bin/sh is provided by a POSIX-compliant shell, like dash, instead of bash. Signed-off-by: Sam James --- gdb/configure | 2 +- gdb/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/configure b/gdb/configure index 1008cbef28b..1b821390801 100755 --- a/gdb/configure +++ b/gdb/configure @@ -18760,7 +18760,7 @@ else fi -if test "${enable_libbacktrace}" == "yes"; then +if test "${enable_libbacktrace}" = "yes"; then LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/" LIBBACKTRACE_LIB=../libbacktrace/.libs/libbacktrace.a diff --git a/gdb/configure.ac b/gdb/configure.ac index e3c19bc8859..bf03b875dfe 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -2113,7 +2113,7 @@ AC_ARG_ENABLE([libbacktrace], esac], enable_libbacktrace=yes) -if test "${enable_libbacktrace}" == "yes"; then +if test "${enable_libbacktrace}" = "yes"; then LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/" LIBBACKTRACE_LIB=../libbacktrace/.libs/libbacktrace.a AC_DEFINE(HAVE_LIBBACKTRACE, 1, [Define if libbacktrace is being used.]) -- 2.35.1