Automated test (re #1111): modified configure.py to detect GNU host instead of always presenting vs (visual studio) as the default host

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3281 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/tests/automated/configure.py b/tests/automated/configure.py
index 2d530d0..377fed7 100755
--- a/tests/automated/configure.py
+++ b/tests/automated/configure.py
@@ -284,10 +284,15 @@
                 return 1
         
 	if not build_type:
-	    print "Enter the build type (values: vs, gnu, s60) [vs]: ",
+	    defval = "vs"
+	    if "SHELL" in os.environ:
+		shell = os.environ["SHELL"]
+		if shell.find("sh") > -1:
+		    defval = "gnu"
+	    print "Enter the build type (values: vs, gnu, s60) [%s]: " % (defval),
 	    build_type = sys.stdin.readline().replace("\n", "").replace("\r", "")
 	    if not build_type:
-		   build_type = "vs"
+		   build_type = defval
 		
 
         tpl_file = args[len(args)-1]