Adding Java VM checks

Adding a set of macros to check for Java Virtual Machine availability.
These macros are checked out from the Autoconf Archive and included
using aclocal.