From dee230bf321a0a743a947ecfdb5e7e5344c9c5d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 5 Apr 2019 12:12:13 +0200
Subject: [PATCH] Minor shell modernization

---
 mex/build/matlab/configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mex/build/matlab/configure.ac b/mex/build/matlab/configure.ac
index 27682ced85..ab17ac9846 100644
--- a/mex/build/matlab/configure.ac
+++ b/mex/build/matlab/configure.ac
@@ -66,11 +66,11 @@ AM_PROG_AR
 
 case ${host_os} in
   *darwin*)
-    string="`$CXX --version`"
-    if test x"${string#*clang}" != x"$string"; then
+    string=$($CXX --version)
+    if test "${string#*clang}" != "$string"; then
       CXXFLAGS="$CXXFLAGS -stdlib=libc++"
       MATLAB_LIBS="$MATLAB_LIBS -lc++"
-      MATLAB_LDFLAGS="$MATLAB_LDFLAGS -Wl,-syslibroot,`xcrun -sdk macosx --show-sdk-path`"
+      MATLAB_LDFLAGS="$MATLAB_LDFLAGS -Wl,-syslibroot,$(xcrun -sdk macosx --show-sdk-path)"
     else
       MATLAB_LIBS="$MATLAB_LIBS -lstdc++"
     fi
-- 
GitLab