diff --git a/mex/build/matlab/configure.ac b/mex/build/matlab/configure.ac
index 965fe461fc122b7ca1a8306e02af892cfa94e1d8..233fa4102ed5ecacb9edda7217f08d0a5c834783 100644
--- a/mex/build/matlab/configure.ac
+++ b/mex/build/matlab/configure.ac
@@ -20,7 +20,7 @@ dnl along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 AC_PREREQ([2.62])
 AC_INIT([dynare], [4.5-unstable])
 AC_CONFIG_SRCDIR([configure.ac])
-AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects])
+AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign])
 
 dnl The following must occur before we modify CFLAGS/CXXFLAGS
 AC_CANONICAL_HOST