THRIFT-646. erlang: Install into the detected Erlang directory
authorDavid Reiss <dreiss@apache.org>
Thu, 19 Aug 2010 16:29:52 +0000 (16:29 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 19 Aug 2010 16:29:52 +0000 (16:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987224 13f79535-47bb-0310-9956-ffa450edef68

configure.ac

index ae6209d..02888fb 100644 (file)
@@ -106,6 +106,9 @@ AX_THRIFT_LIB(erlang, [Erlang], yes)
 if test "$with_erlang" = "yes";  then
   AC_ERLANG_PATH_ERL
   AC_ERLANG_PATH_ERLC
+  AC_ERLANG_SUBST_LIB_DIR
+  # Install into the detected Erlang directory instead of $libdir/erlang/lib
+  ERLANG_INSTALL_LIB_DIR="$ERLANG_LIB_DIR"
   AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 fi
 AM_CONDITIONAL(WITH_ERLANG, [test -n "$ERL" -a -n "$ERLC"])