automatically detect msys without generating ugly error message on non-msys system
authorRoyce Mitchell III <royce3@ev1.net>
Sat, 26 Nov 2005 03:01:18 +0000 (03:01 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Sat, 26 Nov 2005 03:01:18 +0000 (03:01 +0000)
svn path=/trunk/; revision=19602

reactos/Makefile

index ccf5598..b654ebf 100644 (file)
@@ -115,7 +115,8 @@ all: makefile.auto
 
 ifeq ($(HOST),)
 ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32)
-ifeq ($(OSTYPE),msys)
+ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
+export OSTYPE = msys
 HOST=mingw32-linux
 else
 HOST=mingw32-windows