/[MITgcm]/MITgcm/tools/build_options/linux_ia32_g77
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia32_g77

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.13 by jmc, Thu Jan 27 14:20:06 2005 UTC revision 1.21 by edhill, Thu Feb 9 20:19:20 2006 UTC
# Line 17  if test "x$IEEE" = x ; then Line 17  if test "x$IEEE" = x ; then
17      FOPTIM='-O3 -malign-double -funroll-loops'      FOPTIM='-O3 -malign-double -funroll-loops'
18  else  else
19      #  Try to follow IEEE-754      #  Try to follow IEEE-754
20      FFLAGS='-Wimplicit -Wunused -ffloat-store -mfpmath=sse -msse -msse2'      has_sse2=f
21        grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1  &&  has_sse2=t
22    
23        # older OS on sea.mit.edu does not support sse
24        if [ `uname -n` = "sea" ]; then has_sse2=f; fi
25    
26        if test "x$has_sse2" = xt ; then
27            FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'
28        else
29            FFLAGS='-Wimplicit -Wunused -ffloat-store'
30        fi
31        #  echo 'FFLAGS="'$FFLAGS'"'
32      FOPTIM='-O0 -malign-double'      FOPTIM='-O0 -malign-double'
33  fi  fi
34    
35  if test -d /usr/include/netcdf-3 ; then  if test -d /usr/include/netcdf-3 ; then
36      INCLUDES='-I/usr/include/netcdf-3'      INCLUDES='-I/usr/include/netcdf-3'
37      LIBS='-L/usr/lib/netcdf-3'      if test -f /usr/lib/libnetcdf_g77.so ; then
38            LIBS='-lnetcdf_g77'
39        else
40            if test -d /usr/lib/netcdf-3 ; then
41                if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
42                    LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
43                else
44                    LIBS='-L/usr/lib/netcdf-3'
45                fi
46            fi
47        fi
48  elif test -d /usr/include/netcdf ; then  elif test -d /usr/include/netcdf ; then
49      INCLUDES='-I/usr/include/netcdf'      INCLUDES='-I/usr/include/netcdf'
50    elif test -d /usr/local/netcdf ; then
51        INCLUDES='-I/usr/local/netcdf/include'
52        LIBS='-L/usr/local/netcdf/lib'
53  fi  fi
54    GSLINC=''
55    GSLLIB='-lgsl -lgslcblas'
56    PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include'
57    PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi'

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.22