uname reports the following:
-r: 20.1 (0.3/1/1)
-m: i586 [NOTE: this is well handled currently - all x86 replies are
changed to i386 until specific x86 optimizations are implemented :)]
-s: CYGWIN_98-4.10
Previously, I suggested that a sed string be used to trim down the CYGWIN
line to just say CYGWIN_98 or CYGWIN_95 no matter what (which meant
removing 32 if present). This would allow for only 2 cygwin lines of
testing in the makefile. However, I believe this should be tried instead:
uname -s | sed "s/-4...//" | sed "s/_9.//" | sed "s/_NT//" | sed
"s/CYGWIN32/CYGWIN/"
On my system, this returns only "CYGWIN" - one test only :) I have tried to
be thourough for win32 systems - let me know what you think...
As for uname -r - I use:
uname -r | sed "s/(//" | sed "s/)//" | sed "s/ ...\/.\/.//"
You can set it up as: if HOST = CYGWIN, then use that string for version -
it will make the latest cygnus distribution version very path-friendly.
Again, modify as desired :)
Of course, currently I can't see all the latest great features because for
some strange reason my login to cvs (again to do a full checkout) is being
denied... but I'll try again :)
Great work guys :)
Jim