This will record the value of CLASSPATH in the autoconf cache and ensure
it's used when calling make even if it's not exported to the
environment.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia06070dd352f9d3b6956a1ec0f4eb1d024f73179
AX_PROG_JAVAC
AX_PROG_JAVA
AX_PROG_JAR
+ AC_ARG_VAR([CLASSPATH], [Java class path])
AX_JNI_INCLUDE_DIR
for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
( \
cd $$subdir && \
$(MAKE) all \
+ CLASSPATH="$(CLASSPATH)" \
JAVA_CLASSPATH_OVERRIDE_JUL="../../../liblttng-ust-java-agent/java/lttng-ust-agent-jul" \
JAVA_CLASSPATH_OVERRIDE_COMMON="../../../liblttng-ust-java-agent/java/lttng-ust-agent-common" \
$(AM_MAKEFLAGS) \
( \
cd $$subdir && \
$(MAKE) all \
+ CLASSPATH="$(CLASSPATH)" \
JAVA_CLASSPATH_OVERRIDE_LOG4J="../../../liblttng-ust-java-agent/java/lttng-ust-agent-log4j" \
JAVA_CLASSPATH_OVERRIDE_COMMON="../../../liblttng-ust-java-agent/java/lttng-ust-agent-common" \
$(AM_MAKEFLAGS) \
# If system classpath is empty, try to guess log4j location
ifeq "$(CLASSPATH)" ""
- CLASSPATH="/usr/local/share/java/log4j.jar:/usr/share/java/log4j.jar"
+ CLASSPATH=/usr/local/share/java/log4j.jar:/usr/share/java/log4j.jar
endif
# Check if the top level makefile overrides the Log4j Jar file's path.