autoconf-patches
[Top][All Lists]
Advanced

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

Re: AS_EXIT


From: Pavel Roskin
Subject: Re: AS_EXIT
Date: Sun, 29 Oct 2000 20:04:21 -0500 (EST)

Hello, Akim!

I'd like to hear you since my patch conflicts with yours.

> >     * m4sh.m4 (AS_EXIT): New macro that exits in the way that
> >     $? is set correctly within the exit trap.
> >     (AS_TMPDIR): Use it.
> >     * acgeneral.m4 (AC_MSG_ERROR): Likewise,
> 
> Ok

I noticed a patch from Jim Meyering that adds curly braces in AC_MSG_WARN.
I don't like to add stuff that is not strictly necessary, but since the
issue is raised we may want to add braces to AS_EXIT:

define([AS_EXIT],
[{ (exit m4_default([$1], 1)); exit; }])

But this would mean nested braces in AC_MSG_ERROR. Not nice.

Also we could have smarter AS_EXIT that would expand to ":; exit" for 0,
"false; exit" for 1 or no argument and "(exit $1); exit" in general case.
I can do it if anybody wants.

Regards,
Pavel Roskin




reply via email to

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