Update of /cvsroot/boost/boost/tools/build/v2/tools
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5272/tools/build/v2/tools

Modified Files:
      Tag: RC_1_34_0
        gcc.jam 
Log Message:
(merge from head) Change to using the stable "-dumpversion" and "-dumpmachine" 
options of GCC to autoconfigure the toolset.

Index: gcc.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v
retrieving revision 1.63.2.21
retrieving revision 1.63.2.22
diff -u -d -r1.63.2.21 -r1.63.2.22
--- gcc.jam     15 Mar 2007 04:02:23 -0000      1.63.2.21
+++ gcc.jam     3 May 2007 06:09:04 -0000       1.63.2.22
@@ -81,10 +81,11 @@
         # The 'command' variable can have multiple elements. When calling
         # the SHELL builtin we need a single string.
         local command-string = $(command:J=" ") ;
-        local command-info = [ MATCH "^[^ ]+[ ]+[^ ]+[ ]+([^ 
]+)[^(]*[(]?([^)]*)"
-            : [ SHELL "$(command-string) --version" ] ] ;
-        version ?= $(command-info[1]) ;
-        switch $(command-info[2]:L)
+        local machine = [ MATCH "^([^ ]+)"
+            : [ SHELL "$(command-string) -dumpmachine" ] ] ;
+        version ?= [ MATCH "^([0-9.]+)"
+            : [ SHELL "$(command-string) -dumpversion" ] ] ;
+        switch $(machine:L)
         {
             case *mingw* : flavor ?= mingw ;
         }


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to