diff options
author | jofret | 2007-03-23 16:09:04 +0000 |
---|---|---|
committer | jofret | 2007-03-23 16:09:04 +0000 |
commit | 44836c0973bf1069981f46b877d31a80cee051a4 (patch) | |
tree | a49e5fd09e1a476d2df87884f63279f55a0ecf5b /src/m4/intel_compiler.m4 | |
parent | e6dbdbebea2d3f0da1e636ea40de35f382c71e61 (diff) | |
download | scilab2c-44836c0973bf1069981f46b877d31a80cee051a4.tar.gz scilab2c-44836c0973bf1069981f46b877d31a80cee051a4.tar.bz2 scilab2c-44836c0973bf1069981f46b877d31a80cee051a4.zip |
Autotools...
Diffstat (limited to 'src/m4/intel_compiler.m4')
-rw-r--r-- | src/m4/intel_compiler.m4 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/m4/intel_compiler.m4 b/src/m4/intel_compiler.m4 new file mode 100644 index 00000000..ca9eaa3d --- /dev/null +++ b/src/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 |