Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-25 Thread Peter Eisentraut
Akim Demaille writes: Currently to find out if we are under one of these environments configure runs a compilation, typically to see if __CYGWIN__ is defined etc. The reason you need to detect these can probably be generalized to either "X doesn't work" or "X must be treated differently". In

Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Akim Demaille
Currently to find out if we are under one of these environments configure runs a compilation, typically to see if __CYGWIN__ is defined etc. Can't we do this kind of checks *without* compiling? IIUC correctly, for Autoconf to be really DJGPP aware, we'd need to change things which do not

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Earnie Boyd
--- Akim Demaille [EMAIL PROTECTED] wrote: Currently to find out if we are under one of these environments configure runs a compilation, typically to see if __CYGWIN__ is defined etc. Can't we do this kind of checks *without* compiling? IIUC correctly, for Autoconf to be really DJGPP

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Eli Zaretskii
On Wed, 24 May 2000, Earnie Boyd wrote: Cygwin comes with uname which reports: CYGWIN_NT-4.0 DU147636 1.1.0(0.17/3/2) 2000-03-01 00:15:19 i686 unknown For MinGW I have a uname hack which reports: MINGW_WinNT DU147636 3 0 i686 unknown Sounds a bit dangerous to me: what if someone uses

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Alexandre Oliva
On May 24, 2000, Akim Demaille [EMAIL PROTECTED] wrote: Anybody would have solutions to provide? How about something like (totally untested): if (cd c:\\ cd .. test `pwd` = "C:\\") 2 /dev/null -- Alexandre OlivaEnjoy GuaranĂ¡, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Earnie Boyd
--- Eli Zaretskii [EMAIL PROTECTED] wrote: On Wed, 24 May 2000, Earnie Boyd wrote: Cygwin comes with uname which reports: CYGWIN_NT-4.0 DU147636 1.1.0(0.17/3/2) 2000-03-01 00:15:19 i686 unknown For MinGW I have a uname hack which reports: MINGW_WinNT DU147636 3 0 i686 unknown

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Alexandre Oliva
On May 24, 2000, Earnie Boyd [EMAIL PROTECTED] wrote: --- Alexandre Oliva [EMAIL PROTECTED] wrote: On May 24, 2000, Akim Demaille [EMAIL PROTECTED] wrote: Anybody would have solutions to provide? How about something like (totally untested): if (cd c:\\ cd .. test `pwd` = "C:\\") 2

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Eli Zaretskii
On 24 May 2000, Alexandre Oliva wrote: How about something like (totally untested): if (cd c:\\ cd .. test `pwd` = "C:\\") 2 /dev/null This should work with any DOS/Windows environment, it's not specific to any of the three (DJGPP, Mingw, or Cygwin). So it cannot reliably distinguish

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Earnie Boyd
BTW, since your supporting MinGW, the IFS value when searching the PATH needs to be ';' instead of ':'. Cheers, = --- Earnie Boyd: mailto:[EMAIL PROTECTED] __Cygwin: POSIX on Windows__ Cygwin Newbies: http://www.freeyellow.com/members5/gw32/index.html __Minimalist

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Eli Zaretskii
On Wed, 24 May 2000, Earnie Boyd wrote: Cygwin comes with uname which reports: CYGWIN_NT-4.0 DU147636 1.1.0(0.17/3/2) 2000-03-01 00:15:19 i686 unknown For MinGW I have a uname hack which reports: MINGW_WinNT DU147636 3 0 i686 unknown Sounds a bit dangerous to me: what if

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Earnie Boyd
--- Eli Zaretskii [EMAIL PROTECTED] wrote: On Wed, 24 May 2000, Earnie Boyd wrote: Cygwin comes with uname which reports: CYGWIN_NT-4.0 DU147636 1.1.0(0.17/3/2) 2000-03-01 00:15:19 i686 unknown For MinGW I have a uname hack which reports: MINGW_WinNT DU147636 3 0 i686

Re: Detecting DJGPP, Cygwin, Mingwin and EMX OS/2

2000-05-24 Thread Felix Lee
Alexandre Oliva [EMAIL PROTECTED]: if (cd c:\\ cd .. test `pwd` = "C:\\") 2 /dev/null there doesn't have to be a c:. I've seen a system where the only disk is a hard drive named a:. --