X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Facinclude.m4;h=3893b458a5a6ff36a18bc14bae79b3da3b79bf03;hb=c049cb4d7b6101b7701a5908703cec41af16719e;hp=763178463a79f16521ecbeec8f9e17da2506b8fa;hpb=a7947c16ee5fab420a67c32b699cc5338e14746d;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4 index 763178463a7..3893b458a5a 100644 --- a/gcc/acinclude.m4 +++ b/gcc/acinclude.m4 @@ -561,6 +561,15 @@ 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 + +# First try the environment variables. Handle full paths or basenames. +if test "x[$]$1" = x && test -n "[$]$4"; then + AC_PATH_PROG($1, [$]$4) +fi +if test "x[$]$1" = x && test -n "[$]$5" && test x$host = x$target; then + AC_PATH_PROG($1, [$]$5) +fi + if test "x[$]$1" = x; then # The AC_PATH_PROGS macro doesn't work properly when its 4th argument # is empty.