diff options
author | Sam James <sam@gentoo.org> | 2022-06-09 04:37:51 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-06-13 13:12:31 +0100 |
commit | c714aff10b1a5542dac657d86eb56140945bbd65 (patch) | |
tree | afbb831a5a0ad351889d7a0298b97a5296e70cd3 | |
parent | afd53c3c0a22528b9e56f599c4fd2cf6585ed8fa (diff) | |
download | gdb-c714aff10b1a5542dac657d86eb56140945bbd65.zip gdb-c714aff10b1a5542dac657d86eb56140945bbd65.tar.gz gdb-c714aff10b1a5542dac657d86eb56140945bbd65.tar.bz2 |
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.
-rwxr-xr-x | gdb/configure | 2 | ||||
-rw-r--r-- | gdb/configure.ac | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/configure b/gdb/configure index 1008cbe..1b82139 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 e3c19bc..bf03b87 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.]) |