On Thursday 20 September 2007 16:24, Bram Moolenaar wrote:
> Marc Haisenko wrote:
> 
> > Hi folks,
> > I've attached a patch against VIM 7.1 that enables cross-compiling
> > support in configure.
> 
> I suppose the configure script is stable enough now to do something like
> this.
> 
> It appears you didn't change all the AC_TRY_RUN() uses.  Does it only
> work for a limited set of features?

Yes, I haven't fixed the GTK check yet because I couldn't test it. But it's 
straight forward like the others, I'll fix it.

I haven't bothered fixing the automatic terminal library detection because all 
you have to do is supply the correct --with-tlib option.

These should be the only checks left, or have I overlooked something ?

> You should also add an explanation of how to do cross compiling to the
> INSTALL file.  A list of all the values to be set is very useful.

Alright, I'll write a detailed explanation.

> What happens if a value is guessed wrong?  It should still be possible
> to do "make test" somehow, otherwise the building result may not work
> unexpectedly.

Well, if the user "guessed" it wrong then the cross-compiled VIM might 
mis-behave or not run at all. But there's no way to prevent that... that's 
the main problem with cross-compiling and autoconf (although I think 
cross-compiling in general is now A LOT easier thanks to autoconf).

"make test" can't work because it calls the compiled vim, and you can't run 
vim cross-compiled for PowerPC on your x86, for example. One could maybe run 
the tests manually on the target device by copying the test files and running 
the test there. I can look into it and write an explanation about how to do 
that in the cross-compiling section that I'm going to add to the INSTALL 
file.

I'm not sure about when I get around to address these issues, but I think I 
can send an updated patch this weekend.

Bye,
        Marc

-- 
Marc Haisenko
Comdasys AG

Rüdesheimer Straße 7
D-80686 München
Tel:   +49 (0)89 - 548 433 321
e-mail: [EMAIL PROTECTED]
http://www.comdasys.com

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui