aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-04-23 10:57:00 +0100
committerSam James <sam@gentoo.org>2025-04-23 10:57:00 +0100
commite32b976a152894c00a01e4e0a48cd1f1d82d1d39 (patch)
treefb0f1991f1c62529bacc6b16d2c37c68b4b59233
parentfba43b6e5dff633b515012b35409842c25a5cae9 (diff)
downloadbinutils-e32b976a152894c00a01e4e0a48cd1f1d82d1d39.zip
binutils-e32b976a152894c00a01e4e0a48cd1f1d82d1d39.tar.gz
binutils-e32b976a152894c00a01e4e0a48cd1f1d82d1d39.tar.bz2
gdb: fix bashism in configure.ac
Use '=', not '==', as configure has a #!/bin/sh shebang and must work with non-bash shells. Fixes: c4375bc51c861dfa384a01bdb2e460e115710bf9
-rwxr-xr-xgdb/configure2
-rw-r--r--gdb/configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/configure b/gdb/configure
index e8a649f..c029c30 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -28991,7 +28991,7 @@ else
fi
-if test "${enable_gdb_compile}" == yes; then
+if test "${enable_gdb_compile}" = yes; then
$as_echo "#define HAVE_COMPILE 1" >>confdefs.h
diff --git a/gdb/configure.ac b/gdb/configure.ac
index e0cc3c8..7ba799b 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1231,7 +1231,7 @@ AC_ARG_ENABLE([gdb-compile],
[GDB_CHECK_YES_NO_VAL([$enableval], [--enable-gdb-compile])],
[enable_gdb_compile=yes])
-if test "${enable_gdb_compile}" == yes; then
+if test "${enable_gdb_compile}" = yes; then
AC_DEFINE(HAVE_COMPILE, 1, [Define if compiling support to gdb compile.])
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GCC_COMPILE_OBS)"
else