gdbserver tests: only create the gdbserver_tests/gdb soft link if ./configure found gdb.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11753 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/gdbserver_tests/make_local_links b/gdbserver_tests/make_local_links
index f7291d6..7ed9a73 100755
--- a/gdbserver_tests/make_local_links
+++ b/gdbserver_tests/make_local_links
@@ -10,9 +10,9 @@
# The vgdb link is needed either for gdb tests
# or for standalone vgdb tests.
-ln -f -s $1 gdbserver_tests/gdb
-if [ -x gdbserver_tests/gdb ]
+if [ -x "$1" ]
then
+ ln -f -s "$1" gdbserver_tests/gdb
# Try to extract the gdb version.
VERSIONLINE=`gdbserver_tests/gdb --version | head -1`
VERSION=`echo $VERSIONLINE |