Can you remove --enable-octave-for-matlab from configure.ac for testing and instead automate
this, so search for matlab then octave. Thus configure will find either, but
prefer matlab. Then a user can use the standard override for choosing the interpreter for testing using:
./configure --with-matlab=octave
Request from @wsfulton: