Description: Hardcode the root of the Dynare installation
 Otherwise it will be incorrectly detected because of the symlink for Octave.
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -37,7 +37,7 @@ if nargin && ~isempty(path_to_dynare)
     addpath(path_to_dynare);
 end
 
-dynareroot = strrep(which('dynare'),'dynare.m','');
+dynareroot = '/usr/lib/dynare/matlab/';
 
 origin = pwd();
 cd([dynareroot '/..'])
