From 5ab9563c2ade6f61e4ecdbe5363d4251ff7c6991 Mon Sep 17 00:00:00 2001 From: Mike Miller Date: Sat, 11 Jul 2015 18:53:22 -0400 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c6eb76c18cd..713680f5961 100644 --- a/configure.ac +++ b/configure.ac @@ -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}]) ],[