]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix erlang autoconf macro to deal with crazy things being in ~/.erlang (MODEVENT-45)
authorAndrew Thompson <andrew@hijacked.us>
Tue, 12 May 2009 20:00:49 +0000 (20:00 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Tue, 12 May 2009 20:00:49 +0000 (20:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13288 d0543943-73ff-0310-b7d9-9358b9ac24b2

build/config/erlang.m4

index 6fc8378006a0f7a6335de585bef2d7ab90393e94..32969e15b59ff08bb4cfbd8ac3f804b7eb185567 100644 (file)
@@ -34,7 +34,7 @@ then
                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 @@ then
                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])