From 979c384814c9fad78c1e297a129da86dda2e4573 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 3 May 2018 15:58:44 -0400 Subject: [PATCH] Fix: AM_CONDITIONAL should be outside AS_IF block Fixes: configure: error: conditional "HAVE_JAVAH" was never defined. Usually this means the macro was only invoked conditionally Signed-off-by: Mathieu Desnoyers --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8be1ceb0..37549fe0 100644 --- a/configure.ac +++ b/configure.ac @@ -343,10 +343,10 @@ AS_IF([test "x$jni_interface" = "xyes" || test "x$java_agent_jul" = "xyes" || te CPPFLAGS="$CPPFLAGS $JNI_CPPFLAGS" AX_PROG_JAVAH CPPFLAGS="$saved_CPPFLAGS" - - AM_CONDITIONAL([HAVE_JAVAH], [test "x$JAVAH" != "x"]) ]) +AM_CONDITIONAL([HAVE_JAVAH], [test "x$JAVAH" != "x"]) + AS_IF([test "x$java_agent_log4j" = "xyes"], [ AX_CHECK_CLASSPATH AX_CHECK_CLASS([org.apache.log4j.Logger]) -- 2.34.1