--- MITgcm/tools/genmake2 2015/07/03 21:33:55 1.272 +++ MITgcm/tools/genmake2 2016/01/07 20:21:42 1.276 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.272 2015/07/03 21:33:55 heimbach Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.276 2016/01/07 20:21:42 jmc Exp $ # $Name: $ # # Makefile generator for MITgcm UV codes @@ -1332,7 +1332,6 @@ AUTODIFF_PKG_USED=f OPENAD= -OPENAD_DIVA= AD_OPTFILE= CAT_SRC_FOR_TAF=1 TAF= @@ -1425,9 +1424,6 @@ -adoptfile=* | --adoptfile=* | -adof=* | --adof=*) AD_OPTFILE=$ac_optarg ;; - -diva | --diva) - OPENAD_DIVA="ALLOW_OPENAD_DIVA=" ;; - -pdepend | --pdepend) ac_prev=PKG_DEPEND ;; -pdepend=* | --pdepend=*) @@ -1968,26 +1964,39 @@ fi rm -f genmake_tcomp* -printf " Do we have the etime() command using $FC... " +printf " Do we have the etime() command using $FC... " cat > genmake_tcomp.$FS < genmake_tcomp.log 2>&1 RETVAL=$? if test "x$RETVAL" = x0 ; then + echo -n 'c,' + ./genmake_tcomp > genmake_tcomp.out 2>&1 + RETVAL=$? +fi +if test "x$RETVAL" = x0 ; then + echo -n 'r:' + RETVAL=`cat genmake_tcomp.out | $AWK '{print $1}'` +fi +if test "x$RETVAL" = x0 ; then HAVE_ETIME=t DEFINES="$DEFINES -DHAVE_ETIME" - echo "yes" + echo " yes" else HAVE_ETIME= - echo "no" + echo " no" fi +#mkdir chk_etime ; cp -p -f genmake_tcomp* chk_etime rm -f genmake_tcomp* printf " Can we call simple C routines (here, \"cloc()\") using $FC... " @@ -2894,7 +2903,6 @@ CC = ${CC} # Link editor LINK = ${LINK} ${LDADD} -export $OPENAD_DIVA # Defines for CPP DEFINES = ${DEFINES}