From c714aff10b1a5542dac657d86eb56140945bbd65 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 9 Jun 2022 04:37:51 +0100 Subject: [PATCH] gdb: don't use bashism in configure test 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. --- 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.30.2