It was manually added to src/tools/GNUmakefile, as in Chiensh's original post above. Without that line, the code will compile but NWChem will immediately crash with
MA fatal error: MA_sizeof: invalid datatype: 4350801871857
I will try compiling without --enable-i4 and without the environment variables you suggested to unset, and see if that helps.