From 6a320264c2de3d6dd8cc1d1327b3c30df4c8cb26 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Mon, 25 May 2015 14:46:31 +0530 Subject: Original Version --- 2.3-1/m4/intel_compiler.m4 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 2.3-1/m4/intel_compiler.m4 (limited to '2.3-1/m4/intel_compiler.m4') diff --git a/2.3-1/m4/intel_compiler.m4 b/2.3-1/m4/intel_compiler.m4 new file mode 100644 index 00000000..ca9eaa3d --- /dev/null +++ b/2.3-1/m4/intel_compiler.m4 @@ -0,0 +1,36 @@ +dnl SCI_INTEL_COMPILER +dnl ------------------------------------------------------ +dnl Set compilation options for intel C/Fortran compilers +dnl + +AC_DEFUN([SCI_INTEL_COMPILER], +[ + + CFLAGS=" $CFLAGS -Dlinux -DNARROWPROTO -mp" + # -cm remove comments displays, -w90 -w95 remove warnings abort f90 f95 non standard + + FFLAGS=" $FFLAGS -cm -w90 -w95 -mp" + + + case "$host" in + i*86-*-linux-gnu | *-pc-linux-gnu ) + # -pc64 : double precision + EXTRA_OPTIONS=" -pc64 -ffnalias -falias" + ;; + esac + + if test "$enable_debug_C" = yes; then + CFLAGS="-g $CFLAGS $EXTRA_OPTIONS" + else + CFLAGS="-O -DNDEBUG $CFLAGS " + fi + + if test "$enable_debug_fortran" = yes; then + FFLAGS="-g $FFLAGS $EXTRA_OPTIONS" + else + FFLAGS="-O $FFLAGS " + fi + + # TODO : voir si obligatoire vu que c'est en partie le boulot de AC_PROG_C + +])dnl SCI_INTEL_COMPILER -- cgit