;;
MIPSpro*)
- CFLAGSO="$CFLAGS -O2"
+ CFLAGS="$CFLAGS -O2"
CFLAGSPIC="-KPIC"
;;
dnl flags
case "$target" in
*86*)
- CFLAGSO="$CFLAGS -tpp6"
+ CFLAGS="$CFLAGS -tpp6"
;;
esac
;;
+ dnl Check whether we can switch off the annoying 1572 warning
+ dnl message about unreliable floating point comparisons
+ DEAL_II_ICC_C_WD_1572
+
*)
AC_MSG_RESULT(Unknown C compiler - using generic options)
CFLAGS="$CFLAGS -O2"
])
+dnl -------------------------------------------------------------
+dnl Some test, but for the icc C compiler.
+dnl
+dnl Usage: DEAL_II_ICC_C_WD_1572
+dnl
+dnl -------------------------------------------------------------
+AC_DEFUN(DEAL_II_ICC_C_WD_1572, dnl
+[
+ AC_MSG_CHECKING(whether -wd1572 is allowed for the C compiler)
+ AC_LANG(C)
+ CFLAGS="$CFLAGS -wd1572"
+ AC_TRY_COMPILE( [], [],
+ [
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -wd1572"
+ ],
+ [
+ AC_MSG_RESULT(no)
+ ])
+])
+
+
dnl -------------------------------------------------------------
dnl gcc2.95 doesn't have the std::iterator class, but the standard
dnl requires it, so check whether we have to work around it
fi
+
if test "$GCC" = yes ; then
CFLAGS="$CFLAGS -O3 -funroll-loops -funroll-all-loops -fstrict-aliasing"
case "$target" in
;;
MIPSpro*)
- CFLAGSO="$CFLAGS -O2"
+ CFLAGS="$CFLAGS -O2"
CFLAGSPIC="-KPIC"
;;
case "$target" in
*86*)
- CFLAGSO="$CFLAGS -tpp6"
+ CFLAGS="$CFLAGS -tpp6"
;;
esac
;;
+
+ echo "$as_me:$LINENO: checking whether -wd1572 is allowed for the C compiler" >&5
+echo $ECHO_N "checking whether -wd1572 is allowed for the C compiler... $ECHO_C" >&6
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ CFLAGS="$CFLAGS -wd1572"
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ CFLAGS="$CFLAGS -wd1572"
+
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+
+
*)
echo "$as_me:$LINENO: result: Unknown C compiler - using generic options" >&5
echo "${ECHO_T}Unknown C compiler - using generic options" >&6