Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a problem with the erlang grade on Windows.

	Only keep the basename of ERLC and ERL if their initial values
	are qualified with directories whose names contains spaces.  This
	avoids build problems on Windows.  (We do the same thing for the
	Java tools.)
  • Loading branch information...
commit bc38f5f9ac5a24ada1886f3ec0ba31c203842970 1 parent 5f74b30
@juliensf juliensf authored
Showing with 18 additions and 2 deletions.
  1. +18 −2 m4/mercury.m4
20 m4/mercury.m4
@@ -619,8 +619,24 @@ else
+# On Windows, Erlang/OTP has a high chance of being installed in a path
+# containing spaces. The simplest solution is to keep only the basename.
+# Everything will still work so long as the executables can be found on the
+# PATH later.
+case "$ERLC" in
+ *" "*)
+ ERLC=`basename "$ERLC"`
+ ;;
+case "$ERL" in
+ *" "*)
+ ERL=`basename "$ERL"`
+ ;;
Please sign in to comment.
Something went wrong with that request. Please try again.