Changeset 2165


Ignore:
Timestamp:
Mar 31, 2011 3:27:28 PM (9 years ago)
Author:
stefan
Message:

fix check whether C compiler is cl or icl: should check CC and do this after deciding for the compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r2155 r2165  
    708708fi
    709709
    710 # add automake conditional so we can recognize cl compiler in makefile
    711 coin_cc_is_cl=false
    712 if test x"$CXX" != x; then
    713   case "$CXX" in
    714     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    715       coin_cc_is_cl=true
    716       ;;
    717   esac
    718 fi
    719 AM_CONDITIONAL(COIN_CC_IS_CL, [test $coin_cc_is_cl = true])
    720 
    721710AC_ARG_VAR(CDEFS,[Additional -D flags to be used when compiling C code.])
    722711AC_ARG_VAR(ADD_CFLAGS,[Additional C compiler options])
     
    770759esac
    771760CFLAGS="$save_cflags"
     761
     762# add automake conditional so we can recognize cl compiler in makefile
     763coin_cc_is_cl=false
     764case "$CC" in
     765  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     766    coin_cc_is_cl=true
     767    ;;
     768esac
     769AM_CONDITIONAL(COIN_CC_IS_CL, [test $coin_cc_is_cl = true])
    772770
    773771# Check if a project specific CFLAGS variable has been set
Note: See TracChangeset for help on using the changeset viewer.