The matrix to do elimination on is
$$
\left[\begin{array}{ccc|c}
1 & -1 & 1 & 1 \\
3 & m & 2 & 3 \\
m & -3 & 1 & 2
\end{array}\right]
$$
Let's do it, being careful when we need to normalize a pivot:
\begin{align}
\left[\begin{array}{ccc|c}
1 & -1 & 1 & 1 \\
3 & m & 2 & 3 \\
m & -3 & 1 & 2
\end{array}\right]
&\to
\left[\begin{array}{ccc|c}
1 & -1 & 1 & 1 \\
0 & m+3 & -1 & 0 \\
0 & -3+m & 1-m & 2-m
\end{array}\right]
&&\begin{aligned}R_2&\gets R_2-3R_1\\R_3&\gets R_3-mR_1\end{aligned}
\\ \color{red}{(m+3\ne0)}\quad&\to
\left[\begin{array}{ccc|c}
1 & -1 & 1 & 1 \\
0 & 1 & -1/(m+3) & 0 \\
0 & -3+m & 1-m & 2-m
\end{array}\right]
&&R_2\gets\tfrac{1}{m+3}R_1
\\
&\to
\left[\begin{array}{ccc|c}
1 & -1 & 1 & 1 \\
0 & 1 & -1/(m+3) & 0 \\
0 & 0 & -(m^2+m)/(m+3) & 2-m
\end{array}\right]
&&R_3\gets R_3+(3-m)R_2
\end{align}
Thus we see that, for $m=0$ or $m=-1$, the system has no solution.
For $m\notin\{-3,-1,0\}$, the system has a single solution.
It remains to see what happens for $m=-3$. We restart from the second step:
$$
\left[\begin{array}{ccc|c}
1 & -1 & 1 & 1 \\
0 & 0 & -1 & 0 \\
0 & -6 & 4 & 5
\end{array}\right]
$$
where a simple row switch shows the system has a single solution.