[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more Autotest thoughts
From: |
Stepan Kasal |
Subject: |
Re: more Autotest thoughts |
Date: |
Fri, 29 Apr 2005 11:38:04 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Ralf,
On Fri, Apr 29, 2005 at 10:15:11AM +0200, Ralf Wildenhues wrote:
> The only thing the test suite needs to know is: Can we run executables
> intended for $build at all or not? This may be found out with
> AC_RUN_IFELSE for once and all, [...]
You don't have to use AC_RUN_IFELSE. Just ``test $cross_compiling = yes''.
There are cases when cross_compiling = yes, yet you can run the executables,
for example when you have
--build=i686-pc-gnu --host=i386-pc-gnu
or even
--build=i686-pc-gnu --host=i686-gnu
But AC_RUN_IFELSE doesn't help you here, since it doesn't even try to run
the executable when cross_compiling = yes.
If you wanted to be absolutely sure, you'd have to try to run an executable
on your own. But I don't think it's worth it.
Have a nice day,
Stepan