On 06/08/16 18:11, Sapphire Cat wrote:
Hi all,
This is my first time working with autotools configure.in/m4 stuff *and* my
first time working with cross-compilation, and I haven't been able to get
opcache working with php7 yet. The configure step can't run any test
programs
(on the build system, because of course, they're built with the rumprun
toolchain) to determine the SHM types available.
I've located where their config.m4 file calls AC_TRY_RUN with some program
sources, which I'd bet is the problem, but I don't know how to patch around
it, nor what SHM mechanisms rumpkernel provides... as my first thought
is to
patch in "set <known good type> as the detected shm type" and skip all the
checks.
Any help?
Yes, AC_TRY_RUN doesn't work when cross-compiling.
Usually, at least from my observations, most AC_TRY_RUN's are not
necessary, but since the person writing the configuration script didn't
have to worry about not being able to run something, they didn't care.
The best option is to try to figure out a way to test which doesn't
require running anything. That way the patch can be upstreamed. If
that's not possible, just hardcode the result.
If you can link to the bit of the configure script you're having
problems with, I can give me detailed advice.