On Sat, Apr 15, 2006 at 06:12:57PM +0200, Abdelrazak Younes wrote: > Enrico Forestieri a écrit : > > On Sat, Apr 15, 2006 at 05:02:09PM +0200, Abdelrazak Younes wrote: > > > >> Enrico Forestieri a écrit : > > > [...] > > Thanks a lot, Abdel. > > You're welcome. > > >>> Anyway, I don't think that it is a so great pain having to specify > >>> some variables on the configure command line. You can setup a script > >>> for that if you don't want type them everytime. > >> It's not about me Enrico, it's about the casual tester. But I agree it's > >> not a big deal. > > > > Oh... But it should be clear for the casual user that he must > > not use cygwin to build a native version of LyX because that's > > unsupported. > > I don't agree with Enrico. I think using Cygwin with Mingw is more > convenient, more correct and simpler to use, install and upgrade than > Msys. Plus the fact that you need cygwin anyway if you want to compile > from svn (Msys does not support automake-1.9).
I meant using the cygwin compiler. If you use MinGW, then there is no need for -mno-cygwin. Anyway, you should pay attention to the following code in lyxinclude.m4: ---------- excerpt from lyxinclude.m4 -------------- dnl On Win32-MSYS build hosts, the returned path is resolved to its true dnl native Win32 path name, (but with slashes, not backslashes). dnl On any other system, it is simply the result which would be obtained dnl if PATHNAME represented an existing directory, and the pwd command was dnl executed in that directory. AC_DEFUN([MSYS_AC_CANONICAL_PATH], [ac_dir="$2" ( exec 2>/dev/null; cd / && pwd -W ) | grep ':' >/dev/null && ac_pwd_w="pwd -W" || ac_pwd_w=pwd until ac_val=`exec 2>/dev/null; cd "$ac_dir" && $ac_pwd_w` do ac_dir=`AS_DIRNAME(["$ac_dir"])` done ac_dir=`echo "$ac_dir" | sed 's?^[[./]]*??'` ac_val=`echo "$ac_val" | sed 's?/*$[]??'` $1=`echo "$2" | sed "s?^[[./]]*$ac_dir/*?$ac_val/?"' s?/*$[]??'` ]) ---------------------------------------------------- as, when using cygwin, it turns a path style from C:/xxx to /cydrive/c/xxx, such that, even if you specify a windows style path you end up with a posix style one. This is fatal with a native app. The code above could be easily fixed by checking for cygwin in $host_os and simply executing a "cygpath -m" instead of that complex code. Another example of how cygwin can be more convenient than msys. But I will stop here with cygwin because it seems that I am tilting at windmills here. Good luck in convincing the crew about using cygwin, it doesn't seem to be popular, to say the least. -- Enrico