configure.ac: check $OCTAVE is nonempty before testing functionality
This commit is contained in:
parent
1d370ca4ed
commit
f3029dda7d
1 changed files with 9 additions and 7 deletions
|
|
@ -1031,6 +1031,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if Octave works
|
# Check if Octave works
|
||||||
|
if test -n "$OCTAVE"; then
|
||||||
AC_MSG_CHECKING([if ${OCTAVE} works])
|
AC_MSG_CHECKING([if ${OCTAVE} works])
|
||||||
AS_IF([test "x`${OCTAVE} --version 2>/dev/null | sed -n -e '1p' | sed -n -e '/Octave, version/p'`" != x],[
|
AS_IF([test "x`${OCTAVE} --version 2>/dev/null | sed -n -e '1p' | sed -n -e '/Octave, version/p'`" != x],[
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
|
@ -1038,6 +1039,7 @@ AS_IF([test "x`${OCTAVE} --version 2>/dev/null | sed -n -e '1p' | sed -n -e '/Oc
|
||||||
AC_MSG_NOTICE([no, disabling Octave])
|
AC_MSG_NOTICE([no, disabling Octave])
|
||||||
OCTAVE=
|
OCTAVE=
|
||||||
])
|
])
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for required Octave helper program "mkoctfile"
|
# Check for required Octave helper program "mkoctfile"
|
||||||
if test -n "$OCTAVE"; then
|
if test -n "$OCTAVE"; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue