I’m using autoconf for a build. I’d like my configure script to check for presence of a Java Compiler and ensure that the version is atleast 1.6 and it is Oracle’s Java Compilter.
What do I need to put in my configure.ac script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The AX_PROG_JAVA macro and it’s associated macros at the GNU Autoconf Macro Archive would be a good place to start. They won’t do exactly what you want though (ensure that it’s the Oracle compiler and at least Java 1.6).