Linux build : fix undefined pragma
[scilab.git] / scilab / m4 / intel_compiler.m4
1 dnl SCI_INTEL_COMPILER
2 dnl ------------------------------------------------------
3 dnl Set compilation options for intel C/Fortran compilers
4 dnl
5
6 AC_DEFUN([SCI_INTEL_COMPILER],
7 [
8                 case "$host" in
9                   i*86-*-linux-gnu | *-pc-linux-gnu )
10                         # -pc64 : double precision
11                         EXTRA_OPTIONS=" -pc64 -ffnalias -falias"
12                         ;;
13                 esac
14
15                 if test "$enable_debug_CXX" = yes; then
16                         COMPILER_CXXFLAGS="-g $COMPILER_CXXFLAGS $EXTRA_OPTIONS"
17                 else
18                         COMPILER_CXXFLAGS="-O -DNDEBUG $COMPILER_CXXFLAGS "
19                 fi
20
21                 if test "$enable_debug_C" = yes; then
22                         COMPILER_CFLAGS="-g $COMPILER_CFLAGS $EXTRA_OPTIONS"
23                 else
24                         COMPILER_CFLAGS="-O -DNDEBUG $COMPILER_CFLAGS "
25                 fi
26
27                 if test "$enable_debug_fortran" = yes; then
28                         COMPILER_FFLAGS="-g $COMPILER_FFLAGS $EXTRA_OPTIONS"
29                 else
30                         COMPILER_FFLAGS="-O -DNDEBUG $COMPILER_FFLAGS "
31                 fi
32
33                 # TODO : voir si obligatoire vu que c'est en partie le boulot de AC_PROG_C
34
35 ])dnl SCI_INTEL_COMPILER