AC_DEFUN(DEAL_II_DETERMINE_CC_BRAND, dnl
[
if test "$GCC" = "yes" ; then
+ dnl Verify that we indeed have a compiler that identifies
+ dnl itself as GCC
CC_VERSION_STRING=`($CC -v 2>&1) | grep "gcc version"`
if test "x$CC_VERSION_STRING" = "x" ; then
GCC=no
fi
+
+ dnl Then icc came along and started to identify itself as
+ dnl icc version 12.1.0 (gcc version 4.2.1 compatibility)
+ dnl which also doesn't help...
+ CC_VERSION_STRING=`($CC -v 2>&1) | grep "icc"`
+ if test "x$CC_VERSION_STRING" != "x" ; then
+ GCC=no
+ fi
fi
if test "$GCC" = yes ; then
#! /bin/sh
-# From configure.in Revision: 24565 .
+# From configure.in Revision: 24724 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for deal.II 7.2.pre.
#
if test "$GCC" = "yes" ; then
- CC_VERSION_STRING=`($CC -v 2>&1) | grep "gcc version"`
+ CC_VERSION_STRING=`($CC -v 2>&1) | grep "gcc version"`
if test "x$CC_VERSION_STRING" = "x" ; then
GCC=no
+ fi
+
+ CC_VERSION_STRING=`($CC -v 2>&1) | grep "icc"`
+ if test "x$CC_VERSION_STRING" != "x" ; then
+ GCC=no
fi
fi
<li> Fixed: Intel's ICC compiler identifies itself as <code>icpc version
12.1.0 (gcc version 4.2.1 compatibility)</code> which we mistook as being
-GCC version 4.2. This is now fixed.
+GCC version 4.2. The same is true for the Intel C compiler. This is now fixed.
<br>
(Wolfgang Bangerth, 2011/11/05)