On Sat, Feb 10, 2007 at 05:08:10PM +0100, Paolo Bonzini wrote: > > >if test ${build} != ${host}; then > > some defaults > >else > > AC_PROG_CC > >fi > > > >AC_TRY_COMPILE > > > >ac_objext is set at the expansion of AC_PROG_CC and if you take the if > >branch, it never gets set. > > > >Does anyone reading this know what the right thing to do is? Is there > >anything in the autoconf documentation about not using some macros > >inside conditional statements? > > Yes, but the idea is that, if we are in a Canadian setting, we can set > all the variables that Autoconf sets, in the `then' branch. So we'd set > ac_objext=.o in the `then' branch.
This seems horribly wrong somehow. Aren't we intested in the ${build} -> ${host} compiler at this point anyway? So shouldn't we be testing it? I think the whole block can go. -- Daniel Jacobowitz CodeSourcery