i[MATLAB] simplified configure.ac

use AC_PATH_PROG also for mexext, and thereby remove any lines copied
from a configure.ac that is licensed under the Eclipse license.