aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbsupport/common.m4
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-12-18 15:03:07 -0600
committerChristian Biesinger <cbiesinger@google.com>2019-12-19 13:30:50 -0600
commit0ad6b8ee70dd18ab1f956800ea3494ea790c8a55 (patch)
treef43745b1301338285b8cabc0e6c0ecc9462bb093 /gdb/gdbsupport/common.m4
parent1ee7b812e778e4fddcfaa5f0be023dfdfb5a4d6e (diff)
downloadgdb-0ad6b8ee70dd18ab1f956800ea3494ea790c8a55.zip
gdb-0ad6b8ee70dd18ab1f956800ea3494ea790c8a55.tar.gz
gdb-0ad6b8ee70dd18ab1f956800ea3494ea790c8a55.tar.bz2
Consistently quote variables used with "test"
This ensures that empty variables and variables with spaces are handled correctly. Code was inconsistent on whether the constant string (e.g. yes/no) should also be quoted; I tried to be consistent with surrounding code. This fixes the error Eli reported during configure with mingw (though that was not fatal). gdb/ChangeLog: 2019-12-19 Christian Biesinger <cbiesinger@google.com> * configure: Regenerate. * configure.ac: Quote variable arguments of test. * gdbsupport/common.m4: Likewise. gdb/gdbserver/ChangeLog: 2019-12-19 Christian Biesinger <cbiesinger@google.com> * configure: Regenerate. * configure.ac: Quote variable arguments of test. Change-Id: I220e78b52c7db88b9dd058eda604635b03464fac
Diffstat (limited to 'gdb/gdbsupport/common.m4')
-rw-r--r--gdb/gdbsupport/common.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbsupport/common.m4 b/gdb/gdbsupport/common.m4
index c61753f..d614a6e 100644
--- a/gdb/gdbsupport/common.m4
+++ b/gdb/gdbsupport/common.m4
@@ -62,7 +62,7 @@ AC_DEFUN([GDB_AC_COMMON], [
LIBS="$save_LIBS"
CXXFLAGS="$save_CXXFLAGS"
fi
- if test $gdb_cv_cxx_std_thread = yes; then
+ if test "$gdb_cv_cxx_std_thread" = "yes"; then
AC_DEFINE(CXX_STD_THREAD, 1,
[Define to 1 if std::thread works.])
fi
@@ -75,7 +75,7 @@ AC_CACHE_CHECK([for sigsetjmp], gdb_cv_func_sigsetjmp,
#include <setjmp.h>
], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);],
gdb_cv_func_sigsetjmp=yes, gdb_cv_func_sigsetjmp=no)])
-if test $gdb_cv_func_sigsetjmp = yes; then
+if test "$gdb_cv_func_sigsetjmp" = "yes"; then
AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ])
fi
])