autoconf-patches
[Top][All Lists]
Advanced

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

Re: AC_TRY_COMPILE() annoyances with 2.63b


From: Mike Frysinger
Subject: Re: AC_TRY_COMPILE() annoyances with 2.63b
Date: Tue, 14 Apr 2009 18:27:26 -0400
User-agent: KMail/1.11.1 (Linux/2.6.28; KDE/4.2.1; x86_64; ; )

On Tuesday 14 April 2009 09:41:33 Eric Blake wrote:
> According to Eric Blake on 4/9/2009 10:27 PM:
> >> I'm also leaning towards omitting the else if $1 is provably blank,
> >> otherwise providing the : in case non-blank $1 ultimately expands to a
> >> blank (unless someone finds a shell where 'if false ; then :; fi; echo
> >> $?' fails to output 0).  AS_CASE and AS_FOR are also candidates for
> >> this.  And it will be easier with m4_ifblank.  Stay tuned; I'll have a
> >> patch by the end of the week.
> >
> > Here's what I'm about to apply.
>
> Sorry for committing before the testsuite completed.  It turns out that
> this introduced a regression in 'make check TESTSUITEFLAGS="-k
> AC_RUN_IFELSE"', due to the following:
>
> $ if false; then :; else echo $?; fi
> 1
>
> But adding the : after the else, we have effectively made it impossible
> for the user to grab $? after the if condition, so I'll have to rethink
> this patch.

use "(exit $?);" instead ?
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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