[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH v2] build/ac-macros/macosx.m4: workaround AC_RUN_IFELSE

From: Thomas Petazzoni <thomas.petazzoni_at_bootlin.com>
Date: Wed, 2 Sep 2020 11:27:59 +0200


On Wed, 2 Sep 2020 02:01:11 +0000
Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:

> I suspect this wouldn't be correct, since if it were correct, whoever
> wrote the existing AC_RUN_IFELSE() call would have used
> AC_COMPILE_IFELSE() instead.
> I assumed we'd need to add a way for cross-builds to explicitly set the
> result of this check (e.g., by a new --with-* option). However, I'm
> not an OS X user, so there may be another solution I'm unaware of.

Usually when an AC_RUN_IFELSE() test is needed, and you're
cross-compiling, the typical way to get around that is using an
autoconf cache variable, with which the user can tell the configure
script how the target is going to behave for that particular test.

You would typically enclose the AC_RUN_IFELSE() test inside an
The AC_RUN_IFELSE() test would therefore only be executed if the
autoconf cache variable isn't passed.

Best regards,


Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
Received on 2020-09-02 12:53:18 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.