Changeset 6688 for branches/1.7/cf/rpLangOctave.m4
- Timestamp:
- Jan 30, 2018 10:29:24 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/cf/rpLangOctave.m4
r2298 r6688 34 34 MKOCTFILE2= 35 35 MKOCTFILE3= 36 MKOCTFILE4= 36 37 37 38 if test "$with_octave" != "no" ; then … … 48 49 OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4` 49 50 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1` 51 if test "${OCTAVE_VERSION_MAJOR}" == "4" ; then 52 OCTAVE4=$OCTAVE 53 MKOCTFILE4=$MKOCTFILE 54 fi 50 55 if test "${OCTAVE_VERSION_MAJOR}" == "3" ; then 51 56 OCTAVE3=$OCTAVE … … 71 76 # not both. 72 77 # 78 79 # Check if octave4 was designated *in addition* to the installed version. 80 # This can override the default version if they are the same versions. 81 82 AC_ARG_WITH( 83 [mkoctfile4], 84 [AS_HELP_STRING([--with-mkoctfile4[=DIR]], 85 [path of octave compiler `mkoctfile' @<:@default=no@:>@])], 86 [], 87 [with_mkoctfile4=no]) 88 89 if test "$with_mkoctfile4" != "no" ; then 90 if test "$with_mkoctfile4" = "yes" ; then 91 AC_PATH_PROG(mkoctfile4, mkoctfile) 92 else 93 MKOCTFILE4=$with_mkoctfile4 94 fi 95 OCTAVE_VERSION=`${MKOCTFILE4} --version 2>&1 | cut -d' ' -f3` 96 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1` 97 fi 73 98 74 99 # Check if octave3 was designated *in addition* to the installed version.
Note: See TracChangeset
for help on using the changeset viewer.