summaryrefslogtreecommitdiff
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-17 14:49:38 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-17 14:49:38 +0000
commitf6cc652487845dd77f16b1a803b6b407b76f8cd5 (patch)
treef4ad2b15cbbf7fddc3ed03ff8cf6c098da647fd9 /gcc/aclocal.m4
parentb5ea5eedffa3cb9a020d3ad56071ba502355cb62 (diff)
downloadgcc-f6cc652487845dd77f16b1a803b6b407b76f8cd5.tar.gz
2005-06-17 Paolo Bonzini <bonzini@gnu.org>
* aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the passed variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101127 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index b180c1b9513..59e5845fa13 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -710,7 +710,9 @@ AC_REQUIRE([gcc_AC_BUILD_EXEEXT])
dnl shut up useless "checking for..." messages
dnl we can still read them in config.log
exec AS_MESSAGE_FD([])>/dev/null
-AC_PATH_PROGS($1, $2, , $gcc_cv_tool_dirs)
+if test "x[$]$1" = x; then
+ AC_PATH_PROGS($1, $2, , $gcc_cv_tool_dirs)
+fi
if test "x[$]$1" = x; then
# If the loop above did not find a tool, then use whatever
# one we can find in the users's path. We are looking for a