diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-06 20:12:53 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-06 20:12:53 +0000 |
commit | 919611cc8a75293c32bb0d04c4c0b4f900e4f03a (patch) | |
tree | 0bb8c02cd9ebcb7d0c16fb9ab660584cd3d67047 /gcc/aclocal.m4 | |
parent | 6515f9367d9de381354d856efca1e6f22af32e70 (diff) | |
download | gcc-919611cc8a75293c32bb0d04c4c0b4f900e4f03a.tar.gz |
* aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
argument is empty.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101664 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 8 |
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 |