Changeset 1178


Ignore:
Timestamp:
Sep 12, 2008 5:31:12 AM (11 years ago)
Author:
stefan
Message:

just add -O0 or -Od to DLAMCH_FFLAGS; and let user overwrite

Location:
ThirdParty/Lapack/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/trunk/configure

    r1123 r1178  
    974974ac_cv_env_MPIF77_set=${MPIF77+set}
    975975ac_cv_env_MPIF77_value=$MPIF77
     976ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
     977ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
     978ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
     979ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
    976980ac_env_CPP_set=${CPP+set}
    977981ac_env_CPP_value=$CPP
     
    11221126  FFLAGS      Fortran 77 compiler flags
    11231127  MPIF77      Fortran MPI Compiler
     1128  DLAMCH_FFLAGS
     1129              Fortran compiler options for DLAMCH.F
    11241130  CPP         C preprocessor
    11251131  CXX         C++ compiler command
     
    32873293
    32883294# Provide some information about the compiler.
    3289 echo "$as_me:3289:" \
     3295echo "$as_me:3295:" \
    32903296     "checking for Fortran 77 compiler version" >&5
    32913297ac_compiler=`set X $ac_compile; echo $2`
     
    38033809
    38043810
    3805 #Setup special Fortran flags for dlamch.f:
    3806 #do not use optimiziation flags in default (=optimized) mode, but use debug flags in debug mode
    3807 if test "$coin_debug_compile" = true ; then
    3808   DLAMCH_FFLAGS="$DBG_FFLAGS"
    3809 else
    3810   DLAMCH_FFLAGS="$coin_add_fflags $coin_warn_fflags $ADD_FFLAGS"
     3811# Take care that optimization is diabled for DLAMCH.F
     3812
     3813if test "x$DLAMCH_FFLAGS" = x ; then
     3814  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
     3815  case $F77 in
     3816    ifort* | */ifort* | IFORT* | */IFORT* )
     3817      DLAMCH_FFLAGS="$FFLAGS -Od"
     3818      ;;
     3819    compile_f2c*)
     3820      case "$CC" in
     3821        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     3822          DLAMCH_FFLAGS="$FFLAGS -Od"
     3823        ;;
     3824        *)
     3825          DLAMCH_FFLAGS="$FFLAGS -O0"
     3826        ;;
     3827      esac
     3828      ;;
     3829    *)
     3830      DLAMCH_FFLAGS="$FFLAGS -O0"
     3831      ;;
     3832  esac
    38113833fi
    38123834
     
    54455467*-*-irix6*)
    54465468  # Find out which ABI we are using.
    5447   echo '#line 5447 "configure"' > conftest.$ac_ext
     5469  echo '#line 5469 "configure"' > conftest.$ac_ext
    54485470  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54495471  (eval $ac_compile) 2>&5
     
    78747896   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78757897   -e 's:$: $lt_compiler_flag:'`
    7876    (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
     7898   (eval echo "\"\$as_me:7898: $lt_compile\"" >&5)
    78777899   (eval "$lt_compile" 2>conftest.err)
    78787900   ac_status=$?
    78797901   cat conftest.err >&5
    7880    echo "$as_me:7880: \$? = $ac_status" >&5
     7902   echo "$as_me:7902: \$? = $ac_status" >&5
    78817903   if (exit $ac_status) && test -s "$ac_outfile"; then
    78827904     # The compiler can only warn and ignore the option if not recognized
     
    81428164   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81438165   -e 's:$: $lt_compiler_flag:'`
    8144    (eval echo "\"\$as_me:8144: $lt_compile\"" >&5)
     8166   (eval echo "\"\$as_me:8166: $lt_compile\"" >&5)
    81458167   (eval "$lt_compile" 2>conftest.err)
    81468168   ac_status=$?
    81478169   cat conftest.err >&5
    8148    echo "$as_me:8148: \$? = $ac_status" >&5
     8170   echo "$as_me:8170: \$? = $ac_status" >&5
    81498171   if (exit $ac_status) && test -s "$ac_outfile"; then
    81508172     # The compiler can only warn and ignore the option if not recognized
     
    82468268   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82478269   -e 's:$: $lt_compiler_flag:'`
    8248    (eval echo "\"\$as_me:8248: $lt_compile\"" >&5)
     8270   (eval echo "\"\$as_me:8270: $lt_compile\"" >&5)
    82498271   (eval "$lt_compile" 2>out/conftest.err)
    82508272   ac_status=$?
    82518273   cat out/conftest.err >&5
    8252    echo "$as_me:8252: \$? = $ac_status" >&5
     8274   echo "$as_me:8274: \$? = $ac_status" >&5
    82538275   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82548276   then
     
    1059110613  lt_status=$lt_dlunknown
    1059210614  cat > conftest.$ac_ext <<EOF
    10593 #line 10593 "configure"
     10615#line 10615 "configure"
    1059410616#include "confdefs.h"
    1059510617
     
    1069110713  lt_status=$lt_dlunknown
    1069210714  cat > conftest.$ac_ext <<EOF
    10693 #line 10693 "configure"
     10715#line 10715 "configure"
    1069410716#include "confdefs.h"
    1069510717
     
    1303513057   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1303613058   -e 's:$: $lt_compiler_flag:'`
    13037    (eval echo "\"\$as_me:13037: $lt_compile\"" >&5)
     13059   (eval echo "\"\$as_me:13059: $lt_compile\"" >&5)
    1303813060   (eval "$lt_compile" 2>conftest.err)
    1303913061   ac_status=$?
    1304013062   cat conftest.err >&5
    13041    echo "$as_me:13041: \$? = $ac_status" >&5
     13063   echo "$as_me:13063: \$? = $ac_status" >&5
    1304213064   if (exit $ac_status) && test -s "$ac_outfile"; then
    1304313065     # The compiler can only warn and ignore the option if not recognized
     
    1313913161   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1314013162   -e 's:$: $lt_compiler_flag:'`
    13141    (eval echo "\"\$as_me:13141: $lt_compile\"" >&5)
     13163   (eval echo "\"\$as_me:13163: $lt_compile\"" >&5)
    1314213164   (eval "$lt_compile" 2>out/conftest.err)
    1314313165   ac_status=$?
    1314413166   cat out/conftest.err >&5
    13145    echo "$as_me:13145: \$? = $ac_status" >&5
     13167   echo "$as_me:13167: \$? = $ac_status" >&5
    1314613168   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1314713169   then
     
    1470914731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1471014732   -e 's:$: $lt_compiler_flag:'`
    14711    (eval echo "\"\$as_me:14711: $lt_compile\"" >&5)
     14733   (eval echo "\"\$as_me:14733: $lt_compile\"" >&5)
    1471214734   (eval "$lt_compile" 2>conftest.err)
    1471314735   ac_status=$?
    1471414736   cat conftest.err >&5
    14715    echo "$as_me:14715: \$? = $ac_status" >&5
     14737   echo "$as_me:14737: \$? = $ac_status" >&5
    1471614738   if (exit $ac_status) && test -s "$ac_outfile"; then
    1471714739     # The compiler can only warn and ignore the option if not recognized
     
    1481314835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1481414836   -e 's:$: $lt_compiler_flag:'`
    14815    (eval echo "\"\$as_me:14815: $lt_compile\"" >&5)
     14837   (eval echo "\"\$as_me:14837: $lt_compile\"" >&5)
    1481614838   (eval "$lt_compile" 2>out/conftest.err)
    1481714839   ac_status=$?
    1481814840   cat out/conftest.err >&5
    14819    echo "$as_me:14819: \$? = $ac_status" >&5
     14841   echo "$as_me:14841: \$? = $ac_status" >&5
    1482014842   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1482114843   then
     
    1702017042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1702117043   -e 's:$: $lt_compiler_flag:'`
    17022    (eval echo "\"\$as_me:17022: $lt_compile\"" >&5)
     17044   (eval echo "\"\$as_me:17044: $lt_compile\"" >&5)
    1702317045   (eval "$lt_compile" 2>conftest.err)
    1702417046   ac_status=$?
    1702517047   cat conftest.err >&5
    17026    echo "$as_me:17026: \$? = $ac_status" >&5
     17048   echo "$as_me:17048: \$? = $ac_status" >&5
    1702717049   if (exit $ac_status) && test -s "$ac_outfile"; then
    1702817050     # The compiler can only warn and ignore the option if not recognized
     
    1728817310   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1728917311   -e 's:$: $lt_compiler_flag:'`
    17290    (eval echo "\"\$as_me:17290: $lt_compile\"" >&5)
     17312   (eval echo "\"\$as_me:17312: $lt_compile\"" >&5)
    1729117313   (eval "$lt_compile" 2>conftest.err)
    1729217314   ac_status=$?
    1729317315   cat conftest.err >&5
    17294    echo "$as_me:17294: \$? = $ac_status" >&5
     17316   echo "$as_me:17316: \$? = $ac_status" >&5
    1729517317   if (exit $ac_status) && test -s "$ac_outfile"; then
    1729617318     # The compiler can only warn and ignore the option if not recognized
     
    1739217414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1739317415   -e 's:$: $lt_compiler_flag:'`
    17394    (eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
     17416   (eval echo "\"\$as_me:17416: $lt_compile\"" >&5)
    1739517417   (eval "$lt_compile" 2>out/conftest.err)
    1739617418   ac_status=$?
    1739717419   cat out/conftest.err >&5
    17398    echo "$as_me:17398: \$? = $ac_status" >&5
     17420   echo "$as_me:17420: \$? = $ac_status" >&5
    1739917421   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1740017422   then
     
    2033420356ac_save_FFLAGS=$FFLAGS
    2033520357FFLAGS="$FFLAGS $ac_verb"
    20336 (eval echo $as_me:20336: \"$ac_link\") >&5
     20358(eval echo $as_me:20358: \"$ac_link\") >&5
    2033720359ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    2033820360echo "$ac_f77_v_output" >&5
     
    2041220434ac_save_FFLAGS=$FFLAGS
    2041320435FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    20414 (eval echo $as_me:20414: \"$ac_link\") >&5
     20436(eval echo $as_me:20436: \"$ac_link\") >&5
    2041520437ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    2041620438echo "$ac_f77_v_output" >&5
  • ThirdParty/Lapack/trunk/configure.ac

    r1123 r1178  
    5151AC_COIN_PROG_F77
    5252
    53 #Setup special Fortran flags for dlamch.f:
    54 #do not use optimiziation flags in default (=optimized) mode, but use debug flags in debug mode
    55 if test "$coin_debug_compile" = true ; then
    56   DLAMCH_FFLAGS="$DBG_FFLAGS"
    57 else
    58   DLAMCH_FFLAGS="$coin_add_fflags $coin_warn_fflags $ADD_FFLAGS"
     53# Take care that optimization is diabled for DLAMCH.F
     54AC_ARG_VAR(DLAMCH_FFLAGS,[Fortran compiler options for DLAMCH.F])
     55if test "x$DLAMCH_FFLAGS" = x ; then
     56  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
     57  case $F77 in
     58    ifort* | */ifort* | IFORT* | */IFORT* )
     59      DLAMCH_FFLAGS="$FFLAGS -Od"
     60      ;;
     61    compile_f2c*)
     62      case "$CC" in
     63        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     64          DLAMCH_FFLAGS="$FFLAGS -Od"
     65        ;;
     66        *)
     67          DLAMCH_FFLAGS="$FFLAGS -O0"
     68        ;;
     69      esac
     70      ;;
     71    *)
     72      DLAMCH_FFLAGS="$FFLAGS -O0"
     73      ;;
     74  esac
    5975fi
    6076AC_SUBST(DLAMCH_FFLAGS)
Note: See TracChangeset for help on using the changeset viewer.