From d3630ccbd5f3bff978f4d16a7f14c3fd6ebed349 Mon Sep 17 00:00:00 2001 From: Ken Yee Date: Wed, 10 Feb 2016 05:05:35 -0800 Subject: [PATCH] Make Java config test exit so it doesn't hang on some JVMs Summary: Was trying this article out and noticed it hung on the ./configure when trying to read JAVA_HOME: https://medium.com/Rapchik/static-analysis-build-server-for-android-with-jenkins-using-docker-bda888d4b34e#.dci57csez Adding this fixed it...not sure why the JVM didn't just cleanly exit but apparently the openJDK JVM does this :-P Closes https://github.com/facebook/infer/pull/274 Reviewed By: jeremydubreil Differential Revision: D2917653 Pulled By: jvillard fb-gh-sync-id: c228233 shipit-source-id: c228233 --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index ad841d24b..80df6b020 100644 --- a/configure.ac +++ b/configure.ac @@ -181,6 +181,7 @@ if test "x$enable_java_analyzers" = "xyes"; then public class conftest { public static void main(String[[]] args) { System.out.println(System.getProperty("java.home")); + System.exit(0); } } _ACEOF