Navigation Menu

Skip to content

Commit

Permalink
Fix a problem with the erlang grade on Windows.
Browse files Browse the repository at this point in the history
m4/mercury.m4:
	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
opturion-jfischer committed Jul 30, 2013
1 parent 5f74b30 commit bc38f5f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions m4/mercury.m4
Expand Up @@ -619,8 +619,24 @@ else
mercury_cv_erlang="no" mercury_cv_erlang="no"
fi fi
AC_SUBST(ERLC) # On Windows, Erlang/OTP has a high chance of being installed in a path
AC_SUBST(ERL) # 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"`
;;
esac
case "$ERL" in
*" "*)
ERL=`basename "$ERL"`
;;
esac
AC_SUBST([ERLC])
AC_SUBST([ERL])
]) ])


#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
Expand Down

0 comments on commit bc38f5f

Please sign in to comment.