From 625d824bbee972a157eb9ebce6b77b85e0e2106b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 31 Oct 2018 15:57:34 +0100 Subject: [PATCH] MEX extension detection now robust to spaces in MATLAB path --- m4/ax_mexext.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/ax_mexext.m4 b/m4/ax_mexext.m4 index 17a5c58ed..6e43b9ceb 100644 --- a/m4/ax_mexext.m4 +++ b/m4/ax_mexext.m4 @@ -41,13 +41,13 @@ else AX_COMPARE_VERSION([$MATLAB_VERSION], [lt], [7.1], [AC_MSG_ERROR([I can't determine the MEX file extension. Please explicitly indicate it to the configure script with the MEXEXT variable.])]) case $build_os in *cygwin*) - ax_cv_mexext=`$MATLAB/bin/mexext.bat | sed 's/\r//'` + ax_cv_mexext=$("$MATLAB"/bin/mexext.bat | sed 's/\r//') ;; *mingw*) - ax_cv_mexext=`cd $MATLAB/bin && cmd /c mexext.bat | sed 's/\r//'` + ax_cv_mexext=$(cd "$MATLAB"/bin && cmd /c mexext.bat | sed 's/\r//') ;; *) - ax_cv_mexext=`$MATLAB/bin/mexext` + ax_cv_mexext=$("$MATLAB"/bin/mexext) ;; esac fi])