The flag --enable-mpi-cxx has been removed although it has been deprecated since version 2.X
--enable-mpi-cxx