autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A simplification of _AC_CANONICAL_SPLIT


From: Paul Eggert
Subject: Re: A simplification of _AC_CANONICAL_SPLIT
Date: Mon, 22 Aug 2005 15:21:36 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> +case $ac_cv_$1 in
> +  -*) false ;;
> +  *-*-*) : ;;
> +  *) false ;;
> +esac || AC_MSG_ERROR([invalid value of canonical $1])

Sorry, I still don't get it.  Why is that first "false" needed?  Why
is it important to check for an empty cpu, but not for an empty vendor
or os?

Can't it be written this way instead?

case $ac_cv_$1 in
  *-*-*) ;;
  *) AC_MSG_ERROR([invalid value of canonical $1]) ;;
esac




reply via email to

[Prev in Thread] Current Thread [Next in Thread]