--- MITgcm/tools/genmake2 2003/12/05 15:08:33 1.53 +++ MITgcm/tools/genmake2 2003/12/06 23:33:10 1.56 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.53 2003/12/05 15:08:33 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.56 2003/12/06 23:33:10 edhill Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -78,7 +78,9 @@ tmp1=`uname`"_"`uname -m` tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'` - PLATFORM=`echo $tmp3 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` + tmp1=`echo $tmp3 | sed -e 's|x86_64|amd64|'` + tmp2=`echo $tmp1 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` + PLATFORM=$tmp2 OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")` echo " The platform appears to be: $PLATFORM" @@ -1177,9 +1179,8 @@ #EH3 WARNING : This is an UGLY HACK that needs to be removed!!! case $i in aim_v23) - DEFINES="$DEFINES -DALLOW_AIM" ENABLED_PACKAGES="$ENABLED_PACKAGES -DALLOW_AIM" - echo "Warning: ALLOW_AIM is set to enable aim_v23. This is REALLY ugly Jean-Michel :-)" + echo "Warning: ALLOW_AIM is set to enable aim_v23." ;; esac #EH3 WARNING : This is an UGLY HACK that needs to be removed!!! @@ -1218,7 +1219,7 @@ names=`ls -1 "$ROOTDIR/pkg"` for i in $spaths ; do try="$i/CPP_OPTIONS.h" - if test -f $try -a -r $try -a "x$CPP_OPTIONS" == x ; then + if test -f $try -a -r $try -a "x$CPP_OPTIONS" = x ; then echo " found CPP_OPTIONS=\"$try\"" CPP_OPTIONS="$try" # New safety test: make sure packages are not mentioned in CPP_OPTIONS.h @@ -1227,7 +1228,7 @@ done fi try="$i/CPP_EEOPTIONS.h" - if test -f $try -a -r $try -a "x$CPP_EEOPTIONS" == x ; then + if test -f $try -a -r $try -a "x$CPP_EEOPTIONS" = x ; then echo " found CPP_EEOPTIONS=\"$try\"" # New safety test: make sure MPI is not determined by CPP_EEOPTIONS.h #**** not yet enabled ****