From 218df582dd34efb7dae271c587ab5a97c10398a4 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Fri, 27 Dec 2019 19:35:03 +0200 Subject: ragel: check that javac works If ulimit -a is used, javac may not run. Added a configure check to verify it runs. refs #92 --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2a124740..09af2894 100644 --- a/configure.ac +++ b/configure.ac @@ -262,6 +262,24 @@ AC_PATH_PROG([RUST_BIN], [rustc]) AC_PATH_PROG([JULIA_BIN], [julia]) AC_PATH_PROG([GNUSTEP_CONFIG], [gnustep-config]) +dnl +dnl Java test cases are now requring a large virtual address space. On systems +dnl where this is limited by ulimit, java will fail to run. +dnl + +if test "x$JAVAC_BIN" != x; then + echo 'class conftest { public static void main( String[] args ) { } }' > conftest.java + echo -n "checking if javac is able to compile programs ... " + if sh -c "$JAVAC_BIN conftest.java" >>config.log 2>&1; then + echo "yes" + else + echo "no" + JAVAC_BIN="" + fi + rm -f conftest.java conftest.class +fi + + dnl dnl Julia requires a large virtual address space. On systems where this is dnl limited by ulimit, julia will fail to run. -- cgit v1.2.1