From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 1/1] bonnie++: Bump to version 1.97
Date: Mon, 27 Apr 2015 12:48:01 +0200 [thread overview]
Message-ID: <20150427104801.GJ28533@pengutronix.de> (raw)
In-Reply-To: <59609335.TYtFLeAxLM@ws-stein>
Hi,
On Mon, Apr 27, 2015 at 12:32:47PM +0200, Alexander Stein wrote:
> On Monday 27 April 2015 11:26:08, Michael Olbrich wrote:
> > On Tue, Apr 21, 2015 at 11:44:41AM +0200, Alexander Stein wrote:
> > > This version needs a patch for configure as it fails when cross compiling.
> >
> > We don't patch configure scripts. You can tell AC_TRY_RUN what to do when
> > cross-compiling. Either use that to disable this (I think it's the large
> > file check, right?) or wrap the whole check in a AC_CACHE_CHECK and set the
> > correct value in the environment.
>
> I see that AC_TRY_RUN accepts 3 parameters for sucess, fail and
> cross-compile. The first two are no problem, but the third should be set
> according to PTXCONF_GLOBAL_LARGE_FILE. How can I access that environment (?)
> variable. I'm no autotools expert nor regular users of that.
That's what AC_CACHE_CHECK[1] is for. The cache-id can be set via
environment. If the variable is set, then the command isn't executed at
all:
AC_CACHE_CHECK([Large file support], bonnie_cv_sys_largefile,
AC_TRY_RUN...])
if [[ "x$bonnie_cv_sys_largefile" = "xyes" ]]; then
...
> Another method would be to use AC_SYS_LARGEFILE, but I have no idea how to
> set 'large_file' for large_file then.
[1] http://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Caching-Results.html
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2015-04-27 10:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 9:44 Alexander Stein
2015-04-27 9:26 ` Michael Olbrich
2015-04-27 10:32 ` Alexander Stein
2015-04-27 10:48 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150427104801.GJ28533@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox