/[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.63 by edhill, Fri Jan 23 16:12:45 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

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

  ViewVC Help
Powered by ViewVC 1.1.22