Return-Path: X-Original-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44E6490C6 for ; Fri, 22 Jun 2012 09:02:30 +0000 (UTC) Received: (qmail 81052 invoked by uid 500); 22 Jun 2012 09:02:29 -0000 Delivered-To: apmail-incubator-ooo-commits-archive@incubator.apache.org Received: (qmail 80941 invoked by uid 500); 22 Jun 2012 09:02:29 -0000 Mailing-List: contact ooo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-commits@incubator.apache.org Received: (qmail 80931 invoked by uid 99); 22 Jun 2012 09:02:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 09:02:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 09:02:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8794E2388978; Fri, 22 Jun 2012 09:02:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1352811 - /incubator/ooo/trunk/main/configure.in Date: Fri, 22 Jun 2012 09:02:07 -0000 To: ooo-commits@incubator.apache.org From: hdu@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120622090207.8794E2388978@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hdu Date: Fri Jun 22 09:02:06 2012 New Revision: 1352811 URL: http://svn.apache.org/viewvc?rev=1352811&view=rev Log: Increase configure verbosity for MSVC version detection The version string as reported by the compiler becomes important when the automatism to extract the version number failed. Dump this string into the configure log. MSVC compilers older than 2008 are no longer supported in the AOO build system. Other than the "too old" error they are no longer handled in detail. Modified: incubator/ooo/trunk/main/configure.in Modified: incubator/ooo/trunk/main/configure.in URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/configure.in?rev=1352811&r1=1352810&r2=1352811&view=diff ============================================================================== --- incubator/ooo/trunk/main/configure.in (original) +++ incubator/ooo/trunk/main/configure.in Fri Jun 22 09:02:06 2012 @@ -2028,7 +2028,8 @@ if test "$_os" = "WINNT"; then dnl Check which Microsoft C/C++ compiler is found AC_MSG_CHECKING([the Version of Microsoft C/C++ Compiler]) dnl The following find microsoft, matches nn.nn.nnnn then pulls numbers out. - CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ { + CCTXTVER=`$CC 2>&1 | head -n1` + CCNUMVER=`echo $CCTXTVER | $AWK "/Microsoft/ && /..\\...\\...../ { x = match( \\\$0, /..\\...\\...../ ) CCversion = substr( \\\$0, RSTART, RLENGTH) tokencount = split (CCversion,vertoken,\".\") @@ -2036,21 +2037,13 @@ dnl The following find microsoft, m printf (\"%04d\",vertoken[[i]] ) } }"` - AC_MSG_RESULT([found Compiler version $CCNUMVER.]) + AC_MSG_RESULT([found Compiler version $CCNUMVER in \"$CCTXTVER\"]) if test "$CCNUMVER" -ge "001500000000"; then COMEX=12 MSVSVER=2008 AC_MSG_RESULT([found .NET 2008 / VS 9.0.]) - elif test "$CCNUMVER" -ge "001400000000"; then - COMEX=11 - MSVSVER=2005 - AC_MSG_RESULT([found .NET 2005.]) - elif test "$CCNUMVER" -ge "001300102240"; then - COMEX=10 - MSVSVER=2003 - AC_MSG_RESULT([found .NET 2003.]) else - AC_MSG_ERROR([Compiler too old. Use Microsoft C/C++ .NET 2003/2005 compiler.]) + AC_MSG_ERROR([Compiler too old. Use Microsoft C/C++ .NET 2008.]) fi else AC_MSG_ERROR([Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe.])