Jay Foad <jay.f...@gmail.com> writes:

> I've just noticed this in config/acx.m4:
>
> dnl GCC_TARGET_TOOL(PROGRAM, TARGET-VAR, HOST-VAR, IN-TREE-TOOL, LANGUAGE)
> AC_DEFUN([GCC_TARGET_TOOL],
> [AC_MSG_CHECKING(where to find the target $1)
> if test "x${build}" != "x${host}" ; then
>   ...
> else
>   ifelse([$4],,,
>   [ok=yes
>   case " ${configdirs} " in
>     *" patsubst([$4], [/.*], []) "*) ;;
>     *) ok=no ;;
>   esac
>   ifelse([$5],,,
>   [case ,${enable_languages}, in
>     *,$5,*) ;;
>     *) ok=no ;;
>   esac])
>   if test $ok = yes; then
>     # An in-tree tool is available and we can use it
>     $2='$$r/$(HOST_SUBDIR)/$4'
>     AC_MSG_RESULT(just compiled)
>   el])if expr "x[$]$2" : "x/" > /dev/null; then
>   ^^^^^^
>
> That "el])if" looks very odd. Is it meant to be like that?

If $4 is empty this expands to "if expr ...", otherwise you get "ok=yes
... if test $ok = yes; then ... elif expr ..."

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to