[Freeswitch-svn] [commit] r13288 - freeswitch/trunk/build/config

FreeSWITCH SVN andrew at freeswitch.org
Tue May 12 13:00:49 PDT 2009


Author: andrew
Date: Tue May 12 15:00:49 2009
New Revision: 13288

Log:
Fix erlang autoconf macro to deal with crazy things being in ~/.erlang (MODEVENT-45)


Modified:
   freeswitch/trunk/build/config/erlang.m4

Modified: freeswitch/trunk/build/config/erlang.m4
==============================================================================
--- freeswitch/trunk/build/config/erlang.m4	(original)
+++ freeswitch/trunk/build/config/erlang.m4	Tue May 12 15:00:49 2009
@@ -34,7 +34,7 @@
 		fi
 		AC_MSG_RESULT([$ERLANG_VER])
 
-		ERLANG_LIBDIR=`$ERLANG -noshell -eval 'io:format("~s/lib~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt`
+		ERLANG_LIBDIR=`$ERLANG -noshell -eval 'io:format("~n~s/lib~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1`
 		AC_MSG_CHECKING([erlang libdir])
 		if test -z "`echo $ERLANG_LIBDIR`" ; then
 			AC_MSG_ERROR([failed])
@@ -44,7 +44,7 @@
 		fi
 		AC_MSG_RESULT([$ERLANG_LIBDIR])
 
-		ERLANG_INCDIR=`$ERLANG -noshell -eval 'io:format("~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt`
+		ERLANG_INCDIR=`$ERLANG -noshell -eval 'io:format("~n~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1`
 		AC_MSG_CHECKING([erlang incdir])
 		if test -z "`echo $ERLANG_INCDIR`" ; then
 			AC_MSG_ERROR([failed])



More information about the Freeswitch-svn mailing list