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?
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).