1dnl @synopsis AC_JAVA_OPTIONS 2dnl 3dnl AC_JAVA_OPTIONS adds configure command line options used for Java m4 4dnl macros. This Macro is optional. 5dnl 6dnl Note: This is part of the set of autoconf M4 macros for Java programs. 7dnl It is VERY IMPORTANT that you download the whole set, some 8dnl macros depend on other. Unfortunately, the autoconf archive does not 9dnl support the concept of set of macros, so I had to break it for 10dnl submission. 11dnl The general documentation, as well as the sample configure.in, is 12dnl included in the AC_PROG_JAVA macro. 13dnl 14dnl @author Devin Weaver <ktohg@tritarget.com> 15dnl @version $Id: ac_java_options.m4,v 12.0 2004/11/17 03:43:38 bostic Exp $ 16dnl 17AC_DEFUN([AC_JAVA_OPTIONS],[ 18AC_ARG_WITH(java-prefix, 19 [ --with-java-prefix=PFX prefix where Java runtime is installed (optional)]) 20AC_ARG_WITH(javac-flags, 21 [ --with-javac-flags=FLAGS flags to pass to the Java compiler (optional)]) 22AC_ARG_WITH(java-flags, 23 [ --with-java-flags=FLAGS flags to pass to the Java VM (optional)]) 24JAVAPREFIX=$with_java_prefix 25JAVACFLAGS=$with_javac_flags 26JAVAFLAGS=$with_java_flags 27AC_SUBST(JAVAPREFIX)dnl 28AC_SUBST(JAVACFLAGS)dnl 29AC_SUBST(JAVAFLAGS)dnl 30AC_SUBST(JAVA)dnl 31AC_SUBST(JAVAC)dnl 32]) 33