[Top][All Lists]

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

Re: [gettext] changequote considered harmful

From: Stepan Kasal
Subject: Re: [gettext] changequote considered harmful
Date: Wed, 3 Aug 2005 18:35:21 +0200
User-agent: Mutt/1.4.1i


On Tue, Aug 02, 2005 at 12:58:32PM +0200, Bruno Haible wrote:
> The style that fulfills goals 1 and 2 here is like this:
>   [...
>     # Found it, now check the version.
>     ]AC_MSG_CHECKING([version of bison])[
>     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* 
> \([0-9]*\.[0-9.]*\).*$/\1/p'`
>     case $ac_prog_version in
>       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
>       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
>          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
>       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
>     esac
>     ]AC_MSG_RESULT([$ac_prog_version])[
>   ...]
> I.e. put braces around everything, but unbrace the macro invocations and
> don't put dnl comments.

I see nothing wrong with this style.  Please go ahead and use it.

I wouldn't use this pure style in _my_ macros.  Hey, I even omit the
pair of quotes for some of the arguments.

I don't think Autoconf should _require_ this style, but it could describe
it as the theoretically ideal style.  And it could point to gettext,
to show that there are monks which can live up to this ideal.   ;-)

Are you willing to submit a documentation patch?  (I hope Paul would
accept it.)

Have a nice day,

reply via email to

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