Octave: use correct mkoctfile executable

Allow a versioned Octave executable to be configured via --with-octave
and the correct corresponding mkoctfile executable to be used.
This commit is contained in:
Mike Miller 2015-07-11 18:53:22 -04:00 committed by Mike Miller
commit 5ab9563c2a

View file

@ -1030,7 +1030,7 @@ fi
if test -n "$OCTAVE"; then
AC_MSG_CHECKING([for mkoctfile])
mkoctfile="`dirname ${OCTAVE}`/mkoctfile"
mkoctfile="$(dirname $OCTAVE)/$(basename $OCTAVE | sed -e 's/octave/mkoctfile/')"
AS_IF([test -x "${mkoctfile}"],[
AC_MSG_RESULT([${mkoctfile}])
],[