[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_TRY_COMPILE() annoyances with 2.63b
From: |
Eric Blake |
Subject: |
Re: AC_TRY_COMPILE() annoyances with 2.63b |
Date: |
Tue, 14 Apr 2009 19:09:47 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Mike Frysinger on 4/14/2009 4:27 PM:
>> $ 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 ?
Absolutely not - that would be a performance killer (bash is among the
shells that don't optimize away the subshell fork).
To put it in perspective, before this week, all four of these would cause
a syntax error:
AS_IF([:], [AC_REQUIRE(...)])
AS_IF([false], [], [AC_REQUIRE(...)])
AS_IF([:], [ ])
AS_IF([:], [], [ ])
whereas even with today's regression fix, three of the four now pass
(we're more lenient than we used to be, and we aren't breaking any
existing scripts that used proper quoting).
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknlM9sACgkQ84KuGfSFAYDpnQCfYQ655v7GIK8HD1vTVGrrixlo
s7cAoJBPs/H6+bqyOagFpVPVzbIxh4wD
=NnAE
-----END PGP SIGNATURE-----