autoconf-patches
[Top][All Lists]
Advanced

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

Re: more efficient AS_EXIT


From: Ralf Wildenhues
Subject: Re: more efficient AS_EXIT
Date: Sat, 22 Nov 2008 14:13:49 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Eric,

* Eric Blake wrote on Fri, Nov 21, 2008 at 07:20:06PM CET:
> --- a/bin/autoconf.as
> +++ b/bin/autoconf.as
> @@ -79,10 +79,9 @@ help="\
>  Try \`$as_me --help' for more information."
>  
>  exit_missing_arg='
> -  AS_ECHO(["$as_me: option \`$[1]'\'' requires an argument"]) >&2
> -  AS_ECHO(["$help"]) >&2
> -  AS_EXIT([1])
> -' # restore font-lock: "
> +  m4_bpatsubst([AS_ERROR([option `$[1]' requires an argument$as_nl$help])],
> +    ['], ['\\''])'

Why is that m4_bpatsubst needed here ...

> +# restore font-lock: '

> @@ -154,9 +153,7 @@ while test $# -gt 0 ; do
>         break ;;
>      -* )
>         exec >&2
> -       AS_ECHO(["$as_me: invalid option $[1]"])
> -       AS_ECHO(["$help"])
> -       AS_EXIT([1]) ;;
> +       AS_ERROR([invalid option `$[1]'$as_nl$help]) ;; #`

... but not here?
Sorry for not testing.

Thanks,
Ralf




reply via email to

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