Verified Commit 736d43c4 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bump minimal MATLAB version requirement to 7.9 (R2009b)

parent abc84316
......@@ -466,7 +466,7 @@ In order to run Dynare, you need one of the following:
@itemize
 
@item
MATLAB version 7.5 (R2007b) or above (MATLAB R2009b 64-bit for macOS);
MATLAB version 7.9 (R2009b) or above;
 
@item
GNU Octave version 4.2.1 or above.
......
......@@ -33,7 +33,7 @@ if isoctave
else
% Add win32 specific paths for Dynare Windows package
if strcmp(computer, 'PCWIN')
tmp = [dynareroot '../mex/matlab/win32-7.5-8.6/'];
tmp = [dynareroot '../mex/matlab/win32-7.9-8.6/'];
if exist(tmp, 'dir')
mexpath = tmp;
if modifypath
......@@ -43,16 +43,8 @@ else
end
% Add win64 specific paths for Dynare Windows package
if strcmp(computer, 'PCWIN64')
if matlab_ver_less_than('7.8')
tmp = [dynareroot '../mex/matlab/win64-7.5-7.7/'];
if exist(tmp, 'dir')
mexpath = tmp;
if modifypath
addpath(mexpath);
end
end
elseif matlab_ver_less_than('9.4')
tmp = [dynareroot '../mex/matlab/win64-7.8-9.3/'];
if matlab_ver_less_than('9.4')
tmp = [dynareroot '../mex/matlab/win64-7.9-9.3/'];
if exist(tmp, 'dir')
mexpath = tmp;
if modifypath
......
......@@ -87,9 +87,9 @@ if isoctave
skipline()
end
else
if matlab_ver_less_than('7.5') % Should match the test in mex/build/matlab/configure.ac
if matlab_ver_less_than('7.9') % Should match the test in mex/build/matlab/configure.ac
skipline()
warning('This version of Dynare has only been tested on MATLAB 7.5 (R2007b) and above. Since your MATLAB version is older than that, Dynare may fail to run, or give unexpected results. Consider upgrading your MATLAB installation, or switch to Octave.');
warning('This version of Dynare has only been tested on MATLAB 7.9 (R2009b) and above. Since your MATLAB version is older than that, Dynare may fail to run, or give unexpected results. Consider upgrading your MATLAB installation, or switch to Octave.');
skipline()
end
end
......
......@@ -34,7 +34,7 @@ if test "x$ax_enable_matlab" = "xyes"; then
if test "x$ax_matlab_version_ok" = "xyes"; then
AX_MEXOPTS
AX_COMPARE_VERSION([$MATLAB_VERSION], [lt], [7.5], [AC_MSG_ERROR([Your MATLAB is too old, please upgrade to version 7.5 (R2007b) at least.])])
AX_COMPARE_VERSION([$MATLAB_VERSION], [lt], [7.9], [AC_MSG_ERROR([Your MATLAB is too old, please upgrade to version 7.9 (R2009b) at least.])])
fi
CFLAGS="$MATLAB_CFLAGS"
......
......@@ -88,19 +88,14 @@ SectionEnd
SectionGroup "MEX files for MATLAB"
Section "MEX files for MATLAB 32-bit, version 7.5 to 8.6 (R2007b to R2015b)"
SetOutPath $INSTDIR\mex\matlab\win32-7.5-8.6
File ..\mex\matlab\win32-7.5-8.6\*.mexw32
Section "MEX files for MATLAB 32-bit, version 7.9 to 8.6 (R2009b to R2015b)"
SetOutPath $INSTDIR\mex\matlab\win32-7.9-8.6
File ..\mex\matlab\win32-7.9-8.6\*.mexw32
SectionEnd
Section "MEX files for MATLAB 64-bit, version 7.5 to 7.7 (R2007b to R2008b)"
SetOutPath $INSTDIR\mex\matlab\win64-7.5-7.7
File ..\mex\matlab\win64-7.5-7.7\*.mexw64
SectionEnd
Section "MEX files for MATLAB 64-bit, version 7.8 to 9.3 (R2009a to R2017b)"
SetOutPath $INSTDIR\mex\matlab\win64-7.8-9.3
File ..\mex\matlab\win64-7.8-9.3\*.mexw64
Section "MEX files for MATLAB 64-bit, version 7.9 to 9.3 (R2009b to R2017b)"
SetOutPath $INSTDIR\mex\matlab\win64-7.9-9.3
File ..\mex\matlab\win64-7.9-9.3\*.mexw64
SectionEnd
Section "MEX files for MATLAB 64-bit, version 9.4 to 9.5 (R2018a to R2018b)"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment