From 7754e416e4ae8ac63728a1c867217e239caca30a Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 17 Sep 2009 16:17:11 +0000 Subject: [PATCH] Build system: for MEX files, use the same compiler than for the preprocessor and dynare++ git-svn-id: https://www.dynare.org/svn/dynare/trunk@2943 ac1d8469-bf42-47a9-8791-bf33cf982152 --- m4/ax_mexopts.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/ax_mexopts.m4 b/m4/ax_mexopts.m4 index 94d534b30..2ebbb264b 100644 --- a/m4/ax_mexopts.m4 +++ b/m4/ax_mexopts.m4 @@ -25,8 +25,8 @@ AC_REQUIRE([AC_CANONICAL_HOST]) AC_MSG_CHECKING([for options to compile MEX for MATLAB]) MATLAB_CPPFLAGS="-I$MATLAB/extern/include" -MATLAB_CC="gcc" -MATLAB_CXX="g++" +MATLAB_CC="$CC" +MATLAB_CXX="$CXX" MATLAB_DEFS="-DNO_OPENMP" # Don't use OpenMP (flag used by S. Adjemian in some DLLs) case ${MATLAB_ARCH} in