]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the right flag for icc10
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 30 Jun 2007 05:11:16 +0000 (05:11 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 30 Jun 2007 05:11:16 +0000 (05:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@14834 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index 8739cb90e5cdd537b8c18044c659a99e4fd4c2af..37ad5c9d44dc4e80fb6a004bc364197199648104 100644 (file)
@@ -634,10 +634,18 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
           CXXFLAGSO="$CXXFLAGSO -w0 -wd424 -wd11"
 
           dnl To reduce output, use -opt_report_levelmin where possible,
-          dnl i.e. post icc5
-          if test "x$GXX_VERSION" != "xintel_icc5" ; then
-            CXXFLAGSO="$CXXFLAGSO -opt_report_levelmin"
-          fi
+          dnl i.e. post icc5. from icc10 onwards, this flag is called 
+         dnl -opt-report
+         case "$GXX_VERSION" in
+           intel_icc5)
+              ;;
+           intel_icc[6789])
+              CXXFLAGSO="$CXXFLAGSO -opt_report_levelmin"
+              ;;
+           *)
+              CXXFLAGSO="$CXXFLAGSO -opt-report 0"
+             ;;
+          esac
 
          dnl Some versions of icc on some platforms issue a lot of warnings
          dnl about the unreliability of floating point comparisons. Check 
index 8cef10269d947a5e254bd7f3828f78ed4f76770d..f933bad88b89431f2336c144ba35823e1b1473d8 100755 (executable)
@@ -4206,9 +4206,16 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                                                                                                                                                                            CXXFLAGSG="$CXXFLAGSG -w1 -wd175 -wd525 -wd327 -wd424 -wd11 -wd734 -wd858"
           CXXFLAGSO="$CXXFLAGSO -w0 -wd424 -wd11"
 
-                              if test "x$GXX_VERSION" != "xintel_icc5" ; then
-            CXXFLAGSO="$CXXFLAGSO -opt_report_levelmin"
-          fi
+                                 case "$GXX_VERSION" in
+           intel_icc5)
+              ;;
+           intel_icc6789)
+              CXXFLAGSO="$CXXFLAGSO -opt_report_levelmin"
+              ;;
+           *)
+              CXXFLAGSO="$CXXFLAGSO -opt-report 0"
+             ;;
+          esac
 
 
   { echo "$as_me:$LINENO: checking whether -wd1572 is allowed" >&5

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.