From: Kévin Le Gouguec Date: Mon, 20 Oct 2025 14:54:39 +0000 (+0200) Subject: Drop bashism from configure script X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82f437c6ffcfe9dc78741d44cbbda9439ea4d6f6;p=thirdparty%2Fbinutils-gdb.git Drop bashism from configure script Results of evaluating 'test "no" == yes' in non-Bash shells range from unfortunate (dash: "test: no: unexpected operator") to comically wrong (AdaCore's gsh: returns 0). --- diff --git a/gdb/configure b/gdb/configure index 04bb60f9f1f..55be281fbb4 100755 --- a/gdb/configure +++ b/gdb/configure @@ -28746,7 +28746,7 @@ else fi -if test "$enable_py_limited_api" == yes; then +if test "$enable_py_limited_api" = yes; then # The minimal Python limited API version is currently set to 3.11 for the # support of PyBuffer_FillInfo and PyBuffer_Release. # The choice of the minimal version for the Python limited API won't be frozen diff --git a/gdb/configure.ac b/gdb/configure.ac index 5e5a3a01d06..9c258eedc75 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1077,7 +1077,7 @@ AC_ARG_ENABLE([py-limited-api], [GDB_CHECK_YES_NO_VAL([$enableval], [--enable-py-limited-api])], [enable_py_limited_api=no]) -if test "$enable_py_limited_api" == yes; then +if test "$enable_py_limited_api" = yes; then # The minimal Python limited API version is currently set to 3.11 for the # support of PyBuffer_FillInfo and PyBuffer_Release. # The choice of the minimal version for the Python limited API won't be frozen