| configure.ac (595ead2b) | configure.ac (2c2ad1e6) |
|---|---|
| 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 2014 unchanged lines hidden (view full) --- 2023 CC=`cygpath -u "$CC"` 2024 # Remove /cl.exe from CC case insensitive 2025 AC_MSG_RESULT([found ($CC)]) 2026 COMPATH=`echo $CC | $SED 's@\/[[Bb]][[Ii]][[Nn]]\/[[cC]][[lL]]\.[[eE]][[xX]][[eE]]@@'` 2027 export INCLUDE=`cygpath -d "$COMPATH/Include"` 2028 dnl Check which Microsoft C/C++ compiler is found 2029 AC_MSG_CHECKING([the Version of Microsoft C/C++ Compiler]) 2030dnl The following find microsoft, matches nn.nn.nnnn then pulls numbers out. | 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 2014 unchanged lines hidden (view full) --- 2023 CC=`cygpath -u "$CC"` 2024 # Remove /cl.exe from CC case insensitive 2025 AC_MSG_RESULT([found ($CC)]) 2026 COMPATH=`echo $CC | $SED 's@\/[[Bb]][[Ii]][[Nn]]\/[[cC]][[lL]]\.[[eE]][[xX]][[eE]]@@'` 2027 export INCLUDE=`cygpath -d "$COMPATH/Include"` 2028 dnl Check which Microsoft C/C++ compiler is found 2029 AC_MSG_CHECKING([the Version of Microsoft C/C++ Compiler]) 2030dnl The following find microsoft, matches nn.nn.nnnn then pulls numbers out. |
| 2031 CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ { | 2031 CCTXTVER=`$CC 2>&1 | head -n1` 2032 CCNUMVER=`echo $CCTXTVER | $AWK "/Microsoft/ && /..\\...\\...../ { |
| 2032 x = match( \\\$0, /..\\...\\...../ ) 2033 CCversion = substr( \\\$0, RSTART, RLENGTH) 2034 tokencount = split (CCversion,vertoken,\".\") 2035 for ( i = 1 ; i <= tokencount ; i++ ) { 2036 printf (\"%04d\",vertoken[[i]] ) 2037 } 2038 }"` | 2033 x = match( \\\$0, /..\\...\\...../ ) 2034 CCversion = substr( \\\$0, RSTART, RLENGTH) 2035 tokencount = split (CCversion,vertoken,\".\") 2036 for ( i = 1 ; i <= tokencount ; i++ ) { 2037 printf (\"%04d\",vertoken[[i]] ) 2038 } 2039 }"` |
| 2039 AC_MSG_RESULT([found Compiler version $CCNUMVER.]) | 2040 AC_MSG_RESULT([found Compiler version $CCNUMVER in \"$CCTXTVER\"]) |
| 2040 if test "$CCNUMVER" -ge "001500000000"; then 2041 COMEX=12 2042 MSVSVER=2008 2043 AC_MSG_RESULT([found .NET 2008 / VS 9.0.]) | 2041 if test "$CCNUMVER" -ge "001500000000"; then 2042 COMEX=12 2043 MSVSVER=2008 2044 AC_MSG_RESULT([found .NET 2008 / VS 9.0.]) |
| 2044 elif test "$CCNUMVER" -ge "001400000000"; then 2045 COMEX=11 2046 MSVSVER=2005 2047 AC_MSG_RESULT([found .NET 2005.]) 2048 elif test "$CCNUMVER" -ge "001300102240"; then 2049 COMEX=10 2050 MSVSVER=2003 2051 AC_MSG_RESULT([found .NET 2003.]) | |
| 2052 else | 2045 else |
| 2053 AC_MSG_ERROR([Compiler too old. Use Microsoft C/C++ .NET 2003/2005 compiler.]) | 2046 AC_MSG_ERROR([Compiler too old. Use Microsoft C/C++ .NET 2008.]) |
| 2054 fi 2055 else 2056 AC_MSG_ERROR([Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe.]) 2057 fi 2058 else 2059 AC_MSG_CHECKING([the Mingwin32 C++ Compiler]) 2060 if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then 2061 AC_MSG_RESULT([found.]) --- 5354 unchanged lines hidden --- | 2047 fi 2048 else 2049 AC_MSG_ERROR([Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe.]) 2050 fi 2051 else 2052 AC_MSG_CHECKING([the Mingwin32 C++ Compiler]) 2053 if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then 2054 AC_MSG_RESULT([found.]) --- 5354 unchanged lines hidden --- |