From owner-svn-ports-all@FreeBSD.ORG Fri Mar 29 11:26:15 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5041234F; Fri, 29 Mar 2013 11:26:15 +0000 (UTC) (envelope-from gerald@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 42E7FB33; Fri, 29 Mar 2013 11:26:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2TBQFhv062599; Fri, 29 Mar 2013 11:26:15 GMT (envelope-from gerald@svn.freebsd.org) Received: (from gerald@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2TBQFU9062598; Fri, 29 Mar 2013 11:26:15 GMT (envelope-from gerald@svn.freebsd.org) Message-Id: <201303291126.r2TBQFU9062598@svn.freebsd.org> From: Gerald Pfeifer Date: Fri, 29 Mar 2013 11:26:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r315538 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Mar 2013 11:26:15 -0000 Author: gerald Date: Fri Mar 29 11:26:14 2013 New Revision: 315538 URL: http://svnweb.freebsd.org/changeset/ports/315538 Log: Merge two loops and initialize _GCC_FOUND${v} and check whether USE_GCC points to a valid version in parallel. Modified: head/Mk/bsd.gcc.mk Modified: head/Mk/bsd.gcc.mk ============================================================================== --- head/Mk/bsd.gcc.mk Fri Mar 29 11:25:14 2013 (r315537) +++ head/Mk/bsd.gcc.mk Fri Mar 29 11:26:14 2013 (r315538) @@ -129,20 +129,8 @@ _GCC_ORLATER:= true . endif # ${USE_GCC} == any -# Check if USE_GCC points to a valid version. -.for v in ${GCCVERSIONS} -. if ${_USE_GCC}==${_GCCVERSION_${v}_V} -_GCCVERSION_OKAY= true; -. endif -.endfor - -.if !defined(_GCCVERSION_OKAY) -IGNORE= Unknown version of GCC specified (USE_GCC=${USE_GCC}) -.endif - -# -# Initialize _GCC_FOUND${v}. -# +# Initialize _GCC_FOUND${v}. In parallel, check if USE_GCC points to a +# valid version to begin with. .for v in ${GCCVERSIONS} . if exists(${LOCALBASE}/bin/gcc${_GCCVERSION_${v}_V:S/.//}) _GCC_FOUND${v}= port @@ -151,8 +139,15 @@ _GCC_FOUND${v}= port _GCC_FOUND${v}= base . endif . endif +. if ${_USE_GCC}==${_GCCVERSION_${v}_V} +_GCCVERSION_OKAY= true +. endif .endfor +.if !defined(_GCCVERSION_OKAY) +IGNORE= Unknown version of GCC specified (USE_GCC=${USE_GCC}) +.endif + # If the GCC package defined in USE_GCC does not exist, but a later # version is allowed (for example 4.2+), see if there is a later. # First check if the base installed version is good enough, otherwise