AC_DEFINE_UNQUOTED([VERSION_DESCRIPTION], ["$version_description"], [UST version description])
AC_PROG_GREP
+AC_PROG_LN_S
# libtool link_all_deplibs fixup. See http://bugs.lttng.org/issues/321.
AC_ARG_ENABLE(libtool-linkdep-fixup,
AS_HELP_STRING([--disable-libtool-linkdep-fixup],
JAVAROOT = .
-jarfile = liblttng-ust-agent.jar
+pkgpath = org/lttng/ust/agent
+pkgpath_old = org/lttng/ust/jul
+
+jarfile_version = 1.0.0
+jarfile_manifest = $(pkgpath)/Manifest.txt
+jarfile_symlink = liblttng-ust-agent.jar
+jarfile = liblttng-ust-agent-$(jarfile_version).jar
+
jarfile_old = liblttng-ust-jul.jar
+
jardir = $(datadir)/java
+
juljniout = ../jni/jul
log4jjniout = ../jni/log4j
-pkgpath = org/lttng/ust/agent
-pkgpath_old = org/lttng/ust/jul
+
dist_noinst_JAVA = $(pkgpath)/LTTngAgent.java \
$(pkgpath)/LTTngSessiondCmd2_6.java \
$(pkgpath)/LTTngTCPSessiondClient.java \
$(pkgpath)/jul/LTTngLogHandler.java \
$(pkgpath_old)/LTTngAgent.java
+dist_noinst_DATA = $(jarfile_manifest)
+
jar_DATA = $(jarfile) $(jarfile_old)
stamp =
endif
$(jarfile): classnoinst.stamp
- $(JAR) cf $(JARFLAGS) $@ $(classes)
+ $(JAR) cfm $(JARFLAGS) $@ $(jarfile_manifest) $(classes) && $(LN_S) $@ $(jarfile_symlink)
$(jarfile_old): classnoinst.stamp
$(JAR) cf $(JARFLAGS) $@ $(pkgpath)/*.class \
all-local: $(stamp)
+install-data-local:
+ cd $(DESTDIR)/$(jardir); rm -f $(jarfile_symlink); $(LN_S) $(jarfile) $(jarfile_symlink)
+
+uninstall-local:
+ cd $(DESTDIR)/$(jardir); rm -f $(jarfile_symlink)
+
CLEANFILES = $(jarfile) $(jarfile_old) $(pkgpath)/*.class $(pkgpath_old)/*.class $(pkgpath)/jul/*.class \
$(pkgpath)/log4j/*.class jul-jni-header.stamp log4j-jni-header.stamp \
$(juljniout)/org_lttng_ust_agent_jul_LTTngLogHandler.h \
--- /dev/null
+Name: org/lttng/ust/agent/
+Specification-Title: LTTng UST Java Agent
+Specification-Version: 1.0.0
+Specification-Vendor: LTTng Project
+Implementation-Title: org.lttng.ust.agent
+Implementation-Version: 1.0.0
+Implementation-Vendor: LTTng Project