Correct shell compatibility issue detected with pkgsrc.

String comparison of in a POSIX bourne shell must be done
with '=', not '=='. For example the NetBSD sh(1) does not
support it.

gdb/ChangeLog
2017-09-06  Kamil Rytarowski  <n54@gmx.com>

	* config/djgpp/djconfig.sh: Correct shell portability issue.
This commit is contained in:
Kamil Rytarowski 2017-09-06 18:48:49 +02:00
parent 8f8f815255
commit a102602bc5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-09-06 Kamil Rytarowski <n54@gmx.com>
* config/djgpp/djconfig.sh: Correct shell portability issue.
2017-09-06 Kamil Rytarowski <n54@gmx.com>
* configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.

View File

@ -92,7 +92,7 @@ TMPFILE="${TMPDIR-.}/cfg.tmp"
# We need to skip the build directory if it is a subdirectory of $srcdir,
# otherwise we will have an infinite recursion on our hands...
if test "`pwd`" == "${srcdir}" ; then
if test "`pwd`" = "${srcdir}" ; then
SKIPDIR=""
SKIPFILES=""
else