Re: if (...) then; AC_PROG_CC else AC_PROG_CC fi doesn't work?

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

 



* Eric Blake wrote on Wed, Oct 24, 2007 at 12:13:44AM CEST:
> You can try using AS_IF instead of raw shell 'if' for wrapping the
> AC_PROG_CC calls, since the purpose of AS_IF is to output a shell
> conditional AND correctly handle side effects of macros within that
> shell conditional.

Well, the AC_REQUIRE'd macros of the wrapped macro (AC_PROG_CC) will be
placed outside the shell conditional with AS_IF.  This may or may not
have the effect that is desired.  Especially, I don't think it will work
with AC_PROG_CC.

Also, you need to use AS_IF of Autoconf 2.61 or newer.

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux