/[MITgcm]/MITgcm/tools/genmake2
ViewVC logotype

Diff of /MITgcm/tools/genmake2

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

revision 1.62 by edhill, Thu Jan 15 19:19:59 2004 UTC revision 1.64 by edhill, Sun Jan 25 00:22:57 2004 UTC
# Line 834  fi Line 834  fi
834  if test "x$LINK" = x ; then  if test "x$LINK" = x ; then
835      LINK=$FC      LINK=$FC
836  fi  fi
 if test "x$CPP" = x ; then  
     CPP="cpp"  
 fi  
837  if test "x$MAKE" = x ; then  if test "x$MAKE" = x ; then
838      MAKE="make"      MAKE="make"
839  fi  fi
840    if test "x$CPP" = x ; then
841        CPP=cpp
842    fi
843    #EH3 === UGLY ===
844    #  The following an ugly little hack to check for $CPP in /lib/ and it
845    #  should eventually be replaced with a more general function that
846    #  searches a combo of the user's path and a list of "usual suspects"
847    #  to find the correct location for binaries such as $CPP.
848    for i in " " "/lib/" ; do
849        echo "#define A a" | $i$CPP > test_cpp 2>&1 && CPP=$i$CPP
850    done
851    #EH3 === UGLY ===
852  echo "#define A a" | $CPP > test_cpp 2>&1  echo "#define A a" | $CPP > test_cpp 2>&1
853  RETVAL=$?  RETVAL=$?
854  if test "x$RETVAL" != x0 ; then  if test "x$RETVAL" != x0 ; then
# Line 1209  if test "x$RETVAL" = x0 ; then Line 1218  if test "x$RETVAL" = x0 ; then
1218          cat make_mnc.errors 1>&2          cat make_mnc.errors 1>&2
1219          exit 1          exit 1
1220      fi      fi
1221      if test -a "x$HAVE_NETCDF" != xt ; then      if test "x$HAVE_NETCDF" != xt ; then
1222          cat <<EOF          cat <<EOF
1223    
1224  WARNING: the "mnc" package has been enabled but tests failed to  WARNING: the "mnc" package has been enabled but tests failed to

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.22