]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: fix bashism in configure.ac
authorSam James <sam@gentoo.org>
Wed, 23 Apr 2025 09:57:00 +0000 (10:57 +0100)
committerSam James <sam@gentoo.org>
Wed, 23 Apr 2025 09:57:00 +0000 (10:57 +0100)
Use '=', not '==', as configure has a #!/bin/sh shebang and must work
with non-bash shells.

Fixes: c4375bc51c861dfa384a01bdb2e460e115710bf9
gdb/configure
gdb/configure.ac

index e8a649f2ef0461cd62fd7b6c823227a5dfe9326b..c029c3031763835164fa3daa0068c9597b302fe6 100755 (executable)
@@ -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
 
index e0cc3c8a0b2f5f5d6935a0acbb70f778b01c730e..7ba799b2c4803877390090379432b2a8ae8e2567 100644 (file)
@@ -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