summaryrefslogtreecommitdiff
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-07-06 20:12:53 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-07-06 20:12:53 +0000
commitc42adccb1a99b85613384a3847264c3cc51a12d7 (patch)
tree0bb8c02cd9ebcb7d0c16fb9ab660584cd3d67047 /gcc/aclocal.m4
parent6dfb90cf55f7a7abfcbe6a4bf80b38569cc2a8b6 (diff)
aclocal.m4: Work around a bug in AC_PATH_PROGS when its last argument is empty.
* aclocal.m4: Work around a bug in AC_PATH_PROGS when its last argument is empty. * configure: Regenerate. From-SVN: r101664
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index da6e38a780b..6c12bfb458c 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -711,7 +711,13 @@ dnl shut up useless "checking for..." messages
dnl we can still read them in config.log
exec AS_MESSAGE_FD([])>/dev/null
if test "x[$]$1" = x; then
- AC_PATH_PROGS($1, $2, , $gcc_cv_tool_dirs)
+ # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
+ # is empty.
+ if test "x$gcc_cv_tool_dirs" = x; then
+ $1=
+ else
+ AC_PATH_PROGS($1, $2, , $gcc_cv_tool_dirs)
+ fi
fi
if test "x[$]$1" = x; then
# If the loop above did not find a tool, then use whatever