AC_CHECK_PROGS and java compiler options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm wondering about best practices for checking for programs like the javac compiler. For instance, I currently have a line in my project's configure.ac file that looks like this:

AC_CHECK_PROGS([JAVAC], ["gcj -C -ftarget=1.4 -fsource=1.4" "guavac -target 1.4 -source 1.4" "jikes -target 1.4 -source 1.4" "javac -target 1.4 -source 1.4"])

Ugly. This line used to look like this before I needed to specify particular source and target versions for my Java code:

AC_CHECK_PROGS([JAVAC], ["gcj -C" guavac jikes javac])

That wasn't bad, but now I'm duplicating flags all over the place just because "gcj -C" requires a different set of options for JVM target and source version specification than the other java compilers do. If they were the same, I'd just append them to JAVACFLAGS and be done with it.

Any input would be appreciated.

Thanks,
John




_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux