Changeset 473


Ignore:
Timestamp:
Aug 22, 2005 1:37:38 PM (14 years ago)
Author:
andreasw
Message:

use special search order for compilers on Cygwin

Location:
branches/dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/configure

    r472 r473  
    14931493
    14941494SAVE_CXXFLAGS="$CXXFLAGS"
     1495case $build in
     1496  *-cygwin) comps="g++" ;;
     1497  *)        comps="xlC aCC CC g++ c++ icpc" ;;
     1498esac
    14951499ac_ext=cc
    14961500ac_cpp='$CXXCPP $CPPFLAGS'
     
    14991503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    15001504if test -n "$ac_tool_prefix"; then
    1501   for ac_prog in $CCC cl xlC aCC CC g++ icpc
     1505  for ac_prog in $CCC $comps
    15021506  do
    15031507    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    15411545if test -z "$CXX"; then
    15421546  ac_ct_CXX=$CXX
    1543   for ac_prog in $CCC cl xlC aCC CC g++ icpc
     1547  for ac_prog in $CCC $comps
    15441548do
    15451549  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    27882792
    27892793SAVE_CFLAGS="$CFLAGS"
     2794case $build in
     2795  *-cygwin) comps="gcc" ;;
     2796  *)        comps="xlc cc gcc icc" ;;
     2797esac
    27902798ac_ext=c
    27912799ac_cpp='$CPP $CPPFLAGS'
     
    27942802ac_compiler_gnu=$ac_cv_c_compiler_gnu
    27952803if test -n "$ac_tool_prefix"; then
    2796   for ac_prog in cl pgcc xlc cc gcc icc
     2804  for ac_prog in $comps
    27972805  do
    27982806    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    28362844if test -z "$CC"; then
    28372845  ac_ct_CC=$CC
    2838   for ac_prog in cl pgcc xlc cc gcc icc
     2846  for ac_prog in $comps
    28392847do
    28402848  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    39573965
    39583966SAVE_FFLAGS="$FFLAGS"
     3967case $build in
     3968  *-cygwin) comps="gfortran g77" ;;
     3969  *)        comps="xlf fort77 gfortran f77 g77 ifort ifc" ;;
     3970esac
    39593971ac_ext=f
    39603972ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     
    39623974ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    39633975if test -n "$ac_tool_prefix"; then
    3964   for ac_prog in ifort pgf77 xlf fort77 f77 g77 df ifc
     3976  for ac_prog in $comps
    39653977  do
    39663978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    40044016if test -z "$F77"; then
    40054017  ac_ct_F77=$F77
    4006   for ac_prog in ifort pgf77 xlf fort77 f77 g77 df ifc
     4018  for ac_prog in $comps
    40074019do
    40084020  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    40494061
    40504062# Provide some information about the compiler.
    4051 echo "$as_me:4051:" \
     4063echo "$as_me:4063:" \
    40524064     "checking for Fortran 77 compiler version" >&5
    40534065ac_compiler=`set X $ac_compile; echo $2`
     
    47964808ac_save_FFLAGS=$FFLAGS
    47974809FFLAGS="$FFLAGS $ac_verb"
    4798 (eval echo $as_me:4798: \"$ac_link\") >&5
     4810(eval echo $as_me:4810: \"$ac_link\") >&5
    47994811ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    48004812echo "$ac_f77_v_output" >&5
     
    48744886ac_save_FFLAGS=$FFLAGS
    48754887FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    4876 (eval echo $as_me:4876: \"$ac_link\") >&5
     4888(eval echo $as_me:4888: \"$ac_link\") >&5
    48774889ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    48784890echo "$ac_f77_v_output" >&5
  • branches/dev/configure.ac

    r472 r473  
    4747AC_LANG_PUSH(C++)
    4848SAVE_CXXFLAGS="$CXXFLAGS"
    49 AC_PROG_CXX([cl xlC aCC CC g++ icpc])
     49case $build in
     50  *-cygwin) comps="g++" ;;
     51  *)        comps="xlC aCC CC g++ c++ icpc" ;;
     52esac
     53AC_PROG_CXX([$comps])
    5054CXXFLAGS="$SAVE_CXXFLAGS"
    5155
     
    6165      icpc | */icpc) ;;
    6266      *)
     67# ToDo decide aboiut unroll-loops
    6368        opt_cxxflags="-O3 -funroll-loops"
    6469        case $build in
     
    309314AC_LANG_PUSH(C)
    310315SAVE_CFLAGS="$CFLAGS"
    311 AC_PROG_CC([cl pgcc xlc cc gcc icc])
     316case $build in
     317  *-cygwin) comps="gcc" ;;
     318  *)        comps="xlc cc gcc icc" ;;
     319esac
     320AC_PROG_CC([$comps])
    312321CFLAGS="$SAVE_CFLAGS"
    313322
     
    495504AC_LANG_PUSH(Fortran 77)
    496505SAVE_FFLAGS="$FFLAGS"
    497 AC_PROG_F77(ifort pgf77 xlf fort77 f77 g77 df ifc)
     506case $build in
     507  *-cygwin) comps="gfortran g77" ;;
     508  *)        comps="xlf fort77 gfortran f77 g77 ifort ifc" ;;
     509esac
     510AC_PROG_F77($comps)
    498511FFLAGS="$SAVE_FFLAGS"
    499512
Note: See TracChangeset for help on using the changeset viewer.