Georg Baum <[EMAIL PROTECTED]> writes: > > Am Montag, 20. März 2006 16:45 schrieb Enrico Forestieri: > > Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes <at> ...> writes: > > > > > What are the preprocessor macros that say we are in cygwin -mnocygwin > > > mode? This is what we have to test for. > > > > Please, find below the results obtained with and without -mno-cygwin. > > Essentially, I think that in the first case the WIN32 thing (in all its > > variants _WIN32, __WIN32, ...) gets defined, whereas in the second case > > unix and variants gets defined (other than __CYGWIN__ and __CYGWIN32__). > > The problem is that we would need to set the USE_WINDOWS_PACKAGING macro > in configure. I believe that for now you ned to do that manually with the > --with-packaging=windows switch if you use -mnocygwin. Enrico, does that > work? If yes, it should probably be documented.
Yes, I have to specify --with-packaging=windows, otherwise I would get posix. The packaging test in configure is quite simple. I don't know if it can be changed in the following way (using some sort of pseudo-code): ... case $host in *-apple-darwin*) lyx_use_packaging=macosx ;; *-pc-mingw32*) lyx_use_packaging=windows;; *-pc-cygwin*) lyx_use_packaging=cygwin;; *) lyx_use_packaging=posix;; esac if [ $lyx_use_packaging = cygwin ]; then IF compiler defines WIN32 THEN lyx_use_packaging=windows ELSE lyx_use_packaging=posix ENDIF fi ... -- Enrico