Systems like Debian expect the thrift jar to be in /usr/share/java, not
the default /usr/local/lib This patch allows configure to be passed a
JAVA_PREFIX= flag.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@675821
13f79535-47bb-0310-9956-
ffa450edef68
Default = "/usr"])
AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"])
+AC_ARG_VAR([JAVA_PREFIX], [Prefix for installing the Java lib jar.
+ (Normal --prefix is ignored for Java because
+ Java has different conevntions.)
+ Default = "/usr/local/lib"])
+AS_IF([test "x$JAVA_PREFIX" = x], [JAVA_PREFIX="/usr/local/lib"])
AC_PROG_CC
AC_PROG_CPP
$(ANT)
install-exec-hook:
- $(ANT) install
+ $(ANT) install -Dinstall.path=$(DESTDIR)$(JAVA_PREFIX)
# Make sure this doesn't fail if ant is not configured.
clean-local:
<property name="src" location="src" />
<property name="build" location="build" />
+ <property name="install.path" value="/usr/local/lib" />
<target name="init">
<tstamp />
<target name="install" depends="dist">
<exec executable="install">
- <arg line="libthrift.jar /usr/local/lib/" />
+ <arg line="libthrift.jar ${install.path}" />
</exec>
</target>