[Top][All Lists]

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

Re: AC_TRY_COMPILE() annoyances with 2.63b

From: Andreas Schwab
Subject: Re: AC_TRY_COMPILE() annoyances with 2.63b
Date: Tue, 07 Apr 2009 11:47:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

Eric Blake <address@hidden> writes:

> 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).

>From the autoconf manual:

     There are shells that do not reset the exit status from an `if':

          $ if (exit 42); then true; fi; echo $?

     whereas a proper shell should have printed `0'.


Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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